libtalloc-vl.spec 5.1 KB

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