Bump to version 0.2.5
[platform/upstream/libtirpc.git] / packaging / libtirpc.spec
1 Name:           libtirpc
2 Version:        0.2.5
3 Release:        0
4 License:        BSD-4-Clause
5 Summary:        Transport Independent RPC Library
6 Url:            http://sourceforge.net/projects/libtirpc/
7 Group:          System/Libraries
8 Source:         %{name}-%{version}.tar.bz2
9 Source100:      baselibs.conf
10 Source1001:     libtirpc.manifest
11 BuildRequires:  libtool
12 BuildRequires:  krb5-devel
13 BuildRequires:  pkgconfig(pkg-config)
14
15 %description
16 The Transport Independent RPC library (TI-RPC) is a replacement for the
17 standard SunRPC library in glibc which does not support IPv6 addresses.
18 This implementation allows the support of other transports than UDP and
19 TCP over IPv4
20
21 %package devel
22 License:        BSD-4-Clause
23 Summary:        Transport Independent RPC Library
24 Group:          System/Libraries
25 Requires:       glibc-devel
26 Requires:       libtirpc = %{version}
27
28 %description devel
29 The Transport Independent RPC library (TI-RPC) is a replacement for the
30 standard SunRPC library in glibc which does not support IPv6 addresses.
31 This implementation allows the support of other transports than UDP and
32 TCP over IPv4
33
34 %prep
35 %setup -q
36 cp %{SOURCE1001} .
37
38 %build
39 %reconfigure --disable-static --with-pic --libdir=/%{_lib}
40 %__make %{?_smp_mflags}
41
42 %install
43 %make_install
44 mkdir -p %{buildroot}%{_libdir}
45 ln -sf -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
46 rm -rf %{buildroot}/%{_lib}/*.so
47 mv -v %{buildroot}/%{_lib}/pkgconfig %{buildroot}/%{_libdir}
48
49 %post -p /sbin/ldconfig
50
51 %postun -p /sbin/ldconfig
52
53 %files
54 %manifest %{name}.manifest
55 %license COPYING
56 %defattr(-,root,root)
57 %config %{_sysconfdir}/netconfig
58 /%{_lib}/libtirpc.so.1*
59
60 %files devel
61 %manifest %{name}.manifest
62 %defattr(-,root,root)
63 %{_libdir}/libtirpc.so
64 %{_includedir}/tirpc/*
65 %{_libdir}/pkgconfig/*
66
67 %docs_package