libtdb-vl.spec 7.3 KB

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