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