]> git.pld-linux.org Git - packages/rpcbind.git/blame - rpcbind.spec
- partial update to 0.1.5
[packages/rpcbind.git] / rpcbind.spec
CommitLineData
52461857 1#
ab1fd8f8 2Summary: Universal addresses to RPC program number mapper
b040aaa7 3Summary(pl.UTF-8): Demon odwzorowujący adresy uniwersalne na numery programów RPC
ab1fd8f8 4Name: rpcbind
4f276cf9
AM
5Version: 0.1.5
6Release: 0.1
ab1fd8f8
JR
7License: GPL
8Group: Daemons
4f276cf9
AM
9Source0: http://dl.sourceforge.net/sourceforge/rpcbind/%{name}-%{version}.tar.bz2
10# Source0-md5: adcf17feb72d942f38f91a9a90205a74
ab1fd8f8
JR
11Source1: %{name}.init
12Source2: %{name}.sysconfig
b49db8b2
JR
13Patch2: %{name}-debug.patch
14Patch3: %{name}-warmstart.patch
15Patch4: %{name}-rpcuser.patch
16Patch5: %{name}-libwrap.patch
17Patch6: %{name}-syslog.patch
d555f4b1 18Patch7: %{name}-iff_up.patch
4f276cf9
AM
19# http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
20URL: http://sourceforge.net/projects/rpcbind/
ab1fd8f8
JR
21BuildRequires: autoconf
22BuildRequires: automake
23BuildRequires: libtirpc-devel
24BuildRequires: libwrap-devel
25BuildRequires: rpmbuild(macros) >= 1.228
26Requires(post,preun): /sbin/chkconfig
27Requires: /sbin/chkconfig
2db5233f 28Requires: rc-scripts >= 0.4.1.6
ab1fd8f8
JR
29Provides: portmap
30Provides: user(rpc)
b040aaa7
JB
31Obsoletes: portmap
32Conflicts: clusternfs < 3.0-0.rc2.3
33Conflicts: flixengine < 8.0.8.2-1
123d354b
JR
34Conflicts: nfs-utils < 1.1.0-0.rc2.1
35Conflicts: quota-rquotad < 1:3.14-4
ab1fd8f8
JR
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39The rpcbind utility is a server that converts RPC program numbers into
b040aaa7 40universal addresses. It must be running on the host to be able to make
ab1fd8f8
JR
41RPC calls on a server on that machine.
42
b040aaa7
JB
43%description -l pl.UTF-8
44Narzędzie rpcbind to serwer konwertujący numery programów RPC na
45adresy uniwersalne. Musi działać na maszynie, aby można było wykonywać
46wywołania RPC na serwerze na tej maszynie.
47
ab1fd8f8
JR
48%prep
49%setup -q
4f276cf9
AM
50#%patch2 -p1
51#%patch3 -p1
52#%patch4 -p1
b49db8b2
JR
53%patch5 -p1
54%patch6 -p1
d555f4b1 55%patch7 -p1
ab1fd8f8
JR
56
57%build
58%{__aclocal}
ab1fd8f8 59%{__autoheader}
b49db8b2 60%{__autoconf}
ab1fd8f8 61%{__automake}
b49db8b2
JR
62%configure \
63 --enable-libwrap \
64 --enable-warmstarts \
65 --with-statedir=/var/lib/rpcbind \
66 --with-rpcuser=rpc
ab1fd8f8
JR
67%{__make}
68
69%install
70rm -rf $RPM_BUILD_ROOT
71install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \
72 $RPM_BUILD_ROOT{%{_mandir}/man8,%{_var}/lib/%{name}}
73
74install src/rpcbind $RPM_BUILD_ROOT/sbin
75install src/rpcinfo $RPM_BUILD_ROOT%{_sbindir}
76
77install man/{rpcbind,rpcinfo}.8 $RPM_BUILD_ROOT%{_mandir}/man8
78
79install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpcbind
80install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rpcbind
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%pre
86%useradd -u 22 -d /usr/share/empty -s /bin/false -c "Portmapper RPC User" -g nobody rpc
87
88%post
89/sbin/chkconfig --add rpcbind
90%service rpcbind restart
91
92%postun
93if [ "$1" = "0" ]; then
94 %userremove rpc
95fi
96
97%preun
98if [ "$1" = "0" ]; then
99 %service -q rpcbind stop
100 /sbin/chkconfig --del rpcbind
101fi
102
103%files
104%defattr(644,root,root,755)
105%doc AUTHORS ChangeLog NEWS README
106%attr(754,root,root) /etc/rc.d/init.d/rpcbind
107%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpcbind
108%attr(755,root,root) /sbin/*
109%attr(755,root,root) %{_sbindir}/*
110%{_mandir}/man8/*.8*
111%dir %attr(700,rpc,root) %{_var}/lib/%{name}
This page took 0.113512 seconds and 4 git commands to generate.