ocfs2-tools/ocfs2-tools.spec

298 lines
9.6 KiB
RPMSpec

#
# spec file for package ocfs2-tools (Version 1.4.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ocfs2-tools
BuildRequires: e2fsprogs-devel glib2-devel libdlm-devel libopenais-devel libpacemaker-devel libxml2-devel libxslt-devel python-devel python-gtk-devel readline-devel update-desktop-files
Summary: Oracle Cluster File System 2 Core Tools
Version: 1.4.1
Release: 7
License: GPL v2 or later
Group: System/Filesystems
Source: ocfs2-tools.tar.bz2
Source1: o2cb.ocf
Patch5: ocfs2-tools-static-glib.diff
Patch99: ocfs2-devel.diff
Patch100: ocfs2-quota.diff
Patch101: change-quotafile-names.diff
Url: http://oss.oracle.com/projects/ocfs2-tools/
Requires: net-tools, modutils, e2fsprogs, /sbin/chkconfig, glib2 >= 2.2.3
PreReq: %insserv_prereq %fillup_prereq
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libdlm
%description
OCFS is the Oracle Cluster File System.
This package contains the core user-space tools needed for creating and
managing the file system.
Authors:
--------
Oracle Corporation
%package -n ocfs2console
License: GPL v2 or later
Summary: Oracle Cluster Filesystem 2 GUI tools
Group: System/Filesystems
Obsoletes: ocfs2-support
Requires: ocfs2-tools = %{version}
AutoReqProv: No
Requires: e2fsprogs, glib2 >= 2.2.3, vte >= 0.11.10, python-gtk >= 1.99.16, ocfs2-tools = %{version}
%description -n ocfs2console
OCFS is the Oracle Cluster Filesystem.
This package contains additional tools and a GUI (python-gtk).
Authors:
--------
Oracle Corporation
%package devel
License: GPL v2 or later
Summary: Oracle Cluster File System 2 Development files
Group: System/Filesystems
Requires: ocfs2-tools = %{version}, libcom_err, libcom_err-devel
%description devel
OCFS is the Oracle Cluster File System.
This package contains the header files and static libraries for
developing low-level OCFS2-aware applications.
Authors:
--------
Oracle Corporation
%prep
%setup -n %{name}
%patch5 -p1
%patch99 -p1
%patch100 -p1
%patch101 -p1
%build
%{?suse_update_config:%{suse_update_config -f}}
export CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}"
export PROJECT="ocfs2-tools"
autoreconf -fi -I /usr/share/aclocal
%configure --disable-debug --prefix=/usr --mandir=%{_mandir} \
--enable-dynamic-fsck=yes --enable-dynamic-ctl=yes
make OPTS="$RPM_OPT_FLAGS"
%install
mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/
mkdir -p $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2
cp -f vendor/common/o2cb.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/o2cb
cp -f vendor/common/ocfs2.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/ocfs2
cp -f vendor/common/51-ocfs2.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
cp -f $RPM_SOURCE_DIR/o2cb.ocf $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2/o2cb
chmod a+x $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2/o2cb
cp -f vendor/common/o2cb.sysconfig ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.o2cb
ln -sf ..%{_sysconfdir}/init.d/o2cb $RPM_BUILD_ROOT/sbin/rco2cb
ln -sf ..%{_sysconfdir}/init.d/ocfs2 $RPM_BUILD_ROOT/sbin/rcocfs2
make DESTDIR="$RPM_BUILD_ROOT" install
mv $RPM_BUILD_ROOT/{,/usr}/sbin/o2image
mv $RPM_BUILD_ROOT/{,/usr}/sbin/debugfs.ocfs2
mv $RPM_BUILD_ROOT/{,/usr}/sbin/ocfs2_controld.pcmk
find $RPM_BUILD_ROOT -name '*.a' -type f -print0 | xargs -0 rm -f
find $RPM_BUILD_ROOT -name '*.la' -type f -print0 | xargs -0 rm -f
%{__python} -c "import compileall; compileall.compile_dir('$RPM_BUILD_ROOT/%{py_sitedir}/ocfs2interface', ddir='%{py_sitedir}/ocfs2interface')"
%clean
if
[ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]
then
rm -rf $RPM_BUILD_ROOT
fi
%post -p /sbin/ldconfig
%preun
%stop_on_removal ocfs2
%stop_on_removal o2cb
%postun
/sbin/ldconfig
%{insserv_cleanup}
%restart_on_update ocfs2
%restart_on_update o2cb
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
/sbin/fsck.ocfs2
/sbin/mkfs.ocfs2
/sbin/mounted.ocfs2
/sbin/tunefs.ocfs2
/sbin/o2cb_ctl
/sbin/mount.ocfs2
/sbin/ocfs2_hb_ctl
/sbin/rco2cb
/sbin/rcocfs2
%{_sbindir}/o2image
%{_sbindir}/debugfs.ocfs2
%{_sbindir}/ocfs2_controld.pcmk
%{_sysconfdir}/init.d/o2cb
%{_sysconfdir}/init.d/ocfs2
%config %{_sysconfdir}/udev/rules.d/51-ocfs2.rules
%{_mandir}/man8/debugfs.ocfs2.8*
%{_mandir}/man8/fsck.ocfs2.8*
%{_mandir}/man8/fsck.ocfs2.checks.8*
%{_mandir}/man8/mkfs.ocfs2.8*
%{_mandir}/man8/tunefs.ocfs2.8*
%{_mandir}/man8/mounted.ocfs2.8*
%{_mandir}/man8/mount.ocfs2.8*
%{_mandir}/man8/o2cb_ctl.8*
%{_mandir}/man8/ocfs2_hb_ctl.8*
%{_mandir}/man7/o2cb.7.gz
%{_mandir}/man8/o2image.8.gz
/var/adm/fillup-templates/sysconfig.o2cb
%doc README.O2CB COPYING CREDITS MAINTAINERS
%doc documentation/users_guide.txt
%dir /usr/lib/ocf
%dir /usr/lib/ocf/resource.d
%dir /usr/lib/ocf/resource.d/ocfs2
/usr/lib/ocf/resource.d/ocfs2/o2cb
%files -n ocfs2console
%defattr(-,root,root)
%{_sbindir}/ocfs2console
%{py_sitedir}/ocfs2interface
%{_mandir}/man8/ocfs2console.8*
%files devel
%defattr(-,root,root)
%{_includedir}/o2cb
%{_includedir}/o2dlm
%{_includedir}/ocfs2
%{_includedir}/ocfs2-kernel
%{_libdir}/pkgconfig/o2cb.pc
%{_libdir}/pkgconfig/o2dlm.pc
%{_libdir}/pkgconfig/ocfs2.pc
%changelog
* Fri Dec 05 2008 coyli@suse.de
- ensure o2cb OCF resource agent is executable
- add libdlm to ocfs2-tools' dependency (bnc#448751)
* Fri Nov 21 2008 mfasheh@suse.com
- Add a quota fixup patch to match up system file names in tools
with the kernel.
* Wed Nov 12 2008 abeekhof@suse.de
- Add an OCF-style script to allow Pacemaker to reliably manage the
ocfs2 modules. The existing LSB-style one is inadequate.
* Mon Oct 27 2008 abeekhof@suse.de
- Refresh package to upstream a93731c164d024e0016520a1f4cd8f9007d7c05e
- Remove part of the static glib patch as tunefs.ocfs2 no longer uses glib
- Combine patches yet to be upstreamed to ease maintenance
* Mon Oct 27 2008 mfasheh@suse.com
- Add quota support patches
* Mon Oct 20 2008 abeekhof@suse.de
- New patch for ocfs2_controld - make sure stad(err|out|in) are mapped to /dev/null
and not left unassigned (which causes issues when logging)
* Mon Sep 22 2008 abeekhof@suse.de
- ocfs2console: Allow ocfs2console to enumerate device mapper devices (bnc#414756)
* Tue Sep 16 2008 abeekhof@suse.de
- Update for new pacemaker dependancies
- Use correct path for ocfs2_controld.*
- Package required udev rules
* Thu Sep 11 2008 abeekhof@suse.de
- Refresh from upstream 1.4.1 (0ead2f1b45568ca441cb3ed679efbbd7eeb68d98)
- Add support for OpenAIS/Pacemaker (userspace cluster stack) integration
based on upstream OCFS2 interface
- Remove the custom Heartbeat integration
- Bugfixes
* Tue Aug 26 2008 jeffm@suse.com
- Made init scripts LSB compliant.
* Fri Feb 22 2008 jeffm@suse.com
- Re-added init script support for userspace heartbeat.
* Tue Feb 19 2008 jeffm@suse.com
- Statically link glib-2.0 with tunefs and o2cb_ctl.
* Mon Jan 28 2008 jeffm@suse.com
- Update to 1.3.9
* Mon Jan 14 2008 jeffm@suse.com
- Update to 1.2.7
- Add shrinking journal size support
- Fix crash in slotmap
- Don't append _netdev for local mounts
- Add query support for tunefs
- Add remove slot features to tunefs
* Tue Aug 07 2007 jeffm@suse.com
- Update to 1.2.6
- Support for file attributes field
- Fix for automatically selecting next node number
- Multiple fsck fixes
- Offline resize
- Documentation updates
* Sun Nov 19 2006 schwab@suse.de
- Don't use kernel headers.
* Sun Nov 19 2006 ro@suse.de
- define offsetof locally if it does not come from kernel header
* Mon Oct 30 2006 lmb@suse.de
- Upgrade to version 1.2.2 to match in-kernel version.
- Split-off devel subpackage.
* Sat Oct 28 2006 meissner@suse.de
- use RPM_OPT_FLAGS
* Sat Sep 30 2006 aj@suse.de
- Cleanup BuildRequires.
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Wed May 03 2006 kukuk@suse.de
- Fix compile with new glibc
* Wed Apr 26 2006 lmb@suse.de
- Update to 1.2.1 to match in-kernel version.
* Mon Apr 24 2006 lmb@suse.de
- Create /sbin/rcocfs2, rco2cb symlinks (#167261).
* Tue Apr 04 2006 lmb@suse.de
- Install "ocfs2" init script and enable it (#160724).
* Thu Mar 02 2006 jeffm@suse.com
- Updated to version 1.2.0, per Oracle
* Thu Mar 02 2006 jeffm@suse.com
- Enabled o2cb by default on package install to allow it to shut
down when manually started. Otherwise, the system will hang
during shutdown.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Nov 11 2005 lmb@suse.de
- Should-Start: iscsi added (from SLES9) (#114733)
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Tue Nov 01 2005 jeffm@suse.com
- Update to version 1.1.3 - SVN 1105
* Mon Aug 22 2005 garloff@suse.de
- Fix python defines.
* Mon Aug 22 2005 garloff@suse.de
- Fix build with different python versions.
- Fix package description.
* Sat Aug 20 2005 lmb@suse.de
- Initial packaging of ocfs2-tools, from SLES9.
- Update to version 1.1.1 - SVN 1063