]> git.pld-linux.org Git - packages/gfs-utils.git/blame - gfs-utils.spec
- new, last version for cluster 3
[packages/gfs-utils.git] / gfs-utils.spec
CommitLineData
e845114e
JB
1# TODO:
2# - PLDify init script
3# - finish kernel package (doesn't build with recent kernels)
4#
5# Conditional build:
6%bcond_with kernel # kernel module package
7#
8Summary: Tools to manipulate GFS cluster filesystem
9Summary(pl.UTF-8): Narzędzia do operacji na klastrowym systemie plików GFS
10Name: gfs-utils
11Version: 3.0.6
12Release: 1
13License: LGPL v2.1+ (libraries), GPL v2+ (applications)
14Group: Applications/System
15Source0: https://fedorahosted.org/releases/c/l/cluster/%{name}-%{version}.tar.gz
16# Source0-md5: 83312ec664d00d5eebc554c5b5a95724
17URL: https://fedorahosted.org/cluster/wiki/HomePage
18BuildRequires: perl-base
19%if %{with kernel}
20BuildRequires: kernel-module-build >= 3:2.6.31
21# which is the last compatible?
22BuildRequires: kernel-module-build < 3:3
23%endif
24Requires: uname(release) >= 2.6.31
25Obsoletes: gfs < 1:3
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Tools to manipulate GFS cluster filesystem.
30
31%description -l pl.UTF-8
32Narzędzia do operacji na klastrowym systemie plików GFS.
33
34%prep
35%setup -q
36
37%build
38./configure \
39 --cc="%{__cc}" \
40 --cflags="%{rpmcflags}" \
41 --ldflags="%{rpmldflags}" \
42 --initddir=/etc/rc.d/init.d \
43 --disable_kernel_check \
44 --enable_pacemaker \
45 --kernel_build=%{_kernelsrcdir} \
46 --kernel_src=%{_kernelsrcdir} \
47 %{!?with_kernel:--without_kernel_modules}
48%{__make} \
49 REALSUBDIRS="gfs-kernel/src/gfs gfs doc"
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT \
56 REALSUBDIRS="gfs-kernel/src/gfs gfs doc"
57
58# packaged as %doc
59%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/cluster
60
61# these belong to cman in cluster3
62%{__rm} $RPM_BUILD_ROOT/etc/logrotate.d/cluster
63rmdir $RPM_BUILD_ROOT/etc/cluster/cman-notify.d
64rmdir $RPM_BUILD_ROOT/etc/cluster
65rmdir $RPM_BUILD_ROOT/var/log/cluster
66# belongs to ccs in cluster3
67rmdir $RPM_BUILD_ROOT/var/run/cluster
68
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
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
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*
This page took 0.064573 seconds and 4 git commands to generate.