]>
Commit | Line | Data |
---|---|---|
76e3b085 JB |
1 | Summary: The talloc library - a hierarchical pool based memory system |
2 | Summary(pl.UTF-8): Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli | |
747c9196 | 3 | Name: talloc |
cd8e4dd7 JB |
4 | Version: 2.1.2 |
5 | Release: 1 | |
d299e0c7 | 6 | Epoch: 2 |
e805f8fc | 7 | License: LGPL v3+ |
ae0209ab | 8 | Group: Libraries |
cd8e4dd7 JB |
9 | Source0: https://www.samba.org/ftp/talloc/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 6bc6e6ac293e739a902dd73cdc88f664 | |
76e3b085 | 11 | URL: http://talloc.samba.org/ |
2228f496 | 12 | BuildRequires: docbook-dtd42-xml |
e805f8fc | 13 | BuildRequires: docbook-style-xsl |
76e3b085 | 14 | BuildRequires: libxslt-progs |
2fa8f90d JB |
15 | BuildRequires: python >= 1:2.4.2 |
16 | BuildRequires: python-devel >= 1:2.4.2 | |
2228f496 | 17 | BuildRequires: python-modules |
18 | BuildRequires: rpm-pythonprov | |
747c9196 | 19 | Provides: libtalloc = 2:%{version}-%{release} |
40b9a6c7 | 20 | Obsoletes: libtalloc < 2:2.0.7-2 |
8d005b92 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e805f8fc AM |
22 | |
23 | %description | |
76e3b085 JB |
24 | The talloc library implements a hierarchical allocator with |
25 | destructors. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Biblioteka talloc jest implementacją systemu zarządzania pamięcią | |
29 | opartego na hierarchicznej puli wraz z destruktorami. | |
e805f8fc AM |
30 | |
31 | %package devel | |
76e3b085 JB |
32 | Summary: Development files for the talloc library |
33 | Summary(pl.UTF-8): Pliki programistyczne biblioteki talloc | |
e805f8fc | 34 | Group: Development/Libraries |
f0d9f460 | 35 | Requires: %{name} = %{epoch}:%{version}-%{release} |
747c9196 | 36 | Provides: libtalloc-devel = 2:%{version}-%{release} |
40b9a6c7 | 37 | Obsoletes: libtalloc-devel < 2:2.0.7-2 |
2fa8f90d | 38 | Obsoletes: libtalloc-static |
e805f8fc AM |
39 | |
40 | %description devel | |
76e3b085 JB |
41 | Development files needed to create programs that link against the |
42 | talloc library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki programistyczne potrzebne do tworzenia programów używających | |
46 | biblioteki talloc. | |
47 | ||
2fa8f90d JB |
48 | %package -n python-talloc |
49 | Summary: Python binding for talloc library | |
50 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki talloc | |
51 | Group: Libraries/Python | |
f0d9f460 | 52 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2fa8f90d JB |
53 | Requires: python-libs >= 1:2.4.2 |
54 | ||
55 | %description -n python-talloc | |
56 | Python binding for talloc library. | |
57 | ||
58 | %description -n python-talloc -l pl.UTF-8 | |
59 | Wiązanie Pythona do biblioteki talloc. | |
60 | ||
61 | %package -n python-talloc-devel | |
62 | Summary: Development files for pytalloc-util library | |
63 | Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util | |
76e3b085 | 64 | Group: Development/Libraries |
f0d9f460 | 65 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
2fa8f90d | 66 | Requires: python-devel >= 1:2.4.2 |
709b3e86 | 67 | Requires: python-talloc = %{epoch}:%{version}-%{release} |
76e3b085 | 68 | |
2fa8f90d JB |
69 | %description -n python-talloc-devel |
70 | Development files for pytalloc-util library. | |
76e3b085 | 71 | |
2fa8f90d JB |
72 | %description -n python-talloc-devel -l pl.UTF-8 |
73 | Pliki programistyczne biblioteki pytalloc-util. | |
e805f8fc AM |
74 | |
75 | %prep | |
747c9196 | 76 | %setup -q |
e805f8fc AM |
77 | |
78 | %build | |
2fa8f90d JB |
79 | # note: configure in fact is waf call |
80 | CC="%{__cc}" \ | |
81 | CFLAGS="%{rpmcflags}" \ | |
82 | PYTHONDIR=%{py_sitedir} \ | |
83 | ./configure \ | |
84 | --prefix=%{_prefix} \ | |
85 | --libdir=%{_libdir} | |
86 | ||
87 | %{__make} \ | |
88 | V=1 | |
e805f8fc AM |
89 | |
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
e805f8fc AM |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
8d005b92 ER |
99 | %post -p /sbin/ldconfig |
100 | %postun -p /sbin/ldconfig | |
fae138d9 | 101 | |
747c9196 | 102 | %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5 |
fae138d9 | 103 | -rm -f %{_libdir}/libtalloc.so.2 |
aa06a936 | 104 | /sbin/ldconfig |
8d005b92 | 105 | |
e805f8fc AM |
106 | %files |
107 | %defattr(644,root,root,755) | |
43dca2ed | 108 | %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.* |
bcf5da10 | 109 | %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2 |
e805f8fc AM |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
2fa8f90d | 113 | %doc talloc_guide.txt |
e805f8fc | 114 | %attr(755,root,root) %{_libdir}/libtalloc.so |
76e3b085 | 115 | %{_includedir}/talloc.h |
e805f8fc AM |
116 | %{_pkgconfigdir}/talloc.pc |
117 | %{_mandir}/man3/talloc.3* | |
76e3b085 | 118 | |
2fa8f90d JB |
119 | %files -n python-talloc |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2 | |
123 | %attr(755,root,root) %{py_sitedir}/talloc.so | |
124 | ||
125 | %files -n python-talloc-devel | |
76e3b085 | 126 | %defattr(644,root,root,755) |
2fa8f90d JB |
127 | %attr(755,root,root) %{_libdir}/libpytalloc-util.so |
128 | %{_includedir}/pytalloc.h | |
129 | %{_pkgconfigdir}/pytalloc-util.pc |