libtdb-vl.spec 8.0 KB

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