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