]>
Commit | Line | Data |
---|---|---|
84994558 JB |
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) | |
4 | Name: gfs2-utils | |
3dabe3b3 | 5 | Version: 3.1.10 |
84994558 JB |
6 | Release: 1 |
7 | License: LGPL v2.1+ (libraries), GPL v2+ (applications) | |
8 | Group: Applications/System | |
3dabe3b3 JB |
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 | |
84994558 JB |
13 | BuildRequires: autoconf >= 2.63 |
14 | BuildRequires: automake >= 1:1.11 | |
15 | BuildRequires: bison | |
16 | BuildRequires: flex | |
17 | BuildRequires: gettext-devel >= 0.18 | |
18 | BuildRequires: libblkid-devel | |
19 | BuildRequires: libtool >= 2:2.2.6 | |
3dabe3b3 | 20 | BuildRequires: libuuid-devel |
84994558 JB |
21 | # for gfs2 headers |
22 | BuildRequires: linux-libc-headers >= 7:3.3 | |
23 | BuildRequires: ncurses-devel >= 5 | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: sed >= 4.0 | |
3dabe3b3 JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
84994558 JB |
28 | BuildRequires: zlib-devel |
29 | Requires: uname(release) >= 3.3 | |
30 | Obsoletes: gfs2 < 1:3 | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
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. | |
42 | ||
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. | |
53 | ||
54 | %prep | |
3dabe3b3 JB |
55 | %setup -q |
56 | %patch0 -p1 | |
84994558 JB |
57 | |
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} | |
60 | ||
61 | %build | |
62 | %{__gettextize} | |
63 | %{__libtoolize} | |
64 | %{__aclocal} -I m4 | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure \ | |
3dabe3b3 JB |
69 | --disable-silent-rules \ |
70 | --with-udevdir=/lib/udev | |
84994558 JB |
71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
3dabe3b3 JB |
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 | |
82 | ||
84994558 JB |
83 | # packaged as %doc |
84 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gfs2-utils | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
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 | |
3dabe3b3 JB |
100 | %attr(755,root,root) %{_sbindir}/gfs2_withdraw_helper |
101 | %attr(755,root,root) %{_sbindir}/glocktop | |
84994558 | 102 | %attr(755,root,root) %{_sbindir}/tunegfs2 |
3dabe3b3 | 103 | /lib/udev/rules.d/82-gfs2-withdraw.rules |
84994558 JB |
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* | |
3dabe3b3 | 112 | %{_mandir}/man8/glocktop.8* |
84994558 JB |
113 | %{_mandir}/man8/mkfs.gfs2.8* |
114 | %{_mandir}/man8/tunegfs2.8* |