]> git.pld-linux.org Git - packages/talloc.git/blame - talloc.spec
- versioned Obsoletes
[packages/talloc.git] / talloc.spec
CommitLineData
76e3b085
JB
1Summary: The talloc library - a hierarchical pool based memory system
2Summary(pl.UTF-8): Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli
747c9196 3Name: talloc
f1a7d11e
JB
4Version: 2.3.2
5Release: 1
d299e0c7 6Epoch: 2
e805f8fc 7License: LGPL v3+
ae0209ab 8Group: Libraries
f1a7d11e
JB
9Source0: https://download.samba.org/pub/talloc/%{name}-%{version}.tar.gz
10# Source0-md5: 3376a86bdf9dd4abc6b8d8d645390902
d8a29c8e 11URL: https://talloc.samba.org/
2228f496 12BuildRequires: docbook-dtd42-xml
e805f8fc 13BuildRequires: docbook-style-xsl
907f2c95 14BuildRequires: libbsd-devel
76e3b085 15BuildRequires: libxslt-progs
ef799f19
JB
16BuildRequires: python3 >= 1:3.2
17BuildRequires: python3-devel >= 1:3.2
18BuildRequires: python3-modules >= 1:3.2
2228f496 19BuildRequires: rpm-pythonprov
747c9196 20Provides: libtalloc = 2:%{version}-%{release}
40b9a6c7 21Obsoletes: libtalloc < 2:2.0.7-2
8466839b 22# talloc 2.2+ dropped python2 support
3b4ab6de
JB
23Obsoletes: python-talloc < 2:2.2
24Obsoletes: python-talloc-devel < 2:2.2
8d005b92 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e805f8fc
AM
26
27%description
76e3b085
JB
28The talloc library implements a hierarchical allocator with
29destructors.
30
31%description -l pl.UTF-8
32Biblioteka talloc jest implementacją systemu zarządzania pamięcią
33opartego na hierarchicznej puli wraz z destruktorami.
e805f8fc
AM
34
35%package devel
76e3b085
JB
36Summary: Development files for the talloc library
37Summary(pl.UTF-8): Pliki programistyczne biblioteki talloc
e805f8fc 38Group: Development/Libraries
f0d9f460 39Requires: %{name} = %{epoch}:%{version}-%{release}
747c9196 40Provides: libtalloc-devel = 2:%{version}-%{release}
40b9a6c7 41Obsoletes: libtalloc-devel < 2:2.0.7-2
3b4ab6de 42Obsoletes: libtalloc-static < 2:2.0.5
e805f8fc
AM
43
44%description devel
76e3b085
JB
45Development files needed to create programs that link against the
46talloc library.
47
48%description devel -l pl.UTF-8
49Pliki programistyczne potrzebne do tworzenia programów używających
50biblioteki talloc.
51
ef799f19
JB
52%package -n python3-talloc
53Summary: Python 3 binding for talloc library
54Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki talloc
55Group: Libraries/Python
56Requires: %{name} = %{epoch}:%{version}-%{release}
57Requires: python3-libs >= 1:3.2
58
59%description -n python3-talloc
60Python 2 binding for talloc library.
61
62%description -n python3-talloc -l pl.UTF-8
63Wiązanie Pythona 3 do biblioteki talloc.
64
65%package -n python3-talloc-devel
66Summary: Development files for Python 3 pytalloc-util library
67Summary(pl.UTF-8): Pliki programistyczne biblioteki pytalloc-util dla Pythona 3
68Group: Development/Libraries
69Requires: %{name}-devel = %{epoch}:%{version}-%{release}
767cb2e6
JB
70Requires: python3-devel >= 1:3.2
71Requires: python3-talloc = %{epoch}:%{version}-%{release}
ef799f19
JB
72
73%description -n python3-talloc-devel
74Development files for Python 3 pytalloc-util library.
75
76%description -n python3-talloc-devel -l pl.UTF-8
77Pliki 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
84export JOBS=1
85
2fa8f90d
JB
86CC="%{__cc}" \
87CFLAGS="%{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
97rm -rf $RPM_BUILD_ROOT
98
99%{__make} install \
100 DESTDIR=$RPM_BUILD_ROOT
101
e805f8fc
AM
102%clean
103rm -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
This page took 0.333536 seconds and 4 git commands to generate.