libtdb-vl.spec 5.1 KB

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