libtdb-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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.9
  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}/*
  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. * Wed Apr 13 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.9-1
  104. - new upstream release.
  105. * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.8-1
  106. - new upstream release.
  107. * Fri Jul 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.7-1
  108. - new upstream release.
  109. * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.6-1
  110. - new upstream release.
  111. * Mon Jan 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.4-1
  112. - new upstream release.
  113. * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.3-1
  114. - new upstream release.
  115. * Sat Oct 4 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3.0-2
  116. - moved python-tdb to System Environment/Libraries Group
  117. - moved tdb-tool to Applications/System Group
  118. * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1
  119. - new upstream release.
  120. * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-2
  121. - rebuilt with current environment.
  122. * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-1
  123. - new upstream release.
  124. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.11-1
  125. - new upstream release.
  126. * Sat Apr 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.10-1
  127. - new upstream release.
  128. - updated Patch0001.
  129. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11
  130. - rebuild with python-2.7.2
  131. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10
  132. - initial build for Vine Linux.
  133. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
  134. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  135. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
  136. - Actually fix the verbosity
  137. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
  138. - Let rpmbuild strip binaries, make build more verbose.
  139. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  140. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
  141. - Install python bindings into the correct location
  142. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
  143. - Run ldconfig on python-tdb
  144. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
  145. - Do not delete a necessary file during %%install
  146. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
  147. - Bump release to rebuild with the correct sources in place
  148. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
  149. - Bump build to rebuild with sources in place
  150. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
  151. - New upstream bugfix release
  152. - Adds a new tdbrestore utility
  153. - Convert to new WAF build-system
  154. - Add python bindings in new python-tdb subpackage
  155. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
  156. - add missing build require
  157. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
  158. - Fix spec file
  159. - Package manpages too
  160. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
  161. - New upstream bugfix release
  162. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
  163. - New upstream release
  164. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  165. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  166. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
  167. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  168. upstream.
  169. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
  170. - New upstream release
  171. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
  172. - First public independent release from upstream