]> git.pld-linux.org Git - packages/talloc.git/blob - talloc.spec
- actually this is newer lib than samba one
[packages/talloc.git] / talloc.spec
1 Summary:        The talloc library
2 Name:           libtalloc
3 Version:        2.0.1
4 Release:        1
5 License:        LGPL v3+
6 Group:          Daemons
7 URL:            http://talloc.samba.org/
8 Source0:        http://samba.org/ftp/talloc/talloc-%{version}.tar.gz
9 # Source0-md5:  c6e736540145ca58cb3dcb42f91cf57b
10 BuildRequires:  autoconf
11 BuildRequires:  docbook-style-xsl
12 BuildRequires:  libxslt
13
14 %description
15 A library that implements a hierarchical allocator with destructors.
16
17 %package devel
18 Summary:        Developer tools for the Talloc library
19 Group:          Development/Libraries
20 Requires:       libtalloc = %{version}-%{release}
21
22 %description devel
23 Header files needed to develop programs that link against the Talloc
24 library.
25
26 %prep
27 %setup -q -n talloc-%{version}
28
29 %build
30 ./autogen.sh
31 %configure
32 %{__make}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 %{__make} install \
38         DESTDIR=$RPM_BUILD_ROOT
39
40 ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.2
41 ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so
42
43 rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
44 rm -f $RPM_BUILD_ROOT%{_datadir}/swig/*/talloc.i
45
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_libdir}/libtalloc.so.*
53
54 %files devel
55 %defattr(644,root,root,755)
56 %{_includedir}/talloc.h
57 %attr(755,root,root) %{_libdir}/libtalloc.so
58 %{_pkgconfigdir}/talloc.pc
59 %{_mandir}/man3/talloc.3*
60
61 %post
62 /sbin/ldconfig
63
64 %postun
65 /sbin/ldconfig
This page took 0.134301 seconds and 3 git commands to generate.