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