]> git.pld-linux.org Git - packages/gfs2-utils.git/blob - gfs2-utils.spec
- new URLs, updated to 3.1.10
[packages/gfs2-utils.git] / gfs2-utils.spec
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
5 Version:        3.1.10
6 Release:        1
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
15 BuildRequires:  bison
16 BuildRequires:  flex
17 BuildRequires:  gettext-devel >= 0.18
18 BuildRequires:  libblkid-devel
19 BuildRequires:  libtool >= 2:2.2.6
20 BuildRequires:  libuuid-devel
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
26 BuildRequires:  tar >= 1:1.22
27 BuildRequires:  xz
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
55 %setup -q
56 %patch0 -p1
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 \
69         --disable-silent-rules \
70         --with-udevdir=/lib/udev
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
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
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
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*
This page took 0.075212 seconds and 3 git commands to generate.