libtdb-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libtdb
  3. Summary: The tdb library
  4. Summary(ja): TDB ライブラリ
  5. Version: 1.3.6
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv3+
  9. URL: http://tdb.samba.org/
  10. Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
  11. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  12. BuildRequires: autoconf
  13. BuildRequires: libxslt
  14. BuildRequires: docbook-style-xsl
  15. BuildRequires: python-devel
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: tomop
  19. # Patches
  20. Patch0001: 0001-Install-python-bindings-in-the-arch-specific-location.patch
  21. %description
  22. A library that implements a trivial database.
  23. %package devel
  24. Summary: Header files need to link the Tdb library
  25. Group: Development/Libraries
  26. Requires: libtdb = %{version}-%{release}
  27. Requires: pkgconfig
  28. %description devel
  29. Header files needed to develop programs that link against the Tdb library.
  30. %package -n tdb-tools
  31. Summary: Tools to manipulate tdb files
  32. Summary(ja): TDB ファイルを処理するためのツール集
  33. Group: Applications/System
  34. Requires: libtdb = %{version}-%{release}
  35. %description -n tdb-tools
  36. Tools to manage Tdb files
  37. %package -n python-tdb
  38. Summary: Python bindings for the Tdb library
  39. Summary(ja): TDB ライブラリの python バインディング
  40. Group: System Environment/Libraries
  41. Requires: libtdb = %{version}-%{release}
  42. %description -n python-tdb
  43. Python bindings for libtdb
  44. %if %build_compat32
  45. %package -n compat32-libtdb
  46. Summary: The TDB library
  47. Summary(ja): TDB ライブラリ
  48. Group: System Environment/Libraries
  49. Requires: libtdb = %{version}-%{release}
  50. %description -n compat32-libtdb
  51. A library that implements a trivial database.
  52. %endif
  53. %prep
  54. %setup -q -n tdb-%{version}
  55. %patch0001 -p1
  56. %build
  57. #./autogen.sh
  58. %configure --disable-rpath --bundled-libraries=NONE
  59. make %{?_smp_mflags} V=1
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT
  63. # Shared libraries need to be marked executable for
  64. # rpmbuild to strip them and include them in debuginfo
  65. find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %files
  70. %defattr(-,root,root,-)
  71. %{_libdir}/libtdb.so.*
  72. %files devel
  73. %defattr(-,root,root)
  74. %{_includedir}/tdb.h
  75. %{_libdir}/libtdb.so
  76. %{_libdir}/pkgconfig/tdb.pc
  77. %files -n tdb-tools
  78. %defattr(-,root,root,-)
  79. %{_bindir}/tdbbackup
  80. %{_bindir}/tdbdump
  81. %{_bindir}/tdbtool
  82. %{_bindir}/tdbrestore
  83. %{_mandir}/man8/tdbbackup.8*
  84. %{_mandir}/man8/tdbdump.8*
  85. %{_mandir}/man8/tdbtool.8*
  86. %{_mandir}/man8/tdbrestore.8*
  87. %files -n python-tdb
  88. %defattr(-,root,root,-)
  89. %{python_sitearch}/tdb.so
  90. %if %build_compat32
  91. %files -n compat32-libtdb
  92. %attr(755,root,root) %{_libdir}/libtdb.so.*
  93. %endif
  94. %post -p /sbin/ldconfig
  95. %postun -p /sbin/ldconfig
  96. %post -n python-tdb -p /sbin/ldconfig
  97. %postun -n python-tdb -p /sbin/ldconfig
  98. %if %build_compat32
  99. %post -n compat32-libtdb -p /sbin/ldconfig
  100. %postun -n compat32-libtdb -p /sbin/ldconfig
  101. %endif
  102. %changelog
  103. * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.6-1
  104. - new upstream release.
  105. * Mon Jan 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.4-1
  106. - new upstream release.
  107. * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.3-1
  108. - new upstream release.
  109. * Sat Oct 4 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3.0-2
  110. - moved python-tdb to System Environment/Libraries Group
  111. - moved tdb-tool to Applications/System Group
  112. * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1
  113. - new upstream release.
  114. * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-2
  115. - rebuilt with current environment.
  116. * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-1
  117. - new upstream release.
  118. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.11-1
  119. - new upstream release.
  120. * Sat Apr 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.10-1
  121. - new upstream release.
  122. - updated Patch0001.
  123. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11
  124. - rebuild with python-2.7.2
  125. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10
  126. - initial build for Vine Linux.
  127. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
  128. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  129. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
  130. - Actually fix the verbosity
  131. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
  132. - Let rpmbuild strip binaries, make build more verbose.
  133. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  134. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
  135. - Install python bindings into the correct location
  136. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
  137. - Run ldconfig on python-tdb
  138. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
  139. - Do not delete a necessary file during %%install
  140. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
  141. - Bump release to rebuild with the correct sources in place
  142. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
  143. - Bump build to rebuild with sources in place
  144. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
  145. - New upstream bugfix release
  146. - Adds a new tdbrestore utility
  147. - Convert to new WAF build-system
  148. - Add python bindings in new python-tdb subpackage
  149. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
  150. - add missing build require
  151. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
  152. - Fix spec file
  153. - Package manpages too
  154. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
  155. - New upstream bugfix release
  156. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
  157. - New upstream release
  158. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  159. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  160. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
  161. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  162. upstream.
  163. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
  164. - New upstream release
  165. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
  166. - First public independent release from upstream