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