344b8c4
%if 0%{?fedora} || 0%{?rhel} > 7
Andreas Schneider 894c099
%bcond_without python3
Andreas Schneider 894c099
%else
Andreas Schneider 894c099
%bcond_with python3
57f1e85
%endif
57f1e85
adda748
Name: libtalloc
c388e2a
Version: 2.3.1
Andreas Schneider 894c099
Release: 6%{?dist}
adda748
Summary: The talloc library
adda748
License: LGPLv3+
c870847
URL: https://talloc.samba.org/
71048e1
71048e1
Source0: https://www.samba.org/ftp/talloc/talloc-%{version}.tar.gz
71048e1
Source1: https://www.samba.org/ftp/talloc/talloc-%{version}.tar.asc
71048e1
Source2: https://download.samba.org/pub/samba/samba-pubkey.asc#/talloc.keyring
adda748
920d9a2
# Patches
2b53e5c
Patch0001: 0003-wafsamba-Fix-few-SyntaxWarnings-caused-by-regular-ex.patch
920d9a2
55298d6
BuildRequires: make
e3c85b2
BuildRequires: gcc
adda748
BuildRequires: libxslt
adda748
BuildRequires: docbook-style-xsl
Andreas Schneider 894c099
%if %{with python3}
a4490ca
BuildRequires: python3-devel
4b0bf94
%endif
2e19798
BuildRequires: doxygen
71048e1
BuildRequires: gnupg2
adda748
a49c00f
Provides: bundled(libreplace)
33dafe4
Obsoletes: python2-talloc < 2.2.0-1
33dafe4
Obsoletes: python2-talloc-devel < 2.2.0-1
a49c00f
adda748
%description
adda748
A library that implements a hierarchical allocator with destructors.
adda748
adda748
%package devel
adda748
Summary: Developer tools for the Talloc library
adda748
Requires: libtalloc = %{version}-%{release}
adda748
adda748
%description devel
adda748
Header files needed to develop programs that link against the Talloc library.
adda748
Andreas Schneider 894c099
%if %{with python3}
a4490ca
%package -n python3-talloc
a4490ca
Summary: Python bindings for the Talloc library
a4490ca
Requires: libtalloc = %{version}-%{release}
ed767c3
%{?python_provide:%python_provide python3-talloc}
a4490ca
a4490ca
%description -n python3-talloc
a4490ca
Python 3 libraries for creating bindings using talloc
47a59a2
a4490ca
%package -n python3-talloc-devel
a4490ca
Summary: Development libraries for python3-talloc
a4490ca
Requires: python3-talloc = %{version}-%{release}
ed767c3
%{?python_provide:%python_provide python3-talloc-devel}
47a59a2
a4490ca
%description -n python3-talloc-devel
a4490ca
Development libraries for python3-talloc
4b0bf94
%endif
47a59a2
adda748
%prep
Andreas Schneider e86e01d
%autosetup -n talloc-%{version} -p1
adda748
adda748
%build
9f1c58c
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
b48898a
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1217376
b48898a
export python_LDFLAGS=""
b48898a
2e19798
%configure --disable-rpath \
2e19798
           --disable-rpath-install \
2e19798
           --bundled-libraries=NONE \
2e19798
           --builtin-libraries=replace \
33dafe4
           --disable-silent-rules
2e19798
19a418b
%make_build
2e19798
doxygen doxy.config
adda748
d022165
%check
19a418b
%make_build check
d022165
adda748
%install
19a418b
%make_install
adda748
2e19798
# Install API docs
Andreas Schneider 894c099
cp -a doc/man/man3 %{buildroot}%{_mandir}
2e19798
adda748
%files
adda748
%{_libdir}/libtalloc.so.*
adda748
adda748
%files devel
adda748
%{_includedir}/talloc.h
adda748
%{_libdir}/libtalloc.so
adda748
%{_libdir}/pkgconfig/talloc.pc
Andreas Schneider 894c099
%{_mandir}/man3/talloc*.3*
Andreas Schneider 894c099
%{_mandir}/man3/libtalloc*.3*
adda748
Andreas Schneider 894c099
%if %{with python3}
a4490ca
%files -n python3-talloc
777c8f6
%{_libdir}/libpytalloc-util.cpython*.so.*
777c8f6
%{python3_sitearch}/talloc.cpython*.so
a4490ca
a4490ca
%files -n python3-talloc-devel
a4490ca
%{_includedir}/pytalloc.h
b74ce28
%{_libdir}/pkgconfig/pytalloc-util.cpython-*.pc
777c8f6
%{_libdir}/libpytalloc-util.cpython*.so
4b0bf94
%endif
a4490ca
c0fe383
%ldconfig_scriptlets
de580c6
Andreas Schneider 894c099
%if %{with python3}
c0fe383
%ldconfig_scriptlets -n python3-talloc
4b0bf94
%endif
adda748
adda748
%changelog
Andreas Schneider 894c099
* Thu Oct 22 2020 Andreas Schneider <asn@redhat.com> - 2.3.1-6
Andreas Schneider 894c099
- Spec file cleanup and improvements
Andreas Schneider 894c099
dba3f54
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5
dba3f54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dba3f54
19a418b
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 2.3.1-4
19a418b
- Use make macros
19a418b
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
19a418b
621dbd3
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-3
621dbd3
- Rebuilt for Python 3.9
621dbd3
2c095ec
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
2c095ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2c095ec
c388e2a
* Wed Jan 22 2020 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.3.1-1
c388e2a
- rhbz#1748815 - libtalloc-2.3.1 is available
c388e2a
2b53e5c
* Wed Sep 11 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.3.0-1
2b53e5c
- rhbz#1748815 - libtalloc-2.3.0 is available
2b53e5c
0dd4726
* Mon Aug 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.2.0-1
0dd4726
- rhbz#1691297 - libtalloc-2.2.0 is available
0dd4726
- rhbz#1737644 - libldb, libtalloc, libtevent, libtdb: Remove Python 2 subpackages from Fedora 31+
0dd4726
ba32167
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.16-5
ba32167
- Rebuilt for Python 3.8
ba32167
647575e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.16-4
647575e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
647575e
9c822cb
* Fri Jun 14 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.16-3
9c822cb
- rhbz#1718113 - samba fail to build with Python 3.8
9c822cb
  AttributeError: module 'time' has no attribute 'clock'
9c822cb
64a2a7d
* Mon Jun 03 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.16-2
64a2a7d
- rhbz#1711638 - fails to build with Python 3.8.0a4
64a2a7d
72c7533
* Tue Feb 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.16-1
72c7533
- rhbz#1683211 - libtalloc-2.1.16 is available
72c7533
c42c6b0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.15-2
c42c6b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c42c6b0
10040cd
* Thu Jan 17 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.15-1
10040cd
- rhbz#1667471 - libtalloc-2.1.15 is available
10040cd
Jakub Hrozek 7237904
* Fri Jul 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 2.1.14-2
Jakub Hrozek 7237904
- Drop the unneeded ABI hide patch
Jakub Hrozek 7237904
- Use pathfix.py instead of a local patch to munge the python path
Jakub Hrozek 7237904
Jakub Hrozek 9f1f2af
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 2.1.14-1
Jakub Hrozek 9f1f2af
- New upstream release - 2.1.14
Jakub Hrozek 9f1f2af
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
Jakub Hrozek 9f1f2af
- Patch the waf script to explicitly call python2 as "env python" doesn't
Jakub Hrozek 9f1f2af
  yield py2 anymore
Jakub Hrozek 9f1f2af
ee2a172
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.13-2
ee2a172
- Rebuilt for Python 3.7
ee2a172
510023e
* Fri Apr 06 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.13-1
510023e
- rhbz#1564323 New upstream release - 2.1.13
510023e
80c3f0e
* Thu Mar 22 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.12-1
80c3f0e
- rhbz#1559378 New upstream release - 2.1.12
80c3f0e
b48898a
* Fri Mar 02 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.11-6
b48898a
- Disable link time optimisation for python3 related libs
b48898a
- Workaround for rhbz#1548823
b48898a
e3c85b2
* Mon Feb 26 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.11-5
e3c85b2
- Add gcc to Buildroot
e3c85b2
- https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
e3c85b2
2aa780c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.11-4
2aa780c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2aa780c
c0fe383
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.11-3
c0fe383
- Switch to %%ldconfig_scriptlets
c0fe383
3806d2d
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 2.1.11-2
3806d2d
- Rebuilt for switch to libxcrypt
3806d2d
f3f985b
* Sat Jan 13 2018 Lukas Slebodnik <lslebodn@fedoraproject.org> - 2.1.11-1
f3f985b
- rhbz#1534136 New upstream release - 2.1.11
f3f985b
344b8c4
* Wed Nov 29 2017 Merlin Mathesius <mmathesi@redhat.com> - 2.1.10-5
344b8c4
- Cleanup spec file conditionals
344b8c4
deb9e63
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-4
deb9e63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
deb9e63
3ffc4a0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-3
3ffc4a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3ffc4a0
b74ce28
* Mon Jul 24 2017 Lukas Slebodnik  <lslebodn@redhat.com> - 2.1.10-2
b74ce28
- fix location of pkgconfig files for libpytalloc*
b74ce28
d022165
* Mon Jul 24 2017 Lukas Slebodnik  <lslebodn@redhat.com> - 2.1.10-1
d022165
- rhbz#1473997 New upstream release - 2.1.10
d022165
- enable unit tests
d022165
Andreas Schneider e86e01d
* Thu Jul 06 2017 Andreas Schneider <asn@redhat.com> - 2.1.9-2
Andreas Schneider e86e01d
- Install pytalloc-util for python3 as well
Andreas Schneider e86e01d
f284a27
* Tue Feb 28 2017 Lukas Slebodnik  <lslebodn@redhat.com> - 2.1.9-1
f284a27
- rhbz#1427352 New upstream release - 2.1.9
f284a27
- rhbz#1401225 - Rename python packages to match packaging guidelines
f284a27
  https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f284a27
7c2b5b2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-3
7c2b5b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7c2b5b2
b556437
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.1.8-2
b556437
- Rebuild for Python 3.6
b556437
Jakub Hrozek 9b0af20
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.8-1
Jakub Hrozek 9b0af20
- New upstream release - 2.1.8
Jakub Hrozek 9b0af20
633defe
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.7-2
633defe
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
633defe
Jakub Hrozek da782f1
* Fri May  6 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.7-1
Jakub Hrozek da782f1
- New upstream release - 2.1.7
Jakub Hrozek da782f1
- Resolves: rhbz#1333790 - libtalloc-2.1.7 is available
Jakub Hrozek da782f1
Jakub Hrozek c798d0c
* Wed Mar  9 2016 Jakub Hrozek <jhrozek@redhat.com> - 2.1.6-1
Jakub Hrozek c798d0c
- New upstream release - 2.1.6
Jakub Hrozek c798d0c
3517ced
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-4
3517ced
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3517ced
f2f50c0
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-3
f2f50c0
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f2f50c0
b0c9497
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.5-1
b0c9497
- New upstream release - 2.1.5
b0c9497
3496002
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-2
3496002
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
3496002
a80da3e
* Wed Oct 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.4-1
a80da3e
- New upstream release - 2.1.4
a80da3e
a4490ca
* Wed Jul 22 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.3-1
a4490ca
- New upstream release - 2.1.3
a4490ca
- Resolves: rhbz#1241928 - Switch libtalloc to use python3
a4490ca
- Rename pytalloc to python-talloc (Miro Hrončok <mhroncok@redhat.com>)
a4490ca
896d3fb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-2
896d3fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
896d3fb
875dcf7
* Fri Mar 13 2015 Jakub Hrozek <jhrozek@redhat.com> - 2.1.2-1
875dcf7
- New upstream release - 2.1.2
875dcf7
0f17715
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
0f17715
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0f17715
9ca8351
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
9ca8351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9ca8351
e596373
* Fri May 23 2014 Jakub Hrozek <jhrozek@redhat.com> - 2.1.1-1
e596373
- New upstream release
e596373
39d2099
* Sun Dec 15 2013 Jakub Hrozek <jhrozek@redhat.com> - 2.1.0-3
39d2099
- Bump NVR in order to tag a build
39d2099
39d2099
* Tue Sep 10 2013 Jakub Hrozek <jhrozek@redhat.com> - 2.1.0-2
9280e70
- New upstream release
9280e70
48b6463
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-3
48b6463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
48b6463
71a9396
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-2
71a9396
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
71a9396
42a5dab
* Sat Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 2.0.8-1
42a5dab
- New upstream release
42a5dab
67d85ae
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-5
67d85ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
67d85ae
bd7d272
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-4
bd7d272
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bd7d272
2e19798
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-3
2e19798
- Add patch to ignore --disable-silent-rules
2e19798
- Package API docs into libtalloc-devel
2e19798
a49c00f
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-2
a49c00f
- Add explicit mention of the bundled libreplace
a49c00f
- https://fedorahosted.org/fpc/ticket/120
a49c00f
e5a1775
* Fri Nov 04 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.7-1
e5a1775
- New upstream release
e5a1775
- Required for new Samba 4 alpha builds
e5a1775
30e74bb
* Mon Aug 08 2011 Simo Sorce <ssorce@redhat.com> - 2.0.6-1
30e74bb
- New upstream release
30e74bb
- Fixes various bugs with talloc_free_children and freeing complex
30e74bb
  hierarchies with many siblinbgs.
30e74bb
5100335
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-8
5100335
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5100335
1462ccf
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-7
464d55b
- Let rpmbuild strip binaries, make build more verbose.
464d55b
- Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
464d55b
-                        empty -debuginfo
464d55b
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
464d55b
de580c6
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-6
de580c6
- Install python bindings in the correct location
de580c6
de580c6
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-5
de580c6
- Run ldconfig on pytalloc
de580c6
65a0512
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-4
65a0512
- Fix build failure on 32-bit platforms
65a0512
47a59a2
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-3
47a59a2
- New version from upstream
47a59a2
- Add support for pytalloc
47a59a2
- Convert to new WAF build-system
47a59a2
6175c49
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 2.0.1-1
6175c49
- New version from upstream
6175c49
- Also stop building the compat lib, it is not necessary anymore
6175c49
be3aec4
* Tue Sep  8 2009 Simo Sorce <ssorce@redhat.com> - 2.0.0-0
be3aec4
- New version from upstream.
be3aec4
- Build also sover 1 compat library to ease packages migration
be3aec4
716a4c4
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
716a4c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
716a4c4
a6e62cb
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-1
a6e62cb
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
a6e62cb
  upstream.
a6e62cb
5da3960
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-0
5da3960
- New Upstream release.
5da3960
adda748
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.3.0-0
adda748
- First public independent release from upstream