libtdb-vl.spec 6.7 KB

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