2 Summary: The talloc library - a hierarchical pool based memory system
3 Summary(pl.UTF-8): Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli
10 Source0: https://www.samba.org/ftp/talloc/%{name}-%{version}.tar.gz
11 # Source0-md5: 8416b153547add81cd1a4d24e598c890
12 URL: http://talloc.samba.org/
13 BuildRequires: docbook-dtd42-xml
14 BuildRequires: docbook-style-xsl
15 BuildRequires: libxslt-progs
16 BuildRequires: python3 >= 1:3.2
17 BuildRequires: python3-devel >= 1:3.2
18 BuildRequires: python3-modules >= 1:3.2
19 BuildRequires: rpm-pythonprov
20 Provides: libtalloc = 2:%{version}-%{release}
21 Obsoletes: libtalloc < 2:2.0.7-2
22 Obsoletes: python-talloc
23 Obsoletes: python-talloc-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 # %{_includedir}/pytalloc.h shared between python*-talloc-devel
27 %define _duplicate_files_terminate_build 0
30 The talloc library implements a hierarchical allocator with
33 %description -l pl.UTF-8
34 Biblioteka talloc jest implementacją systemu zarządzania pamięcią
35 opartego na hierarchicznej puli wraz z destruktorami.
38 Summary: Development files for the talloc library
39 Summary(pl.UTF-8): Pliki programistyczne biblioteki talloc
40 Group: Development/Libraries
41 Requires: %{name} = %{epoch}:%{version}-%{release}
42 Provides: libtalloc-devel = 2:%{version}-%{release}
43 Obsoletes: libtalloc-devel < 2:2.0.7-2
44 Obsoletes: libtalloc-static
47 Development files needed to create programs that link against the
50 %description devel -l pl.UTF-8
51 Pliki programistyczne potrzebne do tworzenia programów używających
54 %package -n python3-talloc
55 Summary: Python 3 binding for talloc library
56 Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki talloc
57 Group: Libraries/Python
58 Requires: %{name} = %{epoch}:%{version}-%{release}
59 Requires: python3-libs >= 1:3.2
61 %description -n python3-talloc
62 Python 2 binding for talloc library.
64 %description -n python3-talloc -l pl.UTF-8
65 Wiązanie Pythona 3 do biblioteki talloc.
67 %package -n python3-talloc-devel
68 Summary: Development files for Python 3 pytalloc-util library
69 Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util dla Pythona 3
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
72 Requires: python3-devel >= 1:3.2
73 Requires: python3-talloc = %{epoch}:%{version}-%{release}
75 %description -n python3-talloc-devel
76 Development files for Python 3 pytalloc-util library.
78 %description -n python3-talloc-devel -l pl.UTF-8
79 Pliki programistyczne biblioteki pytalloc-util dla Pythona 3.
85 # threading breaks waf
89 CFLAGS="%{rpmcflags}" \
90 %{__python3} buildtools/bin/waf configure \
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
110 %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5
111 -rm -f %{_libdir}/libtalloc.so.2
114 %post -n python3-talloc -p /sbin/ldconfig
115 %postun -n python3-talloc -p /sbin/ldconfig
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
123 %defattr(644,root,root,755)
124 %doc talloc_guide.txt
125 %attr(755,root,root) %{_libdir}/libtalloc.so
126 %{_includedir}/talloc.h
127 %{_pkgconfigdir}/talloc.pc
128 %{_mandir}/man3/talloc.3*
130 %files -n python3-talloc
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libpytalloc-util.cpython-3*.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.cpython-3*.so.2
134 %attr(755,root,root) %{py3_sitedir}/talloc.cpython-3*.so
136 %files -n python3-talloc-devel
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libpytalloc-util.cpython-3*.so
139 %{_includedir}/pytalloc.h
140 %{_pkgconfigdir}/pytalloc-util.cpython-3*.pc