libtalloc-vl.spec 5.2 KB

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