344b8c4
%if 0%{?fedora} || 0%{?rhel} > 7
4b0bf94
%global with_python3 1
4b0bf94
%else
4b0bf94
%global with_python3 0
4b0bf94
%endif
4b0bf94
adda748
Name: libtalloc
f3f985b
Version: 2.1.11
c0fe383
Release: 3%{?dist}
adda748
Group: System Environment/Daemons
adda748
Summary: The talloc library
adda748
License: LGPLv3+
c870847
URL: https://talloc.samba.org/
c870847
Source: https://www.samba.org/ftp/talloc/talloc-%{version}.tar.gz
adda748
adda748
BuildRequires: libxslt
adda748
BuildRequires: docbook-style-xsl
a4490ca
BuildRequires: python2-devel
4b0bf94
%if 0%{?with_python3}
a4490ca
BuildRequires: python3-devel
4b0bf94
%endif
2e19798
BuildRequires: doxygen
adda748
a49c00f
Provides: bundled(libreplace)
a49c00f
de580c6
# Patches
2e19798
adda748
%description
adda748
A library that implements a hierarchical allocator with destructors.
adda748
adda748
%package devel
adda748
Group: Development/Libraries
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
ed767c3
%package -n python2-talloc
47a59a2
Group: Development/Libraries
a4490ca
Summary: Python bindings for the Talloc library
47a59a2
Requires: libtalloc = %{version}-%{release}
a4490ca
Provides: pytalloc%{?_isa} = %{version}-%{release}
a4490ca
Provides: pytalloc = %{version}-%{release}
a4490ca
Obsoletes: pytalloc < 2.1.3
ed767c3
%{?python_provide:%python_provide python2-talloc}
47a59a2
ed767c3
%description -n python2-talloc
ed767c3
Python 2 libraries for creating bindings using talloc
47a59a2
ed767c3
%package -n python2-talloc-devel
47a59a2
Group: Development/Libraries
ed767c3
Summary: Development libraries for python2-talloc
ed767c3
Requires: python2-talloc = %{version}-%{release}
a4490ca
Provides: pytalloc-devel%{?_isa} = %{version}-%{release}
a4490ca
Provides: pytalloc-devel = %{version}-%{release}
a4490ca
Obsoletes: pytalloc-devel < 2.1.3
ed767c3
%{?python_provide:%python_provide python2-talloc-devel}
a4490ca
ed767c3
%description -n python2-talloc-devel
ed767c3
Development libraries for python2-talloc
a4490ca
4b0bf94
%if 0%{?with_python3}
a4490ca
%package -n python3-talloc
a4490ca
Group: Development/Libraries
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
Group: Development/Libraries
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
4b0bf94
4b0bf94
%if 0%{?with_python3}
4b0bf94
PY3_CONFIG_FLAGS=--extra-python=%{__python3}
4b0bf94
%else
4b0bf94
PY3_CONFIG_FLAGS=""
4b0bf94
%endif
4b0bf94
2e19798
%configure --disable-rpath \
2e19798
           --disable-rpath-install \
2e19798
           --bundled-libraries=NONE \
2e19798
           --builtin-libraries=replace \
a4490ca
           --disable-silent-rules \
4b0bf94
           $PY3_CONFIG_FLAGS
2e19798
464d55b
make %{?_smp_mflags} V=1
2e19798
doxygen doxy.config
adda748
d022165
%check
d022165
make %{?_smp_mflags} check
d022165
adda748
%install
adda748
adda748
make install DESTDIR=$RPM_BUILD_ROOT
adda748
464d55b
# Shared libraries need to be marked executable for
464d55b
# rpmbuild to strip them and include them in debuginfo
464d55b
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
464d55b
adda748
rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
adda748
rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i
adda748
2e19798
# Install API docs
2e19798
cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
2e19798
adda748
%files
adda748
%defattr(-,root,root,-)
adda748
%{_libdir}/libtalloc.so.*
adda748
adda748
%files devel
adda748
%defattr(-,root,root,-)
adda748
%{_includedir}/talloc.h
adda748
%{_libdir}/libtalloc.so
adda748
%{_libdir}/pkgconfig/talloc.pc
2e19798
%{_mandir}/man3/talloc*.3.gz
42a5dab
%{_mandir}/man3/libtalloc*.3.gz
adda748
ed767c3
%files -n python2-talloc
47a59a2
%defattr(-,root,root,-)
47a59a2
%{_libdir}/libpytalloc-util.so.*
47a59a2
%{python_sitearch}/talloc.so
47a59a2
ed767c3
%files -n python2-talloc-devel
47a59a2
%defattr(-,root,root,-)
47a59a2
%{_includedir}/pytalloc.h
47a59a2
%{_libdir}/pkgconfig/pytalloc-util.pc
47a59a2
%{_libdir}/libpytalloc-util.so
47a59a2
4b0bf94
%if 0%{?with_python3}
a4490ca
%files -n python3-talloc
a4490ca
%defattr(-,root,root,-)
777c8f6
%{_libdir}/libpytalloc-util.cpython*.so.*
777c8f6
%{python3_sitearch}/talloc.cpython*.so
a4490ca
a4490ca
%files -n python3-talloc-devel
a4490ca
%defattr(-,root,root,-)
a4490ca
%{_includedir}/pytalloc.h
b74ce28
%{_libdir}/pkgconfig/pytalloc-util.cpython-*.pc
777c8f6
%{_libdir}/libpytalloc-util.cpython*.so
4b0bf94
%endif
a4490ca
c0fe383
%ldconfig_scriptlets
de580c6
c0fe383
%ldconfig_scriptlets -n python2-talloc
a4490ca
4b0bf94
%if 0%{?with_python3}
c0fe383
%ldconfig_scriptlets -n python3-talloc
4b0bf94
%endif
adda748
adda748
%changelog
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