]> git.pld-linux.org Git - packages/talloc.git/blob - talloc.spec
- release 2 (by relup.sh)
[packages/talloc.git] / talloc.spec
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
3 Name:           talloc
4 Version:        2.1.5
5 Release:        2
6 Epoch:          2
7 License:        LGPL v3+
8 Group:          Libraries
9 Source0:        https://www.samba.org/ftp/talloc/%{name}-%{version}.tar.gz
10 # Source0-md5:  f497cb42b3d9622b721b72146f1fa3be
11 URL:            http://talloc.samba.org/
12 BuildRequires:  docbook-dtd42-xml
13 BuildRequires:  docbook-style-xsl
14 BuildRequires:  libxslt-progs
15 BuildRequires:  python >= 1:2.4.2
16 BuildRequires:  python-devel >= 1:2.4.2
17 BuildRequires:  python-modules
18 BuildRequires:  rpm-pythonprov
19 Provides:       libtalloc = 2:%{version}-%{release}
20 Obsoletes:      libtalloc < 2:2.0.7-2
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
30
31 %package devel
32 Summary:        Development files for the talloc library
33 Summary(pl.UTF-8):      Pliki programistyczne biblioteki talloc
34 Group:          Development/Libraries
35 Requires:       %{name} = %{epoch}:%{version}-%{release}
36 Provides:       libtalloc-devel = 2:%{version}-%{release}
37 Obsoletes:      libtalloc-devel < 2:2.0.7-2
38 Obsoletes:      libtalloc-static
39
40 %description devel
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
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
52 Requires:       %{name} = %{epoch}:%{version}-%{release}
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
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
66 Requires:       python-devel >= 1:2.4.2
67 Requires:       python-talloc = %{epoch}:%{version}-%{release}
68
69 %description -n python-talloc-devel
70 Development files for pytalloc-util library.
71
72 %description -n python-talloc-devel -l pl.UTF-8
73 Pliki programistyczne biblioteki pytalloc-util.
74
75 %prep
76 %setup -q
77
78 %build
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         --disable-rpath
87
88 %{__make} \
89         V=1
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5
104 -rm -f %{_libdir}/libtalloc.so.2
105 /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
111
112 %files devel
113 %defattr(644,root,root,755)
114 %doc talloc_guide.txt
115 %attr(755,root,root) %{_libdir}/libtalloc.so
116 %{_includedir}/talloc.h
117 %{_pkgconfigdir}/talloc.pc
118 %{_mandir}/man3/talloc.3*
119
120 %files -n python-talloc
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
124 %attr(755,root,root) %{py_sitedir}/talloc.so
125
126 %files -n python-talloc-devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libpytalloc-util.so
129 %{_includedir}/pytalloc.h
130 %{_pkgconfigdir}/pytalloc-util.pc
This page took 0.08839 seconds and 4 git commands to generate.