|
|
@ -1,12 +1,12 @@
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
|
|
|
|
%define with_console %{?_without_console: 0} %{?!_without_console: 1}
|
|
|
|
%define with_console %{?_without_console: 0} %{?!_without_console: 1}
|
|
|
|
%define alphatag 20080221git
|
|
|
|
## define alphatag 20080221git
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Tools for managing the Ocfs2 cluster file system
|
|
|
|
Summary: Tools for managing the Ocfs2 cluster file system
|
|
|
|
Name: ocfs2-tools
|
|
|
|
Name: ocfs2-tools
|
|
|
|
Version: 1.3.9
|
|
|
|
Version: 1.4.3
|
|
|
|
Release: 10%{?alphatag:.%{alphatag}}%{?dist}
|
|
|
|
Release: 1%{?alphatag:.%{alphatag}}%{?dist}
|
|
|
|
License: GPLv2
|
|
|
|
License: GPLv2
|
|
|
|
Group: System Environment/Base
|
|
|
|
Group: System Environment/Base
|
|
|
|
# The source for this package was pulled from upstream's git repo and manually
|
|
|
|
# The source for this package was pulled from upstream's git repo and manually
|
|
|
@ -18,16 +18,19 @@ Group: System Environment/Base
|
|
|
|
# ./autogen.sh
|
|
|
|
# ./autogen.sh
|
|
|
|
# cd ..
|
|
|
|
# cd ..
|
|
|
|
# tar -czvf ocfs2-tools-1.3.9.tar.gz ocfs2-tools-1.3.9
|
|
|
|
# tar -czvf ocfs2-tools-1.3.9.tar.gz ocfs2-tools-1.3.9
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
URL: http://oss.oracle.com/projects/ocfs2-tools/
|
|
|
|
URL: http://oss.oracle.com/projects/ocfs2-tools/
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(preun): initscripts
|
|
|
|
Requires(preun): initscripts
|
|
|
|
Requires: bash, coreutils, net-tools, modutils
|
|
|
|
Requires: bash, coreutils, net-tools, modutils
|
|
|
|
Requires: e2fsprogs, chkconfig, glib2 >= 2.2.3
|
|
|
|
Requires: e2fsprogs, chkconfig, glib2 >= 2.2.3
|
|
|
|
|
|
|
|
Requires: redhat-lsb
|
|
|
|
BuildRequires: e2fsprogs-devel, glib2-devel >= 2.2.3
|
|
|
|
BuildRequires: e2fsprogs-devel, glib2-devel >= 2.2.3
|
|
|
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
BuildRequires: pygtk2 >= 1.99.16, python-devel >= 2.5
|
|
|
|
BuildRequires: pygtk2 >= 1.99.16, python-devel >= 2.5
|
|
|
|
BuildRequires: ncurses-devel, readline-devel, desktop-file-utils
|
|
|
|
BuildRequires: ncurses-devel, readline-devel
|
|
|
|
|
|
|
|
BuildRequires: corosync-devel, openaislib-devel, clusterlib-devel
|
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +52,6 @@ Group: System Environment/Kernel
|
|
|
|
Requires: e2fsprogs, glib2 >= 2.2.3, vte >= 0.11.10, pygtk2 >= 1.99.16
|
|
|
|
Requires: e2fsprogs, glib2 >= 2.2.3, vte >= 0.11.10, pygtk2 >= 1.99.16
|
|
|
|
Requires: python >= 2.5, %{name} = %{version}-%{release}
|
|
|
|
Requires: python >= 2.5, %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ocfs2console
|
|
|
|
%description -n ocfs2console
|
|
|
|
Ocfs2console can make it easier to manage an Ocfs2 cluster by
|
|
|
|
Ocfs2console can make it easier to manage an Ocfs2 cluster by
|
|
|
|
providing a gui front-end to common tasks, including initial cluster
|
|
|
|
providing a gui front-end to common tasks, including initial cluster
|
|
|
@ -68,14 +70,21 @@ Provides: %{name}-static = %{version}-%{release}
|
|
|
|
ocfs2-tools-devel contains the libraries and header files needed to
|
|
|
|
ocfs2-tools-devel contains the libraries and header files needed to
|
|
|
|
develop Ocfs2 filesystem-specific programs.
|
|
|
|
develop Ocfs2 filesystem-specific programs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package cman
|
|
|
|
|
|
|
|
Summary: Tools for managing the Ocfs2 cluster file system (cman component)
|
|
|
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
|
|
|
Requires: cman >= 3.0.0-1
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description cman
|
|
|
|
|
|
|
|
ocfs2-tools-cman contains the daemon required to use Ocfs2 with
|
|
|
|
|
|
|
|
cman cluster manager
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
%{configure} \
|
|
|
|
%if ! %{with_console}
|
|
|
|
%if ! %{with_console}
|
|
|
|
--enable-ocfs2console=no \
|
|
|
|
--enable-ocfs2console=no \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -84,7 +93,6 @@ develop Ocfs2 filesystem-specific programs.
|
|
|
|
# parallel build currently fails, so no %{_smp_mflags}
|
|
|
|
# parallel build currently fails, so no %{_smp_mflags}
|
|
|
|
CFLAGS="$(echo '%{optflags}')" make
|
|
|
|
CFLAGS="$(echo '%{optflags}')" make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
|
|
|
@ -93,6 +101,9 @@ cp -f vendor/common/o2cb.init $RPM_BUILD_ROOT/%{_initrddir}/o2cb
|
|
|
|
cp -f vendor/common/ocfs2.init $RPM_BUILD_ROOT/%{_initrddir}/ocfs2
|
|
|
|
cp -f vendor/common/ocfs2.init $RPM_BUILD_ROOT/%{_initrddir}/ocfs2
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
cp -f vendor/common/o2cb.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/o2cb
|
|
|
|
cp -f vendor/common/o2cb.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/o2cb
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
|
|
|
|
|
|
|
cp -f vendor/common/51-ocfs2.rules \
|
|
|
|
|
|
|
|
$RPM_BUILD_ROOT/etc/udev/rules.d/51-ocfs2.rules
|
|
|
|
|
|
|
|
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
|
|
|
|
|
|
|
@ -102,19 +113,11 @@ chmod 644 $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
|
|
%{__python} -c "import compileall; compileall.compile_dir('$RPM_BUILD_ROOT/%{python_sitearch}/ocfs2interface', ddir='%{python_sitearch}/ocfs2interface')"
|
|
|
|
%{__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
|
|
|
|
# rpm autostripper needs to see these as executable
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{python_sitearch}/ocfs2interface/*.so
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{python_sitearch}/ocfs2interface/*.so
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ocfs2console/
|
|
|
|
|
|
|
|
cp -f vendor/common/ocfs2console.png $RPM_BUILD_ROOT%{_datadir}/ocfs2console/
|
|
|
|
|
|
|
|
desktop-file-install --vendor="fedora" \
|
|
|
|
|
|
|
|
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
|
|
|
|
|
|
|
|
vendor/common/ocfs2console.desktop
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add o2cb
|
|
|
|
/sbin/chkconfig --add o2cb
|
|
|
|
/sbin/chkconfig --add ocfs2
|
|
|
|
/sbin/chkconfig --add ocfs2
|
|
|
@ -138,11 +141,13 @@ fi
|
|
|
|
/sbin/debugfs.ocfs2
|
|
|
|
/sbin/debugfs.ocfs2
|
|
|
|
/sbin/o2cb_ctl
|
|
|
|
/sbin/o2cb_ctl
|
|
|
|
/sbin/mount.ocfs2
|
|
|
|
/sbin/mount.ocfs2
|
|
|
|
/sbin/ocfs2cdsl
|
|
|
|
|
|
|
|
/sbin/ocfs2_hb_ctl
|
|
|
|
/sbin/ocfs2_hb_ctl
|
|
|
|
|
|
|
|
/sbin/o2image
|
|
|
|
%{_initrddir}/o2cb
|
|
|
|
%{_initrddir}/o2cb
|
|
|
|
%{_initrddir}/ocfs2
|
|
|
|
%{_initrddir}/ocfs2
|
|
|
|
|
|
|
|
%config(noreplace) /etc/udev/rules.d/51-ocfs2.rules
|
|
|
|
%config(noreplace) /etc/sysconfig/o2cb
|
|
|
|
%config(noreplace) /etc/sysconfig/o2cb
|
|
|
|
|
|
|
|
%{_mandir}/man7/o2cb.7.gz
|
|
|
|
%{_mandir}/man8/debugfs.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/debugfs.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/fsck.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/fsck.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/fsck.ocfs2.checks.8.gz
|
|
|
|
%{_mandir}/man8/fsck.ocfs2.checks.8.gz
|
|
|
@ -152,8 +157,7 @@ fi
|
|
|
|
%{_mandir}/man8/mounted.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/mounted.ocfs2.8.gz
|
|
|
|
%{_mandir}/man8/o2cb_ctl.8.gz
|
|
|
|
%{_mandir}/man8/o2cb_ctl.8.gz
|
|
|
|
%{_mandir}/man8/ocfs2_hb_ctl.8.gz
|
|
|
|
%{_mandir}/man8/ocfs2_hb_ctl.8.gz
|
|
|
|
%{_mandir}/man8/ocfs2cdsl.8.gz
|
|
|
|
%{_mandir}/man8/o2image.8.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_console}
|
|
|
|
%if %{with_console}
|
|
|
|
%files -n ocfs2console
|
|
|
|
%files -n ocfs2console
|
|
|
@ -162,9 +166,6 @@ fi
|
|
|
|
%{python_sitearch}/ocfs2interface/*
|
|
|
|
%{python_sitearch}/ocfs2interface/*
|
|
|
|
%{_sbindir}/ocfs2console
|
|
|
|
%{_sbindir}/ocfs2console
|
|
|
|
%{_mandir}/man8/ocfs2console.8.gz
|
|
|
|
%{_mandir}/man8/ocfs2console.8.gz
|
|
|
|
%{_datadir}/applications/fedora-ocfs2console.desktop
|
|
|
|
|
|
|
|
%dir %{_datadir}/ocfs2console/
|
|
|
|
|
|
|
|
%{_datadir}/ocfs2console/*
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
@ -180,9 +181,39 @@ fi
|
|
|
|
%{_includedir}/o2dlm/*
|
|
|
|
%{_includedir}/o2dlm/*
|
|
|
|
%{_includedir}/ocfs2/*
|
|
|
|
%{_includedir}/ocfs2/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files cman
|
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
/sbin/ocfs2_controld.cman
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Oct 9 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.3-1
|
|
|
|
|
|
|
|
- New upstream release.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 21 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-5
|
|
|
|
|
|
|
|
- Fix pcmk resource agent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 15 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-4
|
|
|
|
|
|
|
|
- Add pcmk resource agent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 3 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-3
|
|
|
|
|
|
|
|
- Fix pcmk and cman Requires.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 2 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.4.2-2
|
|
|
|
|
|
|
|
- Fix udev rule packaging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-10.20080221git
|
|
|
|
* 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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|