libtdb-vl.spec 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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.10
  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,legacy
  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. * Thu Jun 20 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.10-1
  122. - new upstream release.
  123. * Wed Oct 11 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.9-1
  124. - new upstream release.
  125. * Fri Apr 21 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1
  126. - new upstream release.
  127. * Fri Oct 28 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.7-2
  128. - rebuilt with python-3.11.
  129. * Wed Jul 27 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.7-1
  130. - new upstream release.
  131. * Tue Aug 24 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.5-1
  132. - new upstream release.
  133. - dropped ldconfig scriptlets.
  134. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.3-2
  135. - rebuilt with python-3.8.
  136. * Tue Mar 31 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.3-1
  137. - new upstream release.
  138. * Sat May 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.18-1
  139. - new upstream release.
  140. - disabled python2.
  141. - added BR:libtirpc-devel.
  142. * Fri Nov 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.16-1
  143. - new upstream release.
  144. * Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.15-1
  145. - new upstream release.
  146. - dropped Patch1.
  147. - enabled python3 modules.
  148. * Sat Jul 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.14-1
  149. - new upstream release.
  150. * Mon May 1 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.13-1
  151. - new upstream release.
  152. * Sun Dec 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.12-1
  153. - new upstream release.
  154. * Wed Apr 13 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.9-1
  155. - new upstream release.
  156. * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.8-1
  157. - new upstream release.
  158. * Fri Jul 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.7-1
  159. - new upstream release.
  160. * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.6-1
  161. - new upstream release.
  162. * Mon Jan 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.4-1
  163. - new upstream release.
  164. * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.3-1
  165. - new upstream release.
  166. * Sat Oct 4 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3.0-2
  167. - moved python-tdb to System Environment/Libraries Group
  168. - moved tdb-tool to Applications/System Group
  169. * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1
  170. - new upstream release.
  171. * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-2
  172. - rebuilt with current environment.
  173. * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-1
  174. - new upstream release.
  175. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.11-1
  176. - new upstream release.
  177. * Sat Apr 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.10-1
  178. - new upstream release.
  179. - updated Patch0001.
  180. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11
  181. - rebuild with python-2.7.2
  182. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10
  183. - initial build for Vine Linux.
  184. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
  185. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  186. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
  187. - Actually fix the verbosity
  188. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
  189. - Let rpmbuild strip binaries, make build more verbose.
  190. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  191. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
  192. - Install python bindings into the correct location
  193. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
  194. - Run ldconfig on python-tdb
  195. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
  196. - Do not delete a necessary file during %%install
  197. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
  198. - Bump release to rebuild with the correct sources in place
  199. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
  200. - Bump build to rebuild with sources in place
  201. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
  202. - New upstream bugfix release
  203. - Adds a new tdbrestore utility
  204. - Convert to new WAF build-system
  205. - Add python bindings in new python-tdb subpackage
  206. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
  207. - add missing build require
  208. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
  209. - Fix spec file
  210. - Package manpages too
  211. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
  212. - New upstream bugfix release
  213. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
  214. - New upstream release
  215. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  216. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  217. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
  218. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  219. upstream.
  220. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
  221. - New upstream release
  222. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
  223. - First public independent release from upstream