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