/[packages]/cauldron/libtirpc/current/SPECS/libtirpc.spec
ViewVC logotype

Annotation of /cauldron/libtirpc/current/SPECS/libtirpc.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33386 - (hide annotations) (download)
Sat Jan 22 23:19:55 2011 UTC (13 years, 2 months ago) by ennael
File size: 3724 byte(s)
imported package libtirpc
1 ennael 33386 %define major 1
2     %define libname %mklibname tirpc %{major}
3     %define develname %mklibname tirpc -d
4    
5     Summary: Transport Independent RPC Library
6     Name: libtirpc
7     Version: 0.2.1
8     Release: %mkrel 3
9     License: GPL
10     Group: System/Libraries
11     URL: http://sourceforge.net/projects/libtirpc
12     Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
13     BuildRequires: pkgconfig
14     BuildRequires: gssglue-devel
15     BuildRoot: %{_tmppath}/%{name}-%{version}
16    
17     %description
18     This package contains SunLib's implementation of transport-independent
19     RPC (TI-RPC) documentation. This library forms a piece of the base of
20     Open Network Computing (ONC), and is derived directly from the
21     Solaris 2.3 source.
22    
23     TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
24     Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
25     (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
26     by almost 70 vendors on all major operating systems. TS-RPC source code
27     (RPCSRC 4.0) remains available from several internet sites.
28    
29     %package -n %{libname}
30     Summary: Transport Independent RPC Library
31     Group: System/Libraries
32     Requires: %{name} = %{version}-%{release}
33    
34     %description -n %{libname}
35     This package contains SunLib's implementation of transport-independent
36     RPC (TI-RPC) documentation. This library forms a piece of the base of
37     Open Network Computing (ONC), and is derived directly from the
38     Solaris 2.3 source.
39    
40     TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
41     Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
42     (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
43     by almost 70 vendors on all major operating systems. TS-RPC source code
44     (RPCSRC 4.0) remains available from several internet sites.
45    
46     %package -n %{develname}
47     Summary: Development files for the libtirpc library
48     Group: Development/C
49     Requires: %{libname} = %{version}-%{release}
50     Provides: tirpc-devel = %{version}-%{release}
51     Obsoletes: %{mklibname tirpc 1 -d}
52    
53     %description -n %{develname}
54     This package contains SunLib's implementation of transport-independent
55     RPC (TI-RPC) documentation. This library forms a piece of the base of
56     Open Network Computing (ONC), and is derived directly from the
57     Solaris 2.3 source.
58    
59     TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
60     Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
61     (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
62     by almost 70 vendors on all major operating systems. TS-RPC source code
63     (RPCSRC 4.0) remains available from several internet sites.
64    
65     This package includes header files and libraries necessary for developing
66     programs which use the tirpc library.
67    
68    
69     %prep
70     %setup -q
71    
72     %build
73     export CFLAGS="%{optflags} -fPIC"
74     %configure2_5x \
75     --enable-gss
76     %make all
77    
78     %install
79     rm -rf %{buildroot}
80    
81    
82     %makeinstall_std
83     install -m 755 -d %{buildroot}%{_sysconfdir}
84     install -m 644 doc/etc_netconfig %{buildroot}%{_sysconfdir}/netconfig
85    
86     # remove the .la file, it makes libtool reorder args when linking nfs-utils:
87     # http://lists.gnu.org/archive/html/libtool/2010-03/msg00023.html
88     rm -f %{buildroot}%{_libdir}/*.la
89    
90     %if %mdkversion < 200900
91     %post -n %{libname} -p /sbin/ldconfig
92     %endif
93    
94     %if %mdkversion < 200900
95     %postun -n %{libname} -p /sbin/ldconfig
96     %endif
97    
98     %clean
99     rm -rf %{buildroot}
100    
101     %files
102     %defattr(-,root,root)
103     %config(noreplace) %{_sysconfdir}/netconfig
104    
105     %files -n %{libname}
106     %defattr(-,root,root)
107     %doc AUTHORS ChangeLog NEWS README
108     %{_libdir}/*.so.*
109    
110     %files -n %{develname}
111     %defattr(-,root,root)
112     %{_libdir}/*.so
113     %{_libdir}/*.a
114     %{_libdir}/pkgconfig/libtirpc.pc
115     %{_includedir}/tirpc
116     %{_mandir}/man3/*
117     %{_mandir}/man5/*
118    
119    

  ViewVC Help
Powered by ViewVC 1.1.30