2 # WARNING: check if samba builds with new version before updating!
4 Summary: The talloc library - a hierarchical pool based memory system
5 Summary(pl.UTF-8): Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli
12 Source0: http://samba.org/ftp/talloc/%{name}-%{version}.tar.gz
13 # Source0-md5: bd1be34297e89b27a394b49d5182550e
14 URL: http://talloc.samba.org/
15 BuildRequires: docbook-dtd42-xml
16 BuildRequires: docbook-style-xsl
17 BuildRequires: libxslt-progs
18 BuildRequires: python >= 1:2.4.2
19 BuildRequires: python-devel >= 1:2.4.2
20 BuildRequires: python-modules
21 BuildRequires: rpm-pythonprov
22 Provides: libtalloc = 2:%{version}-%{release}
23 Obsoletes: libtalloc < 2:2.0.7-2
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The talloc library implements a hierarchical allocator with
30 %description -l pl.UTF-8
31 Biblioteka talloc jest implementacją systemu zarządzania pamięcią
32 opartego na hierarchicznej puli wraz z destruktorami.
35 Summary: Development files for the talloc library
36 Summary(pl.UTF-8): Pliki programistyczne biblioteki talloc
37 Group: Development/Libraries
38 Requires: %{name} = %{epoch}:%{version}-%{release}
39 Provides: libtalloc-devel = 2:%{version}-%{release}
40 Obsoletes: libtalloc-devel < 2:2.0.7-2
41 Obsoletes: libtalloc-static
44 Development files needed to create programs that link against the
47 %description devel -l pl.UTF-8
48 Pliki programistyczne potrzebne do tworzenia programów używających
51 %package -n python-talloc
52 Summary: Python binding for talloc library
53 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki talloc
54 Group: Libraries/Python
55 Requires: %{name} = %{epoch}:%{version}-%{release}
56 Requires: python-libs >= 1:2.4.2
58 %description -n python-talloc
59 Python binding for talloc library.
61 %description -n python-talloc -l pl.UTF-8
62 Wiązanie Pythona do biblioteki talloc.
64 %package -n python-talloc-devel
65 Summary: Development files for pytalloc-util library
66 Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
69 Requires: python-devel >= 1:2.4.2
70 Requires: python-talloc = %{epoch}:%{version}-%{release}
72 %description -n python-talloc-devel
73 Development files for pytalloc-util library.
75 %description -n python-talloc-devel -l pl.UTF-8
76 Pliki programistyczne biblioteki pytalloc-util.
82 # note: configure in fact is waf call
84 CFLAGS="%{rpmcflags}" \
85 PYTHONDIR=%{py_sitedir} \
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
105 %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5
106 -rm -f %{_libdir}/libtalloc.so.2
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
115 %defattr(644,root,root,755)
116 %doc talloc_guide.txt
117 %attr(755,root,root) %{_libdir}/libtalloc.so
118 %{_includedir}/talloc.h
119 %{_pkgconfigdir}/talloc.pc
120 %{_mandir}/man3/talloc.3*
122 %files -n python-talloc
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
126 %attr(755,root,root) %{py_sitedir}/talloc.so
128 %files -n python-talloc-devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libpytalloc-util.so
131 %{_includedir}/pytalloc.h
132 %{_pkgconfigdir}/pytalloc-util.pc