]> git.pld-linux.org Git - packages/talloc.git/blob - talloc.spec
- epoch 2 to be bigger version than libtalloc from samba.spec
[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:        1
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
26 %description devel
27 Header files needed to develop programs that link against the Talloc
28 library.
29
30 %prep
31 %setup -q -n talloc-%{version}
32
33 %build
34 ./autogen.sh
35 %configure
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so
45 ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.2
46
47 rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
48 rm -f $RPM_BUILD_ROOT%{_datadir}/swig/*/talloc.i
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post   -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
55
56 %files
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
59 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
60
61 %files devel
62 %defattr(644,root,root,755)
63 %{_includedir}/talloc.h
64 %attr(755,root,root) %{_libdir}/libtalloc.so
65 %{_pkgconfigdir}/talloc.pc
66 %{_mandir}/man3/talloc.3*
This page took 0.070728 seconds and 3 git commands to generate.