Blame SPECS/libtalloc.spec

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