libtalloc-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libtalloc
  3. Version: 2.0.5
  4. Release: 9%{?_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. * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-9
  96. - initial build for Vine Linux.
  97. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-8
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  99. * Thu Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-7
  100. - Let rpmbuild strip binaries, make build more verbose.
  101. - Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
  102. - empty -debuginfo
  103. - Original patch by Ville Skyttä <ville.skytta@iki.fi>
  104. * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-6
  105. - Install python bindings in the correct location
  106. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-5
  107. - Run ldconfig on pytalloc
  108. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-4
  109. - Fix build failure on 32-bit platforms
  110. * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-3
  111. - New version from upstream
  112. - Add support for pytalloc
  113. - Convert to new WAF build-system
  114. * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 2.0.1-1
  115. - New version from upstream
  116. - Also stop building the compat lib, it is not necessary anymore
  117. * Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 2.0.0-0
  118. - New version from upstream.
  119. - Build also sover 1 compat library to ease packages migration
  120. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
  121. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  122. * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-1
  123. - Original tarballs had a screw-up, rebuild with new fixed tarballs from
  124. upstream.
  125. * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-0
  126. - New Upstream release.
  127. * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.3.0-0
  128. - First public independent release from upstream