]> git.pld-linux.org Git - packages/talloc.git/blob - talloc.spec
- BR: docbook-dtd42-xml, python-modules, rpm-pythonprov
[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:           libtalloc
4 Version:        2.0.5
5 Release:        1
6 Epoch:          2
7 License:        LGPL v3+
8 Group:          Libraries
9 Source0:        http://samba.org/ftp/talloc/talloc-%{version}.tar.gz
10 # Source0-md5:  6e3fdfbc43dde8ccba27b6af894b8fb2
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The talloc library implements a hierarchical allocator with
23 destructors.
24
25 %description -l pl.UTF-8
26 Biblioteka talloc jest implementacją systemu zarządzania pamięcią
27 opartego na hierarchicznej puli wraz z destruktorami.
28
29 %package devel
30 Summary:        Development files for the talloc library
31 Summary(pl.UTF-8):      Pliki programistyczne biblioteki talloc
32 Group:          Development/Libraries
33 Requires:       %{name} = %{epoch}:%{version}-%{release}
34 Obsoletes:      libtalloc-static
35
36 %description devel
37 Development files needed to create programs that link against the
38 talloc library.
39
40 %description devel -l pl.UTF-8
41 Pliki programistyczne potrzebne do tworzenia programów używających
42 biblioteki talloc.
43
44 %package -n python-talloc
45 Summary:        Python binding for talloc library
46 Summary(pl.UTF-8):      Wiązanie Pythona do biblioteki talloc
47 Group:          Libraries/Python
48 Requires:       %{name} = %{epoch}:%{version}-%{release}
49 Requires:       python-libs >= 1:2.4.2
50
51 %description -n python-talloc
52 Python binding for talloc library.
53
54 %description -n python-talloc -l pl.UTF-8
55 Wiązanie Pythona do biblioteki talloc.
56
57 %package -n python-talloc-devel
58 Summary:        Development files for pytalloc-util library
59 Summary(pl.UTF-8):      Pliki programistyczne biblioteki pytalloc-util
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
62 Requires:       python-devel >= 1:2.4.2
63 Requires:       python-talloc = %{epoch}:%{version}-%{release}
64
65 %description -n python-talloc-devel
66 Development files for pytalloc-util library.
67
68 %description -n python-talloc-devel -l pl.UTF-8
69 Pliki programistyczne biblioteki pytalloc-util.
70
71 %prep
72 %setup -q -n talloc-%{version}
73
74 %build
75 # note: configure in fact is waf call
76 CC="%{__cc}" \
77 CFLAGS="%{rpmcflags}" \
78 PYTHONDIR=%{py_sitedir} \
79 ./configure \
80         --prefix=%{_prefix} \
81         --libdir=%{_libdir}
82
83 %{__make} \
84         V=1
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %triggerpostun -p /sbin/postshell -- %{name} < 2:2.0.1-5
99 -rm -f %{_libdir}/libtalloc.so.2
100 /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
106
107 %files devel
108 %defattr(644,root,root,755)
109 %doc talloc_guide.txt
110 %attr(755,root,root) %{_libdir}/libtalloc.so
111 %{_includedir}/talloc.h
112 %{_pkgconfigdir}/talloc.pc
113 %{_mandir}/man3/talloc.3*
114
115 %files -n python-talloc
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
119 %attr(755,root,root) %{py_sitedir}/talloc.so
120
121 %files -n python-talloc-devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libpytalloc-util.so
124 %{_includedir}/pytalloc.h
125 %{_pkgconfigdir}/pytalloc-util.pc
This page took 0.178075 seconds and 3 git commands to generate.