3 # - finish kernel package (doesn't build with recent kernels)
6 %bcond_with kernel # kernel module package
8 Summary: Tools to manipulate GFS cluster filesystem
9 Summary(pl.UTF-8): Narzędzia do operacji na klastrowym systemie plików GFS
13 License: LGPL v2.1+ (libraries), GPL v2+ (applications)
14 Group: Applications/System
15 Source0: https://fedorahosted.org/releases/c/l/cluster/%{name}-%{version}.tar.gz
16 # Source0-md5: 83312ec664d00d5eebc554c5b5a95724
17 URL: https://fedorahosted.org/cluster/wiki/HomePage
18 BuildRequires: perl-base
20 BuildRequires: kernel-module-build >= 3:2.6.31
21 # which is the last compatible?
22 BuildRequires: kernel-module-build < 3:3
24 Requires: uname(release) >= 2.6.31
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Tools to manipulate GFS cluster filesystem.
31 %description -l pl.UTF-8
32 Narzędzia do operacji na klastrowym systemie plików GFS.
40 --cflags="%{rpmcflags}" \
41 --ldflags="%{rpmldflags}" \
42 --initddir=/etc/rc.d/init.d \
43 --disable_kernel_check \
45 --kernel_build=%{_kernelsrcdir} \
46 --kernel_src=%{_kernelsrcdir} \
47 %{!?with_kernel:--without_kernel_modules}
49 REALSUBDIRS="gfs-kernel/src/gfs gfs doc"
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT \
56 REALSUBDIRS="gfs-kernel/src/gfs gfs doc"
59 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/cluster
61 # these belong to cman in cluster3
62 %{__rm} $RPM_BUILD_ROOT/etc/logrotate.d/cluster
63 rmdir $RPM_BUILD_ROOT/etc/cluster/cman-notify.d
64 rmdir $RPM_BUILD_ROOT/etc/cluster
65 rmdir $RPM_BUILD_ROOT/var/log/cluster
66 # belongs to ccs in cluster3
67 rmdir $RPM_BUILD_ROOT/var/run/cluster
69 # links to gfs2_edit and mount.gfs2
70 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/{gfs_edit,mount.gfs}.8
71 %{__rm} $RPM_BUILD_ROOT/sbin/mount.gfs
72 %{__rm} $RPM_BUILD_ROOT%{_sbindir}/gfs_edit
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc doc/{COPYRIGHT,README.licence,usage.txt}
80 %attr(755,root,root) /sbin/fsck.gfs
81 %attr(755,root,root) /sbin/mkfs.gfs
82 %attr(755,root,root) %{_sbindir}/gfs_debug
83 %attr(755,root,root) %{_sbindir}/gfs_grow
84 %attr(755,root,root) %{_sbindir}/gfs_jadd
85 %attr(755,root,root) %{_sbindir}/gfs_quota
86 %attr(755,root,root) %{_sbindir}/gfs_tool
87 %attr(754,root,root) /etc/rc.d/init.d/gfs
88 %{_mandir}/man8/fsck.gfs.8*
89 %{_mandir}/man8/gfs.8*
90 %{_mandir}/man8/gfs_grow.8*
91 %{_mandir}/man8/gfs_jadd.8*
92 %{_mandir}/man8/gfs_quota.8*
93 %{_mandir}/man8/gfs_tool.8*
94 %{_mandir}/man8/mkfs.gfs.8*