2006-06-14 17:41:25 +00:00
|
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
|
|
##
|
|
|
|
## Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
|
|
|
|
##
|
|
|
|
## This copyrighted material is made available to anyone wishing to use,
|
|
|
|
## modify, copy, or redistribute it subject to the terms and conditions
|
|
|
|
## of the GNU General Public License v.2.
|
|
|
|
##
|
|
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
Name: gfs2-utils
|
2006-08-14 19:34:19 +00:00
|
|
|
Version: 0.1.3
|
2006-08-14 19:46:34 +00:00
|
|
|
Release: 3%{?dist}
|
2006-06-14 17:41:25 +00:00
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
Summary: Utilities for managing the global filesystem (GFS)
|
2006-06-15 19:42:06 +00:00
|
|
|
#ExclusiveArch: %{ix86} x86_64
|
2006-06-14 17:41:25 +00:00
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
|
Requires: ncurses
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: glibc-kernheaders
|
2006-07-14 21:10:45 +00:00
|
|
|
BuildRequires: libvolume_id-devel
|
2006-06-14 17:41:25 +00:00
|
|
|
URL: http://sources.redhat.com/cluster/
|
2006-08-14 19:36:17 +00:00
|
|
|
Source0: gfs2-%{version}.tar.gz
|
2006-06-14 17:41:25 +00:00
|
|
|
Patch1: gfs2-utils-norun.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
The gfs2-utils package contains a number of utilities for creating,
|
|
|
|
checking, modifying, and correcting any inconsistencies in GFS
|
|
|
|
filesystems.
|
|
|
|
|
|
|
|
%prep
|
2006-08-14 19:40:04 +00:00
|
|
|
%setup -q -n gfs2-%{version}
|
2006-08-14 19:46:34 +00:00
|
|
|
%patch1 -p2 -b .norun
|
2006-06-14 17:41:25 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd gfs2
|
|
|
|
./configure --kernel_src=/usr --libdir=%{_libdir}
|
|
|
|
sed -i '/RELEASE_MAJOR/s/= .*/= 0/' make/defines.mk
|
|
|
|
sed -i '/RELEASE_MINOR/s/= .*/= 1.0/' make/defines.mk
|
|
|
|
sed -i '/RELEASE /s/= .*/= %{version}/' make/defines.mk
|
|
|
|
make
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add gfs2
|
|
|
|
|
|
|
|
%preun
|
2006-06-27 13:35:40 +00:00
|
|
|
if [ "$1" = 0 ]; then
|
2006-06-14 17:41:25 +00:00
|
|
|
/sbin/chkconfig --del gfs
|
|
|
|
fi
|
2006-06-27 13:35:40 +00:00
|
|
|
exit 0
|
2006-06-14 17:41:25 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
cd gfs2
|
|
|
|
make copytobin
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/sbin/*
|
|
|
|
/etc/rc.d/init.d/gfs2
|
|
|
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
%changelog
|
2006-08-14 19:34:19 +00:00
|
|
|
* Mon Aug 14 2006 Chris Feist <cfeist@redhat.com> 0.1.3-0
|
|
|
|
- New Upstream sources, use dist tag.
|
|
|
|
|
2006-07-14 21:10:45 +00:00
|
|
|
* Fri Jul 14 2006 Chris Feist <cfeist@redhat.com>
|
|
|
|
- Rebuild with updated sources
|
|
|
|
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com>
|
2006-07-12 05:54:53 +00:00
|
|
|
- rebuild
|
|
|
|
|
2006-06-27 13:35:40 +00:00
|
|
|
* Tue Jun 27 2006 Florian La Roche <laroche@redhat.com>
|
|
|
|
- fix typo in preun script
|
|
|
|
|
2006-06-14 17:41:25 +00:00
|
|
|
* Fri Jun 09 2006 Chris Feist <cfeist@redhat.com> - 0.1.0-1.fc6.3
|
|
|
|
- Initial build of gfs-utils.
|