libtdb-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libtdb
  3. Version: 1.2.9
  4. Release: 11%{?_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-locatio.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. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11
  99. - rebuild with python-2.7.2
  100. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10
  101. - initial build for Vine Linux.
  102. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  104. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
  105. - Actually fix the verbosity
  106. * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
  107. - Let rpmbuild strip binaries, make build more verbose.
  108. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  109. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
  110. - Install python bindings into the correct location
  111. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
  112. - Run ldconfig on python-tdb
  113. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
  114. - Do not delete a necessary file during %%install
  115. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
  116. - Bump release to rebuild with the correct sources in place
  117. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
  118. - Bump build to rebuild with sources in place
  119. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
  120. - New upstream bugfix release
  121. - Adds a new tdbrestore utility
  122. - Convert to new WAF build-system
  123. - Add python bindings in new python-tdb subpackage
  124. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
  125. - add missing build require
  126. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
  127. - Fix spec file
  128. - Package manpages too
  129. * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
  130. - New upstream bugfix release
  131. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
  132. - New upstream release
  133. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
  134. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  135. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
  136. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  137. upstream.
  138. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
  139. - New upstream release
  140. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
  141. - First public independent release from upstream