8d2127
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
8d2127
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
8d2127
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
8d2127
%endif
8d2127
%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")}
8d2127
8d2127
Name: libtalloc
b72ebf
Version: 2.1.13
8d2127
Release: 1%{?dist}
8d2127
Group: System Environment/Daemons
8d2127
Summary: The talloc library
8d2127
License: LGPLv3+
8d2127
URL: http://talloc.samba.org/
8d2127
Source: http://samba.org/ftp/talloc/talloc-%{version}.tar.gz
8d2127
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
8d2127
8d2127
BuildRequires: autoconf
8d2127
BuildRequires: libxslt
8d2127
BuildRequires: docbook-style-xsl
8d2127
BuildRequires: python-devel
8d2127
BuildRequires: doxygen
8d2127
8d2127
Provides: bundled(libreplace)
8d2127
8d2127
# Patches
8d2127
8d2127
8d2127
%description
8d2127
A library that implements a hierarchical allocator with destructors.
8d2127
8d2127
%package devel
8d2127
Group: Development/Libraries
8d2127
Summary: Developer tools for the Talloc library
8d2127
Requires: libtalloc = %{version}-%{release}
8d2127
8d2127
%description devel
8d2127
Header files needed to develop programs that link against the Talloc library.
8d2127
8d2127
%package -n pytalloc
8d2127
Group: Development/Libraries
8d2127
Summary: Developer tools for the Talloc library
8d2127
Requires: libtalloc = %{version}-%{release}
8d2127
8d2127
%description -n pytalloc
8d2127
Pytalloc libraries for creating python bindings using talloc
8d2127
8d2127
%package -n pytalloc-devel
8d2127
Group: Development/Libraries
8d2127
Summary: Developer tools for the Talloc library
8d2127
Requires: pytalloc = %{version}-%{release}
8d2127
8d2127
%description -n pytalloc-devel
8d2127
Development libraries for pytalloc
8d2127
8d2127
8d2127
%prep
8d2127
%setup -q -n talloc-%{version}
8d2127
8d2127
%build
8d2127
%configure --disable-rpath \
8d2127
           --disable-rpath-install \
8d2127
           --bundled-libraries=NONE \
8d2127
           --builtin-libraries=replace \
8d2127
           --disable-silent-rules
8d2127
8d2127
make %{?_smp_mflags} V=1
8d2127
doxygen doxy.config
8d2127
8d2127
%install
8d2127
rm -rf $RPM_BUILD_ROOT
8d2127
8d2127
make install DESTDIR=$RPM_BUILD_ROOT
8d2127
8d2127
# Shared libraries need to be marked executable for
8d2127
# rpmbuild to strip them and include them in debuginfo
8d2127
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
8d2127
8d2127
rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
8d2127
rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i
8d2127
8d2127
# Install API docs
8d2127
cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
8d2127
8d2127
%clean
8d2127
rm -rf $RPM_BUILD_ROOT
8d2127
8d2127
%files
8d2127
%defattr(-,root,root,-)
8d2127
%{_libdir}/libtalloc.so.*
8d2127
8d2127
%files devel
8d2127
%defattr(-,root,root,-)
8d2127
%{_includedir}/talloc.h
8d2127
%{_libdir}/libtalloc.so
8d2127
%{_libdir}/pkgconfig/talloc.pc
8d2127
%{_mandir}/man3/talloc*.3.gz
8d2127
%{_mandir}/man3/libtalloc*.3.gz
8d2127
8d2127
%files -n pytalloc
8d2127
%defattr(-,root,root,-)
8d2127
%{_libdir}/libpytalloc-util.so.*
8d2127
%{python_sitearch}/talloc.so
8d2127
8d2127
%files -n pytalloc-devel
8d2127
%defattr(-,root,root,-)
8d2127
%{_includedir}/pytalloc.h
8d2127
%{_libdir}/pkgconfig/pytalloc-util.pc
8d2127
%{_libdir}/libpytalloc-util.so
8d2127
8d2127
%post -p /sbin/ldconfig
8d2127
8d2127
%postun -p /sbin/ldconfig
8d2127
8d2127
%post -n pytalloc -p /sbin/ldconfig
8d2127
%postun -n pytalloc -p /sbin/ldconfig
8d2127
8d2127
%changelog
b72ebf
* Tue Apr 10 2018 Jakub Hrozek <jhrozek@redhat.com> - 2.1.13-1
b72ebf
- Rebase to libtalloc 2.1.13
b72ebf
- Resolves: rhbz#1558492 - Rebase libtalloc to enable samba rebase
b72ebf
8d2127
* Sun Oct 15 2017 Jakub Hrozek <jhrozek@redhat.com> - 2.1.10-1
8d2127
- Rebase to libtalloc 2.1.10
8d2127
- Resolves: rhbz#1470053 - Rebase libtalloc to enable samba rebase to
8d2127
                           version 4.7.x
8d2127
8d2127
* Wed Mar  1 2017 Jakub Hrozek <jhrozek@redhat.com> - 2.1.9-1
8d2127
- Rebase to libtalloc 2.1.9
8d2127
- Resolves: rhbz#1393811 - Rebase libtalloc to enable samba rebase to
8d2127
                           version 4.6.x
8d2127
8d2127
* Tue Feb 14 2017 Jakub Hrozek <jhrozek@redhat.com> - 2.1.8-1
8d2127
- Rebase to libtalloc 2.1.8
8d2127
- Resolves: rhbz#1393811 - Rebase libtalloc to enable samba rebase to
8d2127
                           version 4.6.x
8d2127
8d2127
* Thu Jun  9 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.6-1
8d2127
- Rebase to libtalloc 2.1.5
8d2127
- Resolves: rhbz#1320230 - Rebase libtalloc to version 2.1.6
8d2127
8d2127
* Fri Apr  1 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.5-1
8d2127
- Rebase to libtalloc 2.1.5
8d2127
- Related: rhbz#1322691
8d2127
8d2127
* Wed Jun  3 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.2-1
8d2127
- Resolves: rhbz#1226046 - Rebase libtalloc to at least 2.1.2 in RHEL-7.2
8d2127
8d2127
* Thu Sep 04 2014 Jakub Hrozek <jhrozek@redhat.com> - 2.1.1-1
8d2127
- New upstream release
8d2127
- Resolves: rhbz#1133932 - Rebase libtalloc to version 2.1.1 or newer
8d2127
8d2127
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0.8-4
8d2127
- Mass rebuild 2014-01-24
8d2127
8d2127
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.8-3
8d2127
- Mass rebuild 2013-12-27
8d2127
8d2127
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-2
8d2127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8d2127
8d2127
* Sat Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 2.0.8-1
8d2127
- New upstream release
8d2127
8d2127
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-5
8d2127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8d2127
8d2127
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-4
8d2127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8d2127
8d2127
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-3
8d2127
- Add patch to ignore --disable-silent-rules
8d2127
- Package API docs into libtalloc-devel
8d2127
8d2127
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-2
8d2127
- Add explicit mention of the bundled libreplace
8d2127
- https://fedorahosted.org/fpc/ticket/120
8d2127
8d2127
* Fri Nov 04 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-1
8d2127
- New upstream release
8d2127
- Required for new Samba 4 alpha builds
8d2127
8d2127
* Mon Aug 08 2011 Simo Sorce <ssorce@redhat.com> - 2.0.6-1
8d2127
- New upstream release
8d2127
- Fixes various bugs with talloc_free_children and freeing complex
8d2127
  hierarchies with many siblinbgs.
8d2127
8d2127
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-8
8d2127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8d2127
8d2127
* Thu Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-7
8d2127
- Let rpmbuild strip binaries, make build more verbose.
8d2127
- Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
8d2127
-                        empty -debuginfo
8d2127
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
8d2127
8d2127
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-6
8d2127
- Install python bindings in the correct location
8d2127
8d2127
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-5
8d2127
- Run ldconfig on pytalloc
8d2127
8d2127
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-4
8d2127
- Fix build failure on 32-bit platforms
8d2127
8d2127
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-3
8d2127
- New version from upstream
8d2127
- Add support for pytalloc
8d2127
- Convert to new WAF build-system
8d2127
8d2127
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 2.0.1-1
8d2127
- New version from upstream
8d2127
- Also stop building the compat lib, it is not necessary anymore
8d2127
8d2127
* Tue Sep  8 2009 Simo Sorce <ssorce@redhat.com> - 2.0.0-0
8d2127
- New version from upstream.
8d2127
- Build also sover 1 compat library to ease packages migration
8d2127
8d2127
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
8d2127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8d2127
8d2127
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-1
8d2127
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
8d2127
  upstream.
8d2127
8d2127
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-0
8d2127
- New Upstream release.
8d2127
8d2127
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.3.0-0
8d2127
- First public independent release from upstream