libtdb-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libtdb
  3. Version: 1.2.12
  4. Release: 2%{?_dist_release}
  5. Group: System Environment/Libraries
  6. Summary: The tdb library
  7. License: LGPLv3+
  8. URL: http://tdb.samba.org/
  9. Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
  10. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  11. BuildRequires: autoconf
  12. BuildRequires: libxslt
  13. BuildRequires: docbook-style-xsl
  14. BuildRequires: python-devel
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: tomop
  18. # Patches
  19. Patch0001: 0001-Install-python-bindings-in-the-arch-specific-location.patch
  20. %description
  21. A library that implements a trivial database.
  22. %package devel
  23. Group: Development/Libraries
  24. Summary: Header files need to link the Tdb library
  25. Requires: libtdb = %{version}-%{release}
  26. Requires: pkgconfig
  27. %description devel
  28. Header files needed to develop programs that link against the Tdb library.
  29. %package -n tdb-tools
  30. Group: Development/Libraries
  31. Summary: Developer tools for the Tdb library
  32. Requires: libtdb = %{version}-%{release}
  33. %description -n tdb-tools
  34. Tools to manage Tdb files
  35. %package -n python-tdb
  36. Group: Development/Libraries
  37. Summary: Python bindings for the Tdb library
  38. Requires: libtdb = %{version}-%{release}
  39. %description -n python-tdb
  40. Python bindings for libtdb
  41. %if %build_compat32
  42. %package -n compat32-libtdb
  43. Summary: The TDB library
  44. Group: System Environment/Libraries
  45. %description -n compat32-libtdb
  46. A library that implements a trivial database.
  47. %endif
  48. %prep
  49. %setup -q -n tdb-%{version}
  50. %patch0001 -p1
  51. %build
  52. #./autogen.sh
  53. %configure --disable-rpath --bundled-libraries=NONE
  54. make %{?_smp_mflags} V=1
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT
  58. # Shared libraries need to be marked executable for
  59. # rpmbuild to strip them and include them in debuginfo
  60. find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
  61. rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %files
  65. %defattr(-,root,root,-)
  66. %{_libdir}/libtdb.so.*
  67. %files devel
  68. %defattr(-,root,root)
  69. %{_includedir}/tdb.h
  70. %{_libdir}/libtdb.so
  71. %{_libdir}/pkgconfig/tdb.pc
  72. %files -n tdb-tools
  73. %defattr(-,root,root,-)
  74. %{_bindir}/tdbbackup
  75. %{_bindir}/tdbdump
  76. %{_bindir}/tdbtool
  77. %{_bindir}/tdbrestore
  78. %{_mandir}/man8/tdbbackup.8*
  79. %{_mandir}/man8/tdbdump.8*
  80. %{_mandir}/man8/tdbtool.8*
  81. %{_mandir}/man8/tdbrestore.8*
  82. %files -n python-tdb
  83. %defattr(-,root,root,-)
  84. %{python_sitearch}/tdb.so
  85. %if %build_compat32
  86. %files -n compat32-libtdb
  87. %attr(755,root,root) %{_libdir}/libtdb.so.*
  88. %endif
  89. %post -p /sbin/ldconfig
  90. %postun -p /sbin/ldconfig
  91. %post -n python-tdb -p /sbin/ldconfig
  92. %postun -n python-tdb -p /sbin/ldconfig
  93. %if %build_compat32
  94. %post -n compat32-libtdb -p /sbin/ldconfig
  95. %postun -n compat32-libtdb -p /sbin/ldconfig
  96. %endif
  97. %changelog
  98. * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-2
  99. - rebuilt with current environment.
  100. * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-1
  101. - new upstream release.
  102. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.11-1
  103. - new upstream release.
  104. * Sat Apr 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.10-1
  105. - new upstream release.
  106. - updated Patch0001.
  107. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11
  108. - rebuild with python-2.7.2
  109. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10
  110. - initial build for Vine Linux.
  111. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
  112. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  113. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
  114. - Actually fix the verbosity
  115. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
  116. - Let rpmbuild strip binaries, make build more verbose.
  117. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  118. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
  119. - Install python bindings into the correct location
  120. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
  121. - Run ldconfig on python-tdb
  122. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
  123. - Do not delete a necessary file during %%install
  124. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
  125. - Bump release to rebuild with the correct sources in place
  126. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
  127. - Bump build to rebuild with sources in place
  128. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
  129. - New upstream bugfix release
  130. - Adds a new tdbrestore utility
  131. - Convert to new WAF build-system
  132. - Add python bindings in new python-tdb subpackage
  133. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
  134. - add missing build require
  135. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
  136. - Fix spec file
  137. - Package manpages too
  138. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
  139. - New upstream bugfix release
  140. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
  141. - New upstream release
  142. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  143. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  144. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
  145. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  146. upstream.
  147. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
  148. - New upstream release
  149. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
  150. - First public independent release from upstream