2010-08-03 01:23:51 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2008-04-18 18:52:22 +00:00
|
|
|
|
2010-08-03 01:23:51 +00:00
|
|
|
%global with_console %{?_without_console: 0} %{?!_without_console: 1}
|
2009-09-02 11:13:54 +00:00
|
|
|
## define alphatag 20080221git
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
Summary: Tools for managing the Ocfs2 cluster file system
|
|
|
|
Name: ocfs2-tools
|
2009-09-30 06:51:33 +00:00
|
|
|
Version: 1.4.3
|
2010-08-03 01:23:51 +00:00
|
|
|
Release: 7%{?alphatag:.%{alphatag}}%{?dist}
|
2008-04-18 18:52:22 +00:00
|
|
|
License: GPLv2
|
|
|
|
Group: System Environment/Base
|
|
|
|
# The source for this package was pulled from upstream's git repo and manually
|
|
|
|
# turned into a release tarball. Use the following commands to generate the
|
|
|
|
# tarball:
|
|
|
|
# git clone git://oss.oracle.com/git/ocfs2-tools.git ocfs2-tools-1.3.9
|
|
|
|
# cd ocfs2-tools-1.3.9
|
|
|
|
# git checkout -b 20080221git 22fb58d0318a2946479833bb5e2fd58864499c78
|
|
|
|
# ./autogen.sh
|
|
|
|
# cd ..
|
|
|
|
# tar -czvf ocfs2-tools-1.3.9.tar.gz ocfs2-tools-1.3.9
|
2009-09-02 11:13:54 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Patch0: minor_build_fixes.diff
|
2009-09-15 07:08:41 +00:00
|
|
|
Patch1: o2cb_pcmk.diff
|
2010-02-15 04:48:26 +00:00
|
|
|
Patch2: no_stonithd.diff
|
2010-08-03 01:23:51 +00:00
|
|
|
Patch3: ocfs2-tools-gcc45.patch
|
2008-04-18 18:52:22 +00:00
|
|
|
URL: http://oss.oracle.com/projects/ocfs2-tools/
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
2008-06-19 05:53:45 +00:00
|
|
|
Requires(preun): initscripts
|
2008-04-18 18:52:22 +00:00
|
|
|
Requires: bash, coreutils, net-tools, modutils
|
|
|
|
Requires: e2fsprogs, chkconfig, glib2 >= 2.2.3
|
2009-09-02 11:13:54 +00:00
|
|
|
Requires: redhat-lsb
|
2008-04-18 18:52:22 +00:00
|
|
|
BuildRequires: e2fsprogs-devel, glib2-devel >= 2.2.3
|
2009-09-02 11:13:54 +00:00
|
|
|
BuildRequires: libblkid-devel, bzip2-devel
|
2008-04-18 18:52:22 +00:00
|
|
|
BuildRequires: pygtk2 >= 1.99.16, python-devel >= 2.5
|
2009-09-02 11:13:54 +00:00
|
|
|
BuildRequires: ncurses-devel, readline-devel
|
2009-10-09 07:27:07 +00:00
|
|
|
BuildRequires: corosynclib-devel, openaislib-devel, clusterlib-devel
|
2009-09-02 11:13:54 +00:00
|
|
|
BuildRequires: cluster-glue-libs-devel, pacemaker-libs-devel
|
|
|
|
BuildRequires: libxml2-devel
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Programs to manage the Ocfs2 cluster file system, including mkfs.ocfs2,
|
|
|
|
tunefs.ocfs2 and fsck.ocfs2.
|
|
|
|
|
|
|
|
Ocfs2 is a general purpose extent based shared disk cluster file
|
|
|
|
system. It supports 64 bit inode numbers, and has automatically
|
|
|
|
extending metadata groups which may also make it attractive for
|
|
|
|
non-clustered use. Ocfs2 leverages some well tested kernel
|
|
|
|
technologies, such as JBD - the same journaling subsystem in use by
|
|
|
|
ext3.
|
|
|
|
|
|
|
|
%if %{with_console}
|
|
|
|
%package -n ocfs2console
|
|
|
|
Summary: GUI frontend for Ocfs2 management
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
Requires: e2fsprogs, glib2 >= 2.2.3, vte >= 0.11.10, pygtk2 >= 1.99.16
|
|
|
|
Requires: python >= 2.5, %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n ocfs2console
|
|
|
|
Ocfs2console can make it easier to manage an Ocfs2 cluster by
|
|
|
|
providing a gui front-end to common tasks, including initial cluster
|
|
|
|
setup. In addition to cluster setup, Ocfs2console can format and
|
|
|
|
mount Ocfs2 volumes.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers and static archives for ocfs2-tools
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: e2fsprogs-devel, glib2-devel >= 2.2.3, pkgconfig
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
ocfs2-tools-devel contains the libraries and header files needed to
|
|
|
|
develop Ocfs2 filesystem-specific programs.
|
|
|
|
|
2009-09-02 11:13:54 +00:00
|
|
|
%package cman
|
|
|
|
Summary: Tools for managing the Ocfs2 cluster file system (cman component)
|
|
|
|
Group: System Environment/Base
|
|
|
|
Requires: cman >= 3.0.0-1
|
2009-09-03 10:17:47 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-09-02 11:13:54 +00:00
|
|
|
|
|
|
|
%description cman
|
|
|
|
ocfs2-tools-cman contains the daemon required to use Ocfs2 with
|
|
|
|
cman cluster manager
|
2008-04-18 18:52:22 +00:00
|
|
|
|
2009-09-02 11:13:54 +00:00
|
|
|
%package pcmk
|
|
|
|
Summary: Tools for managing the Ocfs2 cluster file system (pacemaker component)
|
|
|
|
Group: System Environment/Base
|
|
|
|
Requires: pacemaker >= 1.0.5-1
|
2009-09-03 10:17:47 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-10-02 08:07:20 +00:00
|
|
|
Requires: dlm-pcmk
|
2009-09-02 11:13:54 +00:00
|
|
|
|
|
|
|
%description pcmk
|
|
|
|
ocfs2-tools-pcmk contains the daemon required to use Ocfs2 with
|
|
|
|
pacemaker cluster manager
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-09-02 11:13:54 +00:00
|
|
|
%patch0 -p1
|
2009-09-15 07:08:41 +00:00
|
|
|
%patch1 -p1
|
2010-02-14 15:08:23 +00:00
|
|
|
%patch2 -p1
|
2010-08-03 01:23:51 +00:00
|
|
|
%patch3 -p1
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
%build
|
2009-09-02 11:13:54 +00:00
|
|
|
%{configure} \
|
2008-04-18 18:52:22 +00:00
|
|
|
%if ! %{with_console}
|
|
|
|
--enable-ocfs2console=no \
|
|
|
|
%endif
|
|
|
|
--enable-dynamic-fsck=yes
|
|
|
|
|
|
|
|
# parallel build currently fails, so no %{_smp_mflags}
|
2008-06-19 06:08:39 +00:00
|
|
|
CFLAGS="$(echo '%{optflags}')" make
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
|
|
|
|
cp -f vendor/common/o2cb.init $RPM_BUILD_ROOT/%{_initrddir}/o2cb
|
|
|
|
cp -f vendor/common/ocfs2.init $RPM_BUILD_ROOT/%{_initrddir}/ocfs2
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
cp -f vendor/common/o2cb.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/o2cb
|
2009-09-02 11:13:54 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
|
|
|
cp -f vendor/common/51-ocfs2.rules \
|
2009-09-02 11:40:20 +00:00
|
|
|
$RPM_BUILD_ROOT/etc/udev/rules.d/51-ocfs2.rules
|
2009-09-15 07:08:41 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2
|
|
|
|
cp -f vendor/common/o2cb.ocf \
|
|
|
|
$RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2/o2cb
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2/o2cb
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
|
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
|
|
|
|
|
|
%if %{with_console}
|
|
|
|
%{__python} -c "import compileall; compileall.compile_dir('$RPM_BUILD_ROOT/%{python_sitearch}/ocfs2interface', ddir='%{python_sitearch}/ocfs2interface')"
|
|
|
|
# rpm autostripper needs to see these as executable
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{python_sitearch}/ocfs2interface/*.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add o2cb
|
|
|
|
/sbin/chkconfig --add ocfs2
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
|
|
|
/sbin/service ocfs2 stop >/dev/null 2>&1 || :
|
|
|
|
/sbin/service o2cb stop >/dev/null 2>&1 || :
|
|
|
|
/sbin/chkconfig --del ocfs2
|
|
|
|
/sbin/chkconfig --del o2cb
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.O2CB COPYING CREDITS MAINTAINERS
|
|
|
|
%doc documentation/users_guide.txt
|
|
|
|
/sbin/fsck.ocfs2
|
|
|
|
/sbin/mkfs.ocfs2
|
|
|
|
/sbin/mounted.ocfs2
|
|
|
|
/sbin/tunefs.ocfs2
|
|
|
|
/sbin/debugfs.ocfs2
|
|
|
|
/sbin/o2cb_ctl
|
|
|
|
/sbin/mount.ocfs2
|
|
|
|
/sbin/ocfs2_hb_ctl
|
2009-09-02 11:13:54 +00:00
|
|
|
/sbin/o2image
|
2008-04-18 18:52:22 +00:00
|
|
|
%{_initrddir}/o2cb
|
|
|
|
%{_initrddir}/ocfs2
|
2009-09-02 11:40:20 +00:00
|
|
|
%config(noreplace) /etc/udev/rules.d/51-ocfs2.rules
|
2008-04-18 18:52:22 +00:00
|
|
|
%config(noreplace) /etc/sysconfig/o2cb
|
2009-09-02 11:13:54 +00:00
|
|
|
%{_mandir}/man7/o2cb.7.gz
|
2008-04-18 18:52:22 +00:00
|
|
|
%{_mandir}/man8/debugfs.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/fsck.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/fsck.ocfs2.checks.8.gz
|
|
|
|
%{_mandir}/man8/mkfs.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/tunefs.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/mount.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/mounted.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/o2cb_ctl.8.gz
|
|
|
|
%{_mandir}/man8/ocfs2_hb_ctl.8.gz
|
2009-09-02 11:13:54 +00:00
|
|
|
%{_mandir}/man8/o2image.8.gz
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
%if %{with_console}
|
|
|
|
%files -n ocfs2console
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{python_sitearch}/ocfs2interface
|
|
|
|
%{python_sitearch}/ocfs2interface/*
|
|
|
|
%{_sbindir}/ocfs2console
|
|
|
|
%{_mandir}/man8/ocfs2console.8.gz
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%dir %{_includedir}/ocfs2-kernel
|
|
|
|
%dir %{_includedir}/o2cb
|
|
|
|
%dir %{_includedir}/o2dlm
|
|
|
|
%dir %{_includedir}/ocfs2
|
|
|
|
%{_includedir}/ocfs2-kernel/*
|
|
|
|
%{_includedir}/o2cb/*
|
|
|
|
%{_includedir}/o2dlm/*
|
|
|
|
%{_includedir}/ocfs2/*
|
|
|
|
|
2009-09-02 11:13:54 +00:00
|
|
|
%files cman
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/sbin/ocfs2_controld.cman
|
2008-04-18 18:52:22 +00:00
|
|
|
|
2009-09-02 11:13:54 +00:00
|
|
|
%files pcmk
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/sbin/ocfs2_controld.pcmk
|
2010-08-03 01:23:51 +00:00
|
|
|
%dir %{_prefix}/lib/ocf/resource.d/ocfs2
|
|
|
|
%{_prefix}/lib/ocf/resource.d/ocfs2
|
2008-04-18 18:52:22 +00:00
|
|
|
|
|
|
|
%changelog
|
2010-08-03 01:23:51 +00:00
|
|
|
* Mon Aug 2 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4.3-7
|
|
|
|
- Patch for gcc45 compilation failures
|
|
|
|
|
2010-07-22 02:42:58 +00:00
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-02-15 04:48:26 +00:00
|
|
|
* Mon Feb 15 2010 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.3-5
|
|
|
|
- Update to use crmcommon and drop linking with stonithd
|
|
|
|
|
2010-02-14 15:08:23 +00:00
|
|
|
* Sun Feb 14 2010 Caolán McNamara <caolanm@redhat.com> - 1.4.3-4
|
|
|
|
- Resolves: rhbz#564744 fix FTBFS
|
|
|
|
|
2009-10-09 07:27:07 +00:00
|
|
|
* Fri Oct 9 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.3-3
|
|
|
|
- Explicitly BuildRequires: corosynclib-devel
|
|
|
|
|
2009-10-02 08:07:20 +00:00
|
|
|
* Wed Sep 30 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.3-2
|
|
|
|
- Fix -pcmk Requires.
|
|
|
|
|
2009-09-30 06:51:33 +00:00
|
|
|
* Wed Sep 30 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.3-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2009-09-21 07:56:03 +00:00
|
|
|
* Mon Sep 21 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-5
|
|
|
|
- Fix pcmk resource agent.
|
|
|
|
|
2009-09-15 07:08:41 +00:00
|
|
|
* Tue Sep 15 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-4
|
|
|
|
- Add pcmk resource agent.
|
|
|
|
|
2009-09-03 10:17:47 +00:00
|
|
|
* Thu Sep 3 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-3
|
|
|
|
- Fix pcmk and cman Requires.
|
|
|
|
|
2009-09-02 11:40:20 +00:00
|
|
|
* Wed Sep 2 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-2
|
|
|
|
- Fix udev rule packaging
|
|
|
|
|
2009-09-02 11:13:54 +00:00
|
|
|
* Mon Aug 31 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-1
|
|
|
|
- New upstream release
|
|
|
|
- Undefine alpha tag
|
|
|
|
- Add patch to fix 2 minor build glitches
|
|
|
|
- Add Requires: redhat-lsb for init scripts
|
|
|
|
- Update BuildRequires to enable all features
|
|
|
|
- Add ocfs2-tools-{cman,pcmk} packages with respective control daemons
|
|
|
|
- Install udev rule
|
|
|
|
- Update file lists
|
|
|
|
|
2009-07-25 20:07:13 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-11.20080221git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 07:42:08 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-10.20080221git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-29 16:55:45 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.9-9.20080221git
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-06-19 06:08:39 +00:00
|
|
|
* Thu Jun 19 2008 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.3.9-8.20080221git
|
|
|
|
- Make alpha tag optional
|
|
|
|
- Use package names rather than files for Requires
|
|
|
|
- Clean up changelog in spec file
|
|
|
|
- Respect fedora build default CFLAGS
|
2008-04-18 18:52:22 +00:00
|
|
|
|
2008-06-19 06:08:39 +00:00
|
|
|
* Fri Apr 18 2008 Mark Fasheh <mark@fasheh.com> - 1.3.9-7.20080221git
|
2008-04-18 18:52:22 +00:00
|
|
|
- Use 'Fedora' as vendor for desktop-file-install
|
|
|
|
|
2008-06-19 06:08:39 +00:00
|
|
|
* Thu Feb 21 2008 Mark Fasheh <mark@fasheh.com> - 1.3.9-6.20080221git
|
2008-04-18 18:52:22 +00:00
|
|
|
- Move to git revision 22fb58d0318a2946479833bb5e2fd58864499c78
|
|
|
|
|
|
|
|
* Mon Feb 4 2008 Mark Fasheh <mark@fasheh.com> - 1.3.9-5.20080131git
|
|
|
|
- Incorporate feedback via bugzilla during review process.
|
|
|
|
|
|
|
|
* Thu Jan 31 2008 Mark Fasheh <mark@fasheh.com> - 1.3.9-4.20080131git
|
|
|
|
- Initial Fedora spec, heavily modified from ocfs2-tools distribution. Thanks
|
|
|
|
to Eric Sandeen for helping with this.
|