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