- rel up to resolve conflict with rpcbind
[packages/clusternfs.git] / clusternfs.spec
CommitLineData
c2f75cea 1Summary: ClusterNFS server
0614f267 2Summary(pl.UTF-8): Serwer ClusterNFS
c2f75cea 3Name: clusternfs
fc170d04 4Version: 3.0
9e2f5212 5Release: 0.rc2.3
11f2f52a 6License: GPL v2
c2f75cea 7Group: Networking/Daemons
4f731575 8URL: http://clusternfs.sourceforge.net/
874832cc 9Source0: http://dl.sourceforge.net/clusternfs/%{name}-%{version}rc2.tar.bz2
776217b5 10# Source0-md5: b25b578b2dd3222b554c4953a32efc8f
fc170d04 11Source1: %{name}.init
dafabcd4 12Source2: %{name}.sysconfig
04e0c9e2 13Patch0: %{name}-types.patch
cb4c3d33
JB
14BuildRequires: autoconf
15BuildRequires: automake
700ea3b6 16BuildRequires: libwrap-devel
ac2c9277 17BuildRequires: rpmbuild(macros) >= 1.268
cb4c3d33 18Requires(post,preun): /sbin/chkconfig
c2f75cea 19Requires: portmap >= 4.0
9027ddea 20Requires: rc-scripts >= 0.4.1.5
c2f75cea 21Provides: nfscluster
ac2c9277
ER
22Conflicts: nfs-server
23Conflicts: nfs-utils
fc170d04 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c2f75cea
TO
25
26%description
27ClusterNFS allows diskless clients to share a single root filesystem
fc170d04 28by matching "tagged" filenames of the form "filename$$TAG=value$$"
c2f75cea
TO
29with fallback to the original filename.
30
0df10bf6
JR
31%description -l pl.UTF-8
32ClusterNFS pozwala bezdyskowym klientom współdzielić pojedynczy system
33plików wybierając odpowiednio "oznakowane" nazwy plików postaci
34"plik$$TAG=wartość$$" z podmianą do oryginalnej nazwy.
c2f75cea
TO
35
36%prep
fc170d04 37%setup -q -n ClusterNFS
04e0c9e2 38%patch0 -p1
c2f75cea
TO
39
40%build
fc170d04
TO
41mv -f aclocal.m4 acinclude.m4
42%{__aclocal}
43%{__autoconf}
c2f75cea
TO
44./BUILD --batch \
45 --rquotad=no \
46 --ugidd=no --nis=yes \
fc170d04 47 --hosts-access=yes \
ac2c9277 48 --libwrap-directory=%{_prefix}/lib \
c2f75cea
TO
49 --exports-uid=0 --exports-gid=0 \
50 --log-mounts=yes --multi=yes \
51 --devtab=yes --trnames=yes \
fc170d04 52 --path_devtab=/var/lib/clusternfs/devtab
c2f75cea 53
fc170d04
TO
54%configure
55
56%{__make}
c2f75cea
TO
57
58%install
fc170d04 59rm -rf $RPM_BUILD_ROOT
dafabcd4 60install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
c2f75cea 61
fc170d04
TO
62%{__make} install \
63 DESTDIR=$RPM_BUILD_ROOT
c2f75cea 64
fc170d04 65install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clusternfs
dafabcd4 66install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clusternfs
67> $RPM_BUILD_ROOT%{_sysconfdir}/exports
c2f75cea 68
cb4c3d33
JB
69%clean
70rm -rf $RPM_BUILD_ROOT
71
fc170d04 72%post
c2f75cea 73/sbin/chkconfig --add clusternfs
ac2c9277 74%service clusternfs restart "NFS daemon"
c2f75cea
TO
75
76%preun
77if [ "$1" = "0" ]; then
ac2c9277 78 %service clusternfs stop
20dcbf32 79 /sbin/chkconfig --del clusternfs
c2f75cea 80fi
fc170d04 81
c2f75cea 82%files
fc170d04
TO
83%defattr(644,root,root,755)
84%doc BUGS ChangeLog* EXAMPLE.ClusterNFS HALL_OF_FAME NEWS README* TODO*
85%attr(754,root,root) /etc/rc.d/init.d/clusternfs
2542da47 86%attr(755,root,root) %{_sbindir}/rpc.*
c2f75cea 87%{_mandir}/man5/*
2542da47 88%{_mandir}/man8/[mn]*
874832cc
ER
89%attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports
90%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clusternfs
fc170d04 91/var/lib/clusternfs
This page took 0.045822 seconds and 4 git commands to generate.