libtdb-vl.spec 7.1 KB

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