libtdb-vl.spec 6.3 KB

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