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