]> git.pld-linux.org Git - packages/rpcbind.git/blame - rpcbind.spec
- rel 2
[packages/rpcbind.git] / rpcbind.spec
CommitLineData
ab1fd8f8
JR
1Summary: Universal addresses to RPC program number mapper
2Name: rpcbind
3Version: 0.1.4
123d354b 4Release: 2
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)
123d354b
JR
29Conflicts: nfs-utils < 1.1.0-0.rc2.1
30Conflicts: quota-rquotad < 1:3.14-4
31Conflicts: flixengine < 8.0.8.2-1
32Conflicts: clusternfs < 3.0-0.rc2.3
ab1fd8f8
JR
33Obsoletes: portmap
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37The rpcbind utility is a server that converts RPC program numbers into
38universal addresses. It must be running on the host to be able to make
39RPC calls on a server on that machine.
40
41%prep
42%setup -q
43%patch0 -p1
44%patch1 -p1
45%patch2 -p1
46%patch3 -p1
b49db8b2
JR
47%patch4 -p1
48%patch5 -p1
49%patch6 -p1
ab1fd8f8
JR
50
51%build
52%{__aclocal}
ab1fd8f8 53%{__autoheader}
b49db8b2 54%{__autoconf}
ab1fd8f8
JR
55%{__automake}
56cp -f /usr/share/automake/config.sub .
b49db8b2
JR
57%configure \
58 --enable-libwrap \
59 --enable-warmstarts \
60 --with-statedir=/var/lib/rpcbind \
61 --with-rpcuser=rpc
ab1fd8f8
JR
62%{__make}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
67 $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name}}
68
69install src/rpcbind $RPM_BUILD_ROOT/sbin
70install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir}
71
72install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8
73
74install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind
75install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%pre
81%useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc
82
83%post
84/sbin/chkconfig --add rpcbind
85%service rpcbind restart
86
87%postun
88if [ "$1" = "0" ]; then
89 %userremove rpc
90fi
91
92%preun
93if [ "$1" = "0" ]; then
94 %service -q rpcbind stop
95 /sbin/chkconfig --del rpcbind
96fi
97
98%files
99%defattr(644,root,root,755)
100%doc AUTHORS ChangeLog NEWS README
101%attr(754,root,root) /etc/rc.d/init.d/rpcbind
102%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind
103%attr(755,root,root) /sbin/*
104%attr(755,root,root) %{_sbindir}/*
105%{_mandir}/man8/*.8*
106%dir %attr(700,rpc,root) %{_var}/lib/%{name}
This page took 0.066151 seconds and 4 git commands to generate.