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