]> git.pld-linux.org Git - packages/gfs-utils.git/blob - gfs-utils.spec
- new, last version for cluster 3
[packages/gfs-utils.git] / gfs-utils.spec
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 #
8 Summary:        Tools to manipulate GFS cluster filesystem
9 Summary(pl.UTF-8):      Narzędzia do operacji na klastrowym systemie plików GFS
10 Name:           gfs-utils
11 Version:        3.0.6
12 Release:        1
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
19 %if %{with kernel}
20 BuildRequires:  kernel-module-build >= 3:2.6.31
21 # which is the last compatible?
22 BuildRequires:  kernel-module-build < 3:3
23 %endif
24 Requires:       uname(release) >= 2.6.31
25 Obsoletes:      gfs < 1:3
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Tools to manipulate GFS cluster filesystem.
30
31 %description -l pl.UTF-8
32 Narzę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
52 rm -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
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
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
75 rm -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.067034 seconds and 3 git commands to generate.