Blame SPECS/libtalloc.spec

52db47
%if 0%{?fedora} || 0%{?rhel} > 7
52db47
%bcond_without python3
52db47
%else
52db47
%bcond_with python3
52db47
%endif
52db47
52db47
Name: libtalloc
9a3988
Version: 2.3.4
52db47
Release: 1%{?dist}
52db47
Summary: The talloc library
52db47
License: LGPLv3+
52db47
URL: https://talloc.samba.org/
52db47
52db47
Source0: https://www.samba.org/ftp/talloc/talloc-%{version}.tar.gz
52db47
Source1: https://www.samba.org/ftp/talloc/talloc-%{version}.tar.asc
52db47
Source2: https://download.samba.org/pub/samba/samba-pubkey.asc#/talloc.keyring
52db47
52db47
# Patches
52db47
Patch0001: 0003-wafsamba-Fix-few-SyntaxWarnings-caused-by-regular-ex.patch
52db47
52db47
BuildRequires: make
52db47
BuildRequires: gcc
52db47
BuildRequires: libxslt
52db47
BuildRequires: docbook-style-xsl
52db47
%if %{with python3}
52db47
BuildRequires: python3-devel
52db47
%endif
52db47
BuildRequires: doxygen
52db47
BuildRequires: gnupg2
52db47
52db47
Provides: bundled(libreplace)
52db47
Obsoletes: python2-talloc < 2.2.0-1
52db47
Obsoletes: python2-talloc-devel < 2.2.0-1
52db47
52db47
%description
52db47
A library that implements a hierarchical allocator with destructors.
52db47
52db47
%package devel
52db47
Summary: Developer tools for the Talloc library
52db47
Requires: libtalloc = %{version}-%{release}
52db47
52db47
%description devel
52db47
Header files needed to develop programs that link against the Talloc library.
52db47
52db47
%if %{with python3}
52db47
%package -n python3-talloc
52db47
Summary: Python bindings for the Talloc library
52db47
Requires: libtalloc = %{version}-%{release}
52db47
%{?python_provide:%python_provide python3-talloc}
52db47
52db47
%description -n python3-talloc
52db47
Python 3 libraries for creating bindings using talloc
52db47
52db47
%package -n python3-talloc-devel
52db47
Summary: Development libraries for python3-talloc
52db47
Requires: python3-talloc = %{version}-%{release}
52db47
%{?python_provide:%python_provide python3-talloc-devel}
52db47
52db47
%description -n python3-talloc-devel
52db47
Development libraries for python3-talloc
52db47
%endif
52db47
52db47
%prep
52db47
%autosetup -n talloc-%{version} -p1
52db47
52db47
%build
52db47
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
52db47
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1217376
52db47
export python_LDFLAGS=""
52db47
52db47
%configure --disable-rpath \
52db47
           --disable-rpath-install \
52db47
           --bundled-libraries=NONE \
52db47
           --builtin-libraries=replace \
52db47
           --disable-silent-rules
52db47
52db47
%make_build
52db47
doxygen doxy.config
52db47
52db47
%check
52db47
%make_build check
52db47
52db47
%install
52db47
%make_install
52db47
52db47
# Install API docs
52db47
cp -a doc/man/man3 %{buildroot}%{_mandir}
52db47
52db47
%files
52db47
%{_libdir}/libtalloc.so.*
52db47
52db47
%files devel
52db47
%{_includedir}/talloc.h
52db47
%{_libdir}/libtalloc.so
52db47
%{_libdir}/pkgconfig/talloc.pc
52db47
%{_mandir}/man3/talloc*.3*
52db47
%{_mandir}/man3/libtalloc*.3*
52db47
52db47
%if %{with python3}
52db47
%files -n python3-talloc
52db47
%{_libdir}/libpytalloc-util.cpython*.so.*
52db47
%{python3_sitearch}/talloc.cpython*.so
52db47
52db47
%files -n python3-talloc-devel
52db47
%{_includedir}/pytalloc.h
52db47
%{_libdir}/pkgconfig/pytalloc-util.cpython-*.pc
52db47
%{_libdir}/libpytalloc-util.cpython*.so
52db47
%endif
52db47
52db47
%ldconfig_scriptlets
52db47
52db47
%if %{with python3}
52db47
%ldconfig_scriptlets -n python3-talloc
52db47
%endif
52db47
52db47
%changelog
9a3988
* Thu Oct 20 2022 Andreas Schneider <asn@redhat.com> - 2.3.4-1
9a3988
- resolves: rhbz#2132000 - Rebase to version 2.3.4
9a3988
52db47
* Mon Nov 29 2021 Pavel Filipenský <pfilipen@redhat.com> - 2.3.3-1
52db47
- resolves: rhbz#2013581 - Rebase to version 2.3.3
52db47
52db47
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.2-5
52db47
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
52db47
  Related: rhbz#1991688
52db47
52db47
* Mon May 31 2021 Andreas Schneider <asn@redhat.com> - 2.3.2-4
52db47
- related: rhbz#1962773 - Rebuilt for running gating tests
52db47
52db47
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.3.2-3
52db47
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
52db47
52db47
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
52db47
52db47
* Mon Jan 25 2021 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.3.2-1
52db47
- libtalloc-2.3.2 is available
52db47
52db47
* Thu Oct 22 2020 Andreas Schneider <asn@redhat.com> - 2.3.1-6
52db47
- Spec file cleanup and improvements
52db47
52db47
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
52db47
52db47
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 2.3.1-4
52db47
- Use make macros
52db47
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
52db47
52db47
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-3
52db47
- Rebuilt for Python 3.9
52db47
52db47
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
52db47
52db47
* Wed Jan 22 2020 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.3.1-1
52db47
- rhbz#1748815 - libtalloc-2.3.1 is available
52db47
52db47
* Wed Sep 11 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.3.0-1
52db47
- rhbz#1748815 - libtalloc-2.3.0 is available
52db47
52db47
* Mon Aug 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.2.0-1
52db47
- rhbz#1691297 - libtalloc-2.2.0 is available
52db47
- rhbz#1737644 - libldb, libtalloc, libtevent, libtdb: Remove Python 2 subpackages from Fedora 31+
52db47
52db47
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.16-5
52db47
- Rebuilt for Python 3.8
52db47
52db47
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.16-4
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
52db47
52db47
* Fri Jun 14 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.16-3
52db47
- rhbz#1718113 - samba fail to build with Python 3.8
52db47
  AttributeError: module 'time' has no attribute 'clock'
52db47
52db47
* Mon Jun 03 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.16-2
52db47
- rhbz#1711638 - fails to build with Python 3.8.0a4
52db47
52db47
* Tue Feb 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.16-1
52db47
- rhbz#1683211 - libtalloc-2.1.16 is available
52db47
52db47
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.15-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
52db47
52db47
* Thu Jan 17 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.15-1
52db47
- rhbz#1667471 - libtalloc-2.1.15 is available
52db47
52db47
* Fri Jul 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 2.1.14-2
52db47
- Drop the unneeded ABI hide patch
52db47
- Use pathfix.py instead of a local patch to munge the python path
52db47
52db47
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 2.1.14-1
52db47
- New upstream release - 2.1.14
52db47
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
52db47
- Patch the waf script to explicitly call python2 as "env python" doesn't
52db47
  yield py2 anymore
52db47
52db47
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.13-2
52db47
- Rebuilt for Python 3.7
52db47
52db47
* Fri Apr 06 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.13-1
52db47
- rhbz#1564323 New upstream release - 2.1.13
52db47
52db47
* Thu Mar 22 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.12-1
52db47
- rhbz#1559378 New upstream release - 2.1.12
52db47
52db47
* Fri Mar 02 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.11-6
52db47
- Disable link time optimisation for python3 related libs
52db47
- Workaround for rhbz#1548823
52db47
52db47
* Mon Feb 26 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.11-5
52db47
- Add gcc to Buildroot
52db47
- https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
52db47
52db47
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.11-4
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
52db47
52db47
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.11-3
52db47
- Switch to %%ldconfig_scriptlets
52db47
52db47
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 2.1.11-2
52db47
- Rebuilt for switch to libxcrypt
52db47
52db47
* Sat Jan 13 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.11-1
52db47
- rhbz#1534136 New upstream release - 2.1.11
52db47
52db47
* Wed Nov 29 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.1.10-5
52db47
- Cleanup spec file conditionals
52db47
52db47
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-4
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
52db47
52db47
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-3
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
52db47
52db47
* Mon Jul 24 2017 Lukas Slebodnik  <lslebodn@redhat.com> - 2.1.10-2
52db47
- fix location of pkgconfig files for libpytalloc*
52db47
52db47
* Mon Jul 24 2017 Lukas Slebodnik  <lslebodn@redhat.com> - 2.1.10-1
52db47
- rhbz#1473997 New upstream release - 2.1.10
52db47
- enable unit tests
52db47
52db47
* Thu Jul 06 2017 Andreas Schneider <asn@redhat.com> - 2.1.9-2
52db47
- Install pytalloc-util for python3 as well
52db47
52db47
* Tue Feb 28 2017 Lukas Slebodnik  <lslebodn@redhat.com> - 2.1.9-1
52db47
- rhbz#1427352 New upstream release - 2.1.9
52db47
- rhbz#1401225 - Rename python packages to match packaging guidelines
52db47
  https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
52db47
52db47
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-3
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
52db47
52db47
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.1.8-2
52db47
- Rebuild for Python 3.6
52db47
52db47
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.8-1
52db47
- New upstream release - 2.1.8
52db47
52db47
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.7-2
52db47
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
52db47
52db47
* Fri May  6 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.7-1
52db47
- New upstream release - 2.1.7
52db47
- Resolves: rhbz#1333790 - libtalloc-2.1.7 is available
52db47
52db47
* Wed Mar  9 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.6-1
52db47
- New upstream release - 2.1.6
52db47
52db47
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-4
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
52db47
52db47
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-3
52db47
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
52db47
52db47
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.5-1
52db47
- New upstream release - 2.1.5
52db47
52db47
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
52db47
52db47
* Wed Oct 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.4-1
52db47
- New upstream release - 2.1.4
52db47
52db47
* Wed Jul 22 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.3-1
52db47
- New upstream release - 2.1.3
52db47
- Resolves: rhbz#1241928 - Switch libtalloc to use python3
52db47
- Rename pytalloc to python-talloc (Miro Hrončok <mhroncok@redhat.com>)
52db47
52db47
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
52db47
52db47
* Fri Mar 13 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.2-1
52db47
- New upstream release - 2.1.2
52db47
52db47
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
52db47
52db47
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
52db47
52db47
* Fri May 23 2014 Jakub Hrozek <jhrozek@redhat.com> - 2.1.1-1
52db47
- New upstream release
52db47
52db47
* Sun Dec 15 2013 Jakub Hrozek <jhrozek@redhat.com> - 2.1.0-3
52db47
- Bump NVR in order to tag a build
52db47
52db47
* Tue Sep 10 2013 Jakub Hrozek <jhrozek@redhat.com> - 2.1.0-2
52db47
- New upstream release
52db47
52db47
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-3
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
52db47
52db47
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
52db47
52db47
* Sat Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 2.0.8-1
52db47
- New upstream release
52db47
52db47
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-5
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
52db47
52db47
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-4
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
52db47
52db47
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-3
52db47
- Add patch to ignore --disable-silent-rules
52db47
- Package API docs into libtalloc-devel
52db47
52db47
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-2
52db47
- Add explicit mention of the bundled libreplace
52db47
- https://fedorahosted.org/fpc/ticket/120
52db47
52db47
* Fri Nov 04 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-1
52db47
- New upstream release
52db47
- Required for new Samba 4 alpha builds
52db47
52db47
* Mon Aug 08 2011 Simo Sorce <ssorce@redhat.com> - 2.0.6-1
52db47
- New upstream release
52db47
- Fixes various bugs with talloc_free_children and freeing complex
52db47
  hierarchies with many siblinbgs.
52db47
52db47
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-8
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
52db47
52db47
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-7
52db47
- Let rpmbuild strip binaries, make build more verbose.
52db47
- Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
52db47
-                        empty -debuginfo
52db47
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
52db47
52db47
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-6
52db47
- Install python bindings in the correct location
52db47
52db47
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-5
52db47
- Run ldconfig on pytalloc
52db47
52db47
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-4
52db47
- Fix build failure on 32-bit platforms
52db47
52db47
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-3
52db47
- New version from upstream
52db47
- Add support for pytalloc
52db47
- Convert to new WAF build-system
52db47
52db47
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 2.0.1-1
52db47
- New version from upstream
52db47
- Also stop building the compat lib, it is not necessary anymore
52db47
52db47
* Tue Sep  8 2009 Simo Sorce <ssorce@redhat.com> - 2.0.0-0
52db47
- New version from upstream.
52db47
- Build also sover 1 compat library to ease packages migration
52db47
52db47
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
52db47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
52db47
52db47
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-1
52db47
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
52db47
  upstream.
52db47
52db47
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-0
52db47
- New Upstream release.
52db47
52db47
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.3.0-0
52db47
- First public independent release from upstream