libtdb-vl.spec 5.9 KB

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