forked from pool/rpcbind
132 lines
3.9 KiB
RPMSpec
132 lines
3.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package rpcbind (Version 0.1.5)
|
||
|
#
|
||
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
BuildRequires: libtirpc-devel tcpd-devel
|
||
|
|
||
|
Name: rpcbind
|
||
|
License: BSD 3-Clause
|
||
|
Group: Productivity/Networking/System
|
||
|
AutoReqProv: on
|
||
|
Version: 0.1.5
|
||
|
Release: 2
|
||
|
Summary: Transport independent RPC portmapper
|
||
|
Url: http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
|
||
|
Source: %{name}-%{version}-1.tar.bz2
|
||
|
Source1: rpcbind.init
|
||
|
Source2: sysconfig.rpcbind
|
||
|
Source3: rpcbind.xml
|
||
|
Patch4: rpcbind-0.1.4-iff_up.patch
|
||
|
Patch6: rpcbind-0.1.4-localaddr.patch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
Provides: portmap = 6.0+git20070716
|
||
|
Obsoletes: portmap < 6.0+git20070716
|
||
|
PreReq: %insserv_prereq %fillup_prereq
|
||
|
|
||
|
%description
|
||
|
Rpcbind is a replacement for portmap. Whereas portmap supports only UDP
|
||
|
and TCP transports over INET (IPv4), rpcbind can be configured to work
|
||
|
on various transports supported by the TI-RPC. This includes TCP and
|
||
|
UDP over IPv6. Moreover, rpcbind provides additional functions in
|
||
|
regards to portmap.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Gilles Quillard <gilles.quillard@bull.net>
|
||
|
Vincent ROQUETA <vincent.roqueta@ext.bull.net>
|
||
|
|
||
|
%prep
|
||
|
%setup -n rpcbind-0.1.5-1
|
||
|
%patch4 -p1
|
||
|
%patch6 -p1
|
||
|
|
||
|
%build
|
||
|
autoreconf -fi
|
||
|
./configure --prefix=%{_prefix} \
|
||
|
--bindir=/sbin \
|
||
|
--mandir=%{_mandir} \
|
||
|
--localstatedir=%{_localstatedir} \
|
||
|
--enable-libwrap \
|
||
|
--enable-warmstarts \
|
||
|
--with-statedir=%{_localstatedir}/lib/rpcbind \
|
||
|
--enable-debug \
|
||
|
CFLAGS="$RPM_OPT_FLAGS -fpie" \
|
||
|
LDFLAGS="-pie"
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
|
||
|
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/rpcbind
|
||
|
ln -s /etc/init.d/rpcbind $RPM_BUILD_ROOT/sbin/rcrpcbind
|
||
|
mkdir -p $RPM_BUILD_ROOT%_localstatedir/lib/rpcbind
|
||
|
# for now remove this man page since it conflicts with glibc
|
||
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpcinfo.8
|
||
|
# fillup template
|
||
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/
|
||
|
mkdir -p $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d
|
||
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d/
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%preun
|
||
|
%stop_on_removal rpcbind
|
||
|
|
||
|
%post
|
||
|
%fillup_and_insserv -y rpcbind
|
||
|
|
||
|
%postun
|
||
|
%restart_on_update rpcbind
|
||
|
%insserv_cleanup
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||
|
/sbin/rpcbind
|
||
|
/sbin/rpcinfo
|
||
|
%doc %{_mandir}/*/*
|
||
|
%config /etc/init.d/rpcbind
|
||
|
/sbin/rcrpcbind
|
||
|
%{_localstatedir}/lib/rpcbind
|
||
|
/var/adm/fillup-templates/sysconfig.rpcbind
|
||
|
%{_datadir}/omc/svcinfo.d/rpcbind.xml
|
||
|
|
||
|
%changelog
|
||
|
* Mon Aug 18 2008 mkoenig@suse.de
|
||
|
- use version in Provides/Obsoletes
|
||
|
* Fri Jul 18 2008 mkoenig@suse.de
|
||
|
- update to version 0.1.5
|
||
|
- license change to BSD-3
|
||
|
- patches merged
|
||
|
rpcbind-0.1.4-compile.patch
|
||
|
rpcbind-0.1.4-debug.patch
|
||
|
rpcbind-0.1.4-libwrap.patch
|
||
|
rpcbind-0.1.4-recvfrom-fix.patch
|
||
|
rpcbind-0.1.4-rpcuser.patch
|
||
|
rpcbind-0.1.4-warmstarts-cleanup.patch
|
||
|
rpcbind-0.1.4-warmstarts.patch
|
||
|
* Wed Apr 02 2008 mkoenig@suse.de
|
||
|
- initial packaging, version 0.1.4 [fate#300607]
|
||
|
- add patches from Steve Dickson, including fixes and
|
||
|
support for debug and warmstart
|
||
|
- build as PIE
|