3 # - check if samba builds with new version before updating!
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: http://samba.org/ftp/talloc/%{name}-%{version}.tar.gz
14 # Source0-md5: bd1be34297e89b27a394b49d5182550e
15 URL: http://talloc.samba.org/
16 BuildRequires: docbook-dtd42-xml
17 BuildRequires: docbook-style-xsl
18 BuildRequires: libxslt-progs
19 BuildRequires: python >= 1:2.4.2
20 BuildRequires: python-devel >= 1:2.4.2
21 BuildRequires: python-modules
22 BuildRequires: rpm-pythonprov
23 Provides: libtalloc = 2:%{version}-%{release}
24 Obsoletes: libtalloc < 2:2.0.7-2
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The talloc library implements a hierarchical allocator with
31 %description -l pl.UTF-8
32 Biblioteka talloc jest implementacją systemu zarządzania pamięcią
33 opartego na hierarchicznej puli wraz z destruktorami.
36 Summary: Development files for the talloc library
37 Summary(pl.UTF-8): Pliki programistyczne biblioteki talloc
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Provides: libtalloc-devel = 2:%{version}-%{release}
41 Obsoletes: libtalloc-devel < 2:2.0.7-2
42 Obsoletes: libtalloc-static
45 Development files needed to create programs that link against the
48 %description devel -l pl.UTF-8
49 Pliki programistyczne potrzebne do tworzenia programów używających
52 %package -n python-talloc
53 Summary: Python binding for talloc library
54 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki talloc
55 Group: Libraries/Python
56 Requires: %{name} = %{version}-%{release}
57 Requires: python-libs >= 1:2.4.2
59 %description -n python-talloc
60 Python binding for talloc library.
62 %description -n python-talloc -l pl.UTF-8
63 Wiązanie Pythona do biblioteki talloc.
65 %package -n python-talloc-devel
66 Summary: Development files for pytalloc-util library
67 Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
70 Requires: python-devel >= 1:2.4.2
71 Requires: python-talloc = %{version}-%{release}
73 %description -n python-talloc-devel
74 Development files for pytalloc-util library.
76 %description -n python-talloc-devel -l pl.UTF-8
77 Pliki programistyczne biblioteki pytalloc-util.
83 # note: configure in fact is waf call
85 CFLAGS="%{rpmcflags}" \
86 PYTHONDIR=%{py_sitedir} \
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
106 %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5
107 -rm -f %{_libdir}/libtalloc.so.2
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
116 %defattr(644,root,root,755)
117 %doc talloc_guide.txt
118 %attr(755,root,root) %{_libdir}/libtalloc.so
119 %{_includedir}/talloc.h
120 %{_pkgconfigdir}/talloc.pc
121 %{_mandir}/man3/talloc.3*
123 %files -n python-talloc
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
127 %attr(755,root,root) %{py_sitedir}/talloc.so
129 %files -n python-talloc-devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libpytalloc-util.so
132 %{_includedir}/pytalloc.h
133 %{_pkgconfigdir}/pytalloc-util.pc