libtalloc-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libtalloc
  3. Version: 2.0.5
  4. Release: 10%{?_dist_release}
  5. Group: System Environment/Libraries
  6. Summary: The talloc library
  7. License: LGPLv3+
  8. URL: http://talloc.samba.org/
  9. Source: http://samba.org/ftp/talloc/talloc-%{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 hierarchical allocator with destructors.
  22. %package devel
  23. Group: Development/Libraries
  24. Summary: Developer tools for the Talloc library
  25. Requires: libtalloc = %{version}-%{release}
  26. %description devel
  27. Header files needed to develop programs that link against the Talloc library.
  28. %package -n pytalloc
  29. Group: Development/Libraries
  30. Summary: Developer tools for the Talloc library
  31. Requires: libtalloc = %{version}-%{release}
  32. %description -n pytalloc
  33. Pytalloc libraries for creating python bindings using talloc
  34. %package -n pytalloc-devel
  35. Group: Development/Libraries
  36. Summary: Developer tools for the Talloc library
  37. Requires: pytalloc = %{version}-%{release}
  38. %description -n pytalloc-devel
  39. Development libraries for pytalloc
  40. %if %build_compat32
  41. %package -n compat32-libtalloc
  42. Summary: The talloc library
  43. Group: System Environment/Libraries
  44. %description -n compat32-libtalloc
  45. A library that implements a hierarchical allocator with destructors.
  46. %endif
  47. %prep
  48. %setup -q -n talloc-%{version}
  49. %patch0001 -p1
  50. %build
  51. ./autogen.sh
  52. %configure --disable-rpath --bundled-libraries=NONE
  53. make %{?_smp_mflags} V=1
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. # Shared libraries need to be marked executable for
  58. # rpmbuild to strip them and include them in debuginfo
  59. find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
  60. rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
  61. rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %files
  65. %defattr(-,root,root,-)
  66. %{_libdir}/libtalloc.so.*
  67. %files devel
  68. %defattr(-,root,root,-)
  69. %{_includedir}/talloc.h
  70. %{_libdir}/libtalloc.so
  71. %{_libdir}/pkgconfig/talloc.pc
  72. %{_mandir}/man3/talloc.3.gz
  73. %files -n pytalloc
  74. %defattr(-,root,root,-)
  75. %{_libdir}/libpytalloc-util.so.*
  76. %{python_sitearch}/talloc.so
  77. %files -n pytalloc-devel
  78. %defattr(-,root,root,-)
  79. %{_includedir}/pytalloc.h
  80. %{_libdir}/pkgconfig/pytalloc-util.pc
  81. %{_libdir}/libpytalloc-util.so
  82. %if %build_compat32
  83. %files -n compat32-libtalloc
  84. %attr(755,root,root) %{_libdir}/libtalloc.so.*
  85. %endif
  86. %post -p /sbin/ldconfig
  87. %postun -p /sbin/ldconfig
  88. %post -n pytalloc -p /sbin/ldconfig
  89. %postun -n pytalloc -p /sbin/ldconfig
  90. %if %build_compat32
  91. %post -n compat32-libtalloc -p /sbin/ldconfig
  92. %postun -n compat32-libtalloc -p /sbin/ldconfig
  93. %endif
  94. %changelog
  95. * Wed Feb 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.5-10
  96. - rebuild with python-2.7.2
  97. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-9
  98. - initial build for Vine Linux.
  99. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-8
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  101. * Thu Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-7
  102. - Let rpmbuild strip binaries, make build more verbose.
  103. - Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
  104. - empty -debuginfo
  105. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  106. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-6
  107. - Install python bindings in the correct location
  108. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-5
  109. - Run ldconfig on pytalloc
  110. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-4
  111. - Fix build failure on 32-bit platforms
  112. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-3
  113. - New version from upstream
  114. - Add support for pytalloc
  115. - Convert to new WAF build-system
  116. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 2.0.1-1
  117. - New version from upstream
  118. - Also stop building the compat lib, it is not necessary anymore
  119. * Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 2.0.0-0
  120. - New version from upstream.
  121. - Build also sover 1 compat library to ease packages migration
  122. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
  123. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  124. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-1
  125. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  126. upstream.
  127. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-0
  128. - New Upstream release.
  129. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.3.0-0
  130. - First public independent release from upstream