3 %bcond_without python2 # CPython 2.x library
5 Summary: The talloc library - a hierarchical pool based memory system
6 Summary(pl.UTF-8): Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli
13 Source0: https://www.samba.org/ftp/talloc/%{name}-%{version}.tar.gz
14 # Source0-md5: 4ff5a73fbfc92ae7e9c63ceb7b4ee025
15 URL: http://talloc.samba.org/
16 BuildRequires: docbook-dtd42-xml
17 BuildRequires: docbook-style-xsl
18 BuildRequires: libxslt-progs
20 BuildRequires: python >= 1:2.4.2
21 BuildRequires: python-devel >= 1:2.4.2
23 BuildRequires: python3 >= 1:3.2
24 BuildRequires: python3-devel >= 1:3.2
25 BuildRequires: python3-modules >= 1:3.2
26 BuildRequires: rpm-pythonprov
27 Provides: libtalloc = 2:%{version}-%{release}
28 Obsoletes: libtalloc < 2:2.0.7-2
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 # %{_includedir}/pytalloc.h shared between python*-talloc-devel
32 %define _duplicate_files_terminate_build 0
35 The talloc library implements a hierarchical allocator with
38 %description -l pl.UTF-8
39 Biblioteka talloc jest implementacją systemu zarządzania pamięcią
40 opartego na hierarchicznej puli wraz z destruktorami.
43 Summary: Development files for the talloc library
44 Summary(pl.UTF-8): Pliki programistyczne biblioteki talloc
45 Group: Development/Libraries
46 Requires: %{name} = %{epoch}:%{version}-%{release}
47 Provides: libtalloc-devel = 2:%{version}-%{release}
48 Obsoletes: libtalloc-devel < 2:2.0.7-2
49 Obsoletes: libtalloc-static
52 Development files needed to create programs that link against the
55 %description devel -l pl.UTF-8
56 Pliki programistyczne potrzebne do tworzenia programów używających
59 %package -n python-talloc
60 Summary: Python 2 binding for talloc library
61 Summary(pl.UTF-8): Wiązanie Pythona 2 do biblioteki talloc
62 Group: Libraries/Python
63 Requires: %{name} = %{epoch}:%{version}-%{release}
64 Requires: python-libs >= 1:2.4.2
66 %description -n python-talloc
67 Python 2 binding for talloc library.
69 %description -n python-talloc -l pl.UTF-8
70 Wiązanie Pythona 2 do biblioteki talloc.
72 %package -n python-talloc-devel
73 Summary: Development files for Python 2 pytalloc-util library
74 Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util dla Pythona 2
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
77 Requires: python-devel >= 1:2.4.2
78 Requires: python-talloc = %{epoch}:%{version}-%{release}
80 %description -n python-talloc-devel
81 Development files for Python 2 pytalloc-util library.
83 %description -n python-talloc-devel -l pl.UTF-8
84 Pliki programistyczne biblioteki pytalloc-util dla Pythona 2.
86 %package -n python3-talloc
87 Summary: Python 3 binding for talloc library
88 Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki talloc
89 Group: Libraries/Python
90 Requires: %{name} = %{epoch}:%{version}-%{release}
91 Requires: python3-libs >= 1:3.2
93 %description -n python3-talloc
94 Python 2 binding for talloc library.
96 %description -n python3-talloc -l pl.UTF-8
97 Wiązanie Pythona 3 do biblioteki talloc.
99 %package -n python3-talloc-devel
100 Summary: Development files for Python 3 pytalloc-util library
101 Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util dla Pythona 3
102 Group: Development/Libraries
103 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
104 Requires: python3-devel >= 1:3.2
105 Requires: python3-talloc = %{epoch}:%{version}-%{release}
107 %description -n python3-talloc-devel
108 Development files for Python 3 pytalloc-util library.
110 %description -n python3-talloc-devel -l pl.UTF-8
111 Pliki programistyczne biblioteki pytalloc-util dla Pythona 3.
117 # threading breaks waf
121 CFLAGS="%{rpmcflags}" \
122 %{__python3} buildtools/bin/waf configure \
123 --prefix=%{_prefix} \
124 --libdir=%{_libdir} \
126 --extra-python="%{__python}"
132 rm -rf $RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT
138 rm -rf $RPM_BUILD_ROOT
140 %post -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
143 %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5
144 -rm -f %{_libdir}/libtalloc.so.2
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
150 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
153 %defattr(644,root,root,755)
154 %doc talloc_guide.txt
155 %attr(755,root,root) %{_libdir}/libtalloc.so
156 %{_includedir}/talloc.h
157 %{_pkgconfigdir}/talloc.pc
158 %{_mandir}/man3/talloc.3*
161 %files -n python-talloc
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
164 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
165 %attr(755,root,root) %{py_sitedir}/talloc.so
167 %files -n python-talloc-devel
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_libdir}/libpytalloc-util.so
170 %{_includedir}/pytalloc.h
171 %{_pkgconfigdir}/pytalloc-util.pc
174 %files -n python3-talloc
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/libpytalloc-util.cpython-3*.so.*.*.*
177 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.cpython-3*.so.2
178 %attr(755,root,root) %{py3_sitedir}/talloc.cpython-3*.so
180 %files -n python3-talloc-devel
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libpytalloc-util.cpython-3*.so
183 %{_includedir}/pytalloc.h
184 %{_pkgconfigdir}/pytalloc-util.cpython-3*.pc