Blame SPECS/libtalloc.spec

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