--- /dev/null
+--- gfs2-utils-3.1.10/gfs2/libgfs2/Makefile.am.orig 2017-03-28 16:08:39.000000000 +0200
++++ gfs2-utils-3.1.10/gfs2/libgfs2/Makefile.am 2018-05-16 22:11:05.220787174 +0200
+@@ -52,8 +52,7 @@
+ $(uuid_CFLAGS)
+
+ gfs2l_SOURCES = gfs2l.c
+-gfs2l_LDADD = libgfs2.la
+-gfs2l_LDFLAGS = $(uuid_LIBS)
++gfs2l_LDADD = libgfs2.la $(uuid_LIBS)
+ gfs2l_CPPFLAGS = \
+ -I$(top_srcdir)/gfs2/include \
+ -D_FILE_OFFSET_BITS=64
+--- gfs2-utils-3.1.10/gfs2/convert/Makefile.am.orig 2017-03-28 16:08:39.000000000 +0200
++++ gfs2-utils-3.1.10/gfs2/convert/Makefile.am 2018-05-16 22:14:39.020784730 +0200
+@@ -7,5 +7,4 @@
+ -I$(top_srcdir)/gfs2/include \
+ -I$(top_srcdir)/gfs2/libgfs2
+
+-gfs2_convert_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la
+-gfs2_convert_LDFLAGS = $(uuid_LIBS)
++gfs2_convert_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la $(uuid_LIBS)
+--- gfs2-utils-3.1.10/gfs2/fsck/Makefile.am.orig 2017-03-28 16:08:39.000000000 +0200
++++ gfs2-utils-3.1.10/gfs2/fsck/Makefile.am 2018-05-17 05:29:56.060486556 +0200
+@@ -36,6 +36,4 @@
+ -I$(top_srcdir)/gfs2/libgfs2
+
+ fsck_gfs2_LDADD = \
+- $(top_builddir)/gfs2/libgfs2/libgfs2.la
+-fsck_gfs2_LDFLAGS = \
+- $(uuid_LIBS)
++ $(top_builddir)/gfs2/libgfs2/libgfs2.la $(uuid_LIBS)
+--- gfs2-utils-3.1.10/gfs2/mkfs/Makefile.am.orig 2017-03-28 16:08:39.000000000 +0200
++++ gfs2-utils-3.1.10/gfs2/mkfs/Makefile.am 2018-05-17 05:35:10.050482945 +0200
+@@ -25,10 +25,7 @@
+ mkfs_gfs2_CFLAGS = \
+ $(blkid_CFLAGS) \
+ $(uuid_CFLAGS)
+-mkfs_gfs2_LDFLAGS = \
+- $(blkid_LIBS) \
+- $(uuid_LIBS)
+-mkfs_gfs2_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la
++mkfs_gfs2_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la $(blkid_LIBS) $(uuid_LIBS)
+
+ gfs2_grow_SOURCES = \
+ main_grow.c \
+@@ -36,16 +33,12 @@
+
+ gfs2_grow_CPPFLAGS = $(COMMON_CPPFLAGS)
+ gfs2_grow_CFLAGS = $(blkid_CFLAGS)
+-gfs2_grow_LDFLAGS = \
+- $(blkid_LIBS) \
+- $(uuid_LIBS)
+-gfs2_grow_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la
++gfs2_grow_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la $(blkid_LIBS) $(uuid_LIBS)
+
+ gfs2_jadd_SOURCES = \
+ main_jadd.c \
+ metafs.c
+
+ gfs2_jadd_CPPFLAGS = $(COMMON_CPPFLAGS)
+-gfs2_jadd_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la
+-gfs2_jadd_LDFLAGS = $(uuid_LIBS)
++gfs2_jadd_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la $(uuid_LIBS)
+
+--- gfs2-utils-3.1.10/gfs2/glocktop/Makefile.am.orig 2017-03-28 16:08:39.000000000 +0200
++++ gfs2-utils-3.1.10/gfs2/glocktop/Makefile.am 2018-05-17 05:37:16.380481493 +0200
+@@ -9,10 +9,6 @@
+ glocktop_CFLAGS = \
+ $(ncurses_CFLAGS)
+
+-glocktop_LDFLAGS = \
+- $(ncurses_LIBS) \
+- $(uuid_LIBS)
+-
+ glocktop_CPPFLAGS = \
+ -D_FILE_OFFSET_BITS=64 \
+ -D_LARGEFILE64_SOURCE \
+@@ -21,4 +17,4 @@
+ -I$(top_srcdir)/gfs2/libgfs2
+
+ glocktop_LDADD = \
+- $(top_builddir)/gfs2/libgfs2/libgfs2.la
++ $(top_builddir)/gfs2/libgfs2/libgfs2.la $(ncurses_LIBS) $(uuid_LIBS)
+--- gfs2-utils-3.1.10/tests/Makefile.am.orig 2017-03-28 16:08:39.000000000 +0200
++++ gfs2-utils-3.1.10/tests/Makefile.am 2018-05-17 05:39:56.260479669 +0200
+@@ -22,9 +22,7 @@
+ -I$(top_srcdir)/gfs2/libgfs2 \
+ -I$(top_srcdir)/gfs2/include
+ nukerg_LDADD = \
+- $(top_builddir)/gfs2/libgfs2/libgfs2.la
+-nukerg_LDFLAGS = \
+- $(uuid_LIBS)
++ $(top_builddir)/gfs2/libgfs2/libgfs2.la $(uuid_LIBS)
+
+ if HAVE_CHECK
+ UNIT_TESTS = \
+@@ -50,16 +48,14 @@
+ $(UNIT_SOURCES) \
+ check_meta.c
+ check_meta_CFLAGS = $(UNIT_CFLAGS)
+-check_meta_LDADD = $(UNIT_LDADD)
+-check_meta_LDFLAGS = $(uuid_LIBS)
++check_meta_LDADD = $(UNIT_LDADD) $(uuid_LIBS)
+ check_meta_CPPFLAGS = $(UNIT_CPPFLAGS)
+
+ check_rgrp_SOURCES = \
+ $(UNIT_SOURCES) \
+ check_rgrp.c
+ check_rgrp_CFLAGS = $(UNIT_CFLAGS)
+-check_rgrp_LDADD = $(UNIT_LDADD)
+-check_rgrp_LDFLAGS = $(uuid_LIBS)
++check_rgrp_LDADD = $(UNIT_LDADD) $(uuid_LIBS)
+ check_rgrp_CPPFLAGS = $(UNIT_CPPFLAGS)
+ endif
+
Summary: Global File System 2 (GFS2) utilities
Summary(pl.UTF-8): Narzędzia do systemu plików GFS2 (Global File System 2)
Name: gfs2-utils
-Version: 3.1.6
+Version: 3.1.10
Release: 1
License: LGPL v2.1+ (libraries), GPL v2+ (applications)
Group: Applications/System
-Source0: https://fedorahosted.org/releases/g/f/gfs2-utils/%{name}-%{version}.tar.gz
-# Source0-md5: 9d47c272298c62868dd49c7b1f4bcefc
-URL: https://fedorahosted.org/cluster/wiki/HomePage
+Source0: http://releases.pagure.org/gfs2-utils/%{name}-%{version}.tar.xz
+# Source0-md5: 31d330b1f69da8474a52bf36a824e9c1
+Patch0: %{name}-link.patch
+URL: https://pagure.io/gfs2-utils
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
BuildRequires: bison
BuildRequires: gettext-devel >= 0.18
BuildRequires: libblkid-devel
BuildRequires: libtool >= 2:2.2.6
+BuildRequires: libuuid-devel
# for gfs2 headers
BuildRequires: linux-libc-headers >= 7:3.3
BuildRequires: ncurses-devel >= 5
BuildRequires: pkgconfig
BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
BuildRequires: zlib-devel
Requires: uname(release) >= 3.3
Obsoletes: gfs2 < 1:3
na wszystkich innych maszynach w klastrze.
%prep
-%setup -q -n gfs2-utils
+%setup -q
+%patch0 -p1
%{__sed} -i -e 's, po/Makefile.in$,,' configure.ac
%{__sed} -i -e '1s,#!/usr/bin/env python,#!/usr/bin/python,' gfs2/scripts/gfs2_{lockcapture,trace}
%{__autoheader}
%{__automake}
%configure \
- --disable-silent-rules
+ --disable-silent-rules \
+ --with-udevdir=/lib/udev
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/sbin
+%{__mv} $RPM_BUILD_ROOT%{_sbindir}/{fsck.gfs2,mkfs.gfs2,gfs2_{grow,jadd,lockcapture,trace}} $RPM_BUILD_ROOT/sbin
+
# packaged as %doc
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gfs2-utils
%attr(755,root,root) /sbin/mkfs.gfs2
%attr(755,root,root) %{_sbindir}/gfs2_convert
%attr(755,root,root) %{_sbindir}/gfs2_edit
+%attr(755,root,root) %{_sbindir}/gfs2_withdraw_helper
+%attr(755,root,root) %{_sbindir}/glocktop
%attr(755,root,root) %{_sbindir}/tunegfs2
+/lib/udev/rules.d/82-gfs2-withdraw.rules
%{_mandir}/man5/gfs2.5*
%{_mandir}/man8/fsck.gfs2.8*
%{_mandir}/man8/gfs2_convert.8*
%{_mandir}/man8/gfs2_jadd.8*
%{_mandir}/man8/gfs2_lockcapture.8*
%{_mandir}/man8/gfs2_trace.8*
+%{_mandir}/man8/glocktop.8*
%{_mandir}/man8/mkfs.gfs2.8*
%{_mandir}/man8/tunegfs2.8*