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