]> git.pld-linux.org Git - packages/rpcbind.git/blame - rpcbind.spec
- require recent rc-scripts
[packages/rpcbind.git] / rpcbind.spec
CommitLineData
ab1fd8f8
JR
1Summary: Universal addresses to RPC program number mapper
2Name: rpcbind
3Version: 0.1.4
ef1ea6ea 4Release: 1
ab1fd8f8
JR
5License: GPL
6Group: Daemons
7Source0: http://nfsv4.bullopensource.org/tarballs/rpcbind/%{name}-%{version}.tar.bz2
8# Source0-md5: 280539aa1f8975b1318690cd903f858a
9Source1: %{name}.init
10Source2: %{name}.sysconfig
b49db8b2
JR
11Patch0: %{name}-format.patch
12Patch1: %{name}-make-man.patch
13Patch2: %{name}-debug.patch
14Patch3: %{name}-warmstart.patch
15Patch4: %{name}-rpcuser.patch
16Patch5: %{name}-libwrap.patch
17Patch6: %{name}-syslog.patch
ab1fd8f8
JR
18URL: http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
19BuildRequires: autoconf
20BuildRequires: automake
21BuildRequires: libtirpc-devel
22BuildRequires: libwrap-devel
23BuildRequires: rpmbuild(macros) >= 1.228
24Requires(post,preun): /sbin/chkconfig
25Requires: /sbin/chkconfig
2db5233f 26Requires: rc-scripts >= 0.4.1.6
ab1fd8f8
JR
27Provides: portmap
28Provides: user(rpc)
29Obsoletes: portmap
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33The rpcbind utility is a server that converts RPC program numbers into
34universal addresses. It must be running on the host to be able to make
35RPC calls on a server on that machine.
36
37%prep
38%setup -q
39%patch0 -p1
40%patch1 -p1
41%patch2 -p1
42%patch3 -p1
b49db8b2
JR
43%patch4 -p1
44%patch5 -p1
45%patch6 -p1
ab1fd8f8
JR
46
47%build
48%{__aclocal}
ab1fd8f8 49%{__autoheader}
b49db8b2 50%{__autoconf}
ab1fd8f8
JR
51%{__automake}
52cp -f /usr/share/automake/config.sub .
b49db8b2
JR
53%configure \
54 --enable-libwrap \
55 --enable-warmstarts \
56 --with-statedir=/var/lib/rpcbind \
57 --with-rpcuser=rpc
ab1fd8f8
JR
58%{__make}
59
60%install
61rm -rf $RPM_BUILD_ROOT
62install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
63 $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name}}
64
65install src/rpcbind $RPM_BUILD_ROOT/sbin
66install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir}
67
68install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8
69
70install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind
71install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%pre
77%useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc
78
79%post
80/sbin/chkconfig --add rpcbind
81%service rpcbind restart
82
83%postun
84if [ "$1" = "0" ]; then
85 %userremove rpc
86fi
87
88%preun
89if [ "$1" = "0" ]; then
90 %service -q rpcbind stop
91 /sbin/chkconfig --del rpcbind
92fi
93
94%files
95%defattr(644,root,root,755)
96%doc AUTHORS ChangeLog NEWS README
97%attr(754,root,root) /etc/rc.d/init.d/rpcbind
98%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind
99%attr(755,root,root) /sbin/*
100%attr(755,root,root) %{_sbindir}/*
101%{_mandir}/man8/*.8*
102%dir %attr(700,rpc,root) %{_var}/lib/%{name}
This page took 0.126115 seconds and 4 git commands to generate.