1 # TODO: PLDify and install init script(?)
2 Summary: Global File System 2 (GFS2) utilities
3 Summary(pl.UTF-8): Narzędzia do systemu plików GFS2 (Global File System 2)
7 License: LGPL v2.1+ (libraries), GPL v2+ (applications)
8 Group: Applications/System
9 Source0: http://releases.pagure.org/gfs2-utils/%{name}-%{version}.tar.xz
10 # Source0-md5: 31d330b1f69da8474a52bf36a824e9c1
11 Patch0: %{name}-link.patch
12 URL: https://pagure.io/gfs2-utils
13 BuildRequires: autoconf >= 2.63
14 BuildRequires: automake >= 1:1.11
17 BuildRequires: gettext-devel >= 0.18
18 BuildRequires: libblkid-devel
19 BuildRequires: libtool >= 2:2.2.6
20 BuildRequires: libuuid-devel
22 BuildRequires: linux-libc-headers >= 7:3.3
23 BuildRequires: ncurses-devel >= 5
24 BuildRequires: pkgconfig
25 BuildRequires: sed >= 4.0
26 BuildRequires: tar >= 1:1.22
28 BuildRequires: zlib-devel
29 Requires: uname(release) >= 3.3
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 GFS2 is a cluster file system. It allows a cluster of computers to
35 simultaneously use a block device that is shared between them (with
36 FC, iSCSI, NBD, etc). GFS2 reads and writes to the block device like a
37 local file system, but also uses a lock module to allow the computers
38 coordinate their I/O so file system consistency is maintained. One of
39 the nifty features of GFS2 is perfect consistency - changes made to
40 the file system on one machine show up immediately on all other
41 machines in the cluster.
43 %description -l pl.UTF-8
44 GFS2 to klastrowy system plików. Pozwala klastrowi komputerów
45 jednocześnie używać urządzenia blokowego współdzielonego między sobą
46 (poprzez FC, iSCSI, NBD itp.). GFS2 wykonuje odczyty i zapisy na
47 urządzeniu blokowym tak, jak na lokalnym systemie plików, ale
48 wykorzystuje moduł blokujący, aby umożliwić komputerom koordynację
49 operacji wejścia-wyjścia w celu zachowania spójności systemu plików.
50 Jedną z bardziej istotnych cech systemu plików GFS2 jest idealna
51 spójność - zmiany wykonane na jednej maszynie są natychmiast widoczne
52 na wszystkich innych maszynach w klastrze.
58 %{__sed} -i -e 's, po/Makefile.in$,,' configure.ac
59 %{__sed} -i -e '1s,#!/usr/bin/env python,#!/usr/bin/python,' gfs2/scripts/gfs2_{lockcapture,trace}
69 --disable-silent-rules \
70 --with-udevdir=/lib/udev
75 rm -rf $RPM_BUILD_ROOT
78 DESTDIR=$RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT/sbin
81 %{__mv} $RPM_BUILD_ROOT%{_sbindir}/{fsck.gfs2,mkfs.gfs2,gfs2_{grow,jadd,lockcapture,trace}} $RPM_BUILD_ROOT/sbin
84 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gfs2-utils
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc doc/{COPYRIGHT,README.contributing,README.licence,gfs2.txt,journaling.txt}
92 %attr(755,root,root) /sbin/fsck.gfs2
93 %attr(755,root,root) /sbin/gfs2_grow
94 %attr(755,root,root) /sbin/gfs2_jadd
95 %attr(755,root,root) /sbin/gfs2_lockcapture
96 %attr(755,root,root) /sbin/gfs2_trace
97 %attr(755,root,root) /sbin/mkfs.gfs2
98 %attr(755,root,root) %{_sbindir}/gfs2_convert
99 %attr(755,root,root) %{_sbindir}/gfs2_edit
100 %attr(755,root,root) %{_sbindir}/gfs2_withdraw_helper
101 %attr(755,root,root) %{_sbindir}/glocktop
102 %attr(755,root,root) %{_sbindir}/tunegfs2
103 /lib/udev/rules.d/82-gfs2-withdraw.rules
104 %{_mandir}/man5/gfs2.5*
105 %{_mandir}/man8/fsck.gfs2.8*
106 %{_mandir}/man8/gfs2_convert.8*
107 %{_mandir}/man8/gfs2_edit.8*
108 %{_mandir}/man8/gfs2_grow.8*
109 %{_mandir}/man8/gfs2_jadd.8*
110 %{_mandir}/man8/gfs2_lockcapture.8*
111 %{_mandir}/man8/gfs2_trace.8*
112 %{_mandir}/man8/glocktop.8*
113 %{_mandir}/man8/mkfs.gfs2.8*
114 %{_mandir}/man8/tunegfs2.8*