2007-01-16 00:27:20 +01:00
|
|
|
#
|
2010-06-25 14:23:00 +02:00
|
|
|
# spec file for package ocfs2-tools (Version 1.4.3)
|
2007-01-16 00:27:20 +01:00
|
|
|
#
|
2010-04-16 01:10:08 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:27:20 +01:00
|
|
|
#
|
2008-08-28 02:18:14 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-20 14:58:12 +01:00
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
Name: ocfs2-tools
|
2010-06-25 14:23:00 +02:00
|
|
|
BuildRequires: e2fsprogs-devel glib2-devel libcorosync-devel libdlm-devel libopenais-devel libpacemaker-devel libxml2-devel libxslt-devel python-devel python-gtk-devel readline-devel update-desktop-files
|
2007-01-16 00:27:20 +01:00
|
|
|
Summary: Oracle Cluster File System 2 Core Tools
|
2010-06-25 14:23:00 +02:00
|
|
|
Version: 1.4.3
|
|
|
|
Release: 0.<RELEASE1>
|
|
|
|
License: GPL v2 or later
|
2007-01-16 00:27:20 +01:00
|
|
|
Group: System/Filesystems
|
2008-09-13 14:38:22 +02:00
|
|
|
Source: ocfs2-tools.tar.bz2
|
2008-11-17 17:35:50 +01:00
|
|
|
Source1: o2cb.ocf
|
2010-06-25 14:23:00 +02:00
|
|
|
Source2: reflink.tar.bz2
|
|
|
|
Patch101: ocfs2-o2cb_ctl-static-glibc.diff
|
|
|
|
Patch102: force-debug.patch
|
|
|
|
Patch103: extra-debug.patch
|
|
|
|
Patch104: debug-ocfs2_hb_ctl.patch
|
|
|
|
Patch105: ocfs2_controld-pacemaker.diff
|
|
|
|
Patch106: bug-470741-debug_start_failures.patch
|
|
|
|
Patch107: ocfs2-devel.diff
|
|
|
|
Patch201: bug-543119-o2dlm.patch
|
|
|
|
Patch202: bug-585080-handle-symbolic-link.patch
|
|
|
|
Patch301: 0001-dx_dirs-Add-library-support-for-directory-indexing.patch
|
|
|
|
Patch302: 0002-dx_dirs-debugfs.ocfs2-support.patch
|
|
|
|
Patch303: 0003-dx_dirs-mkfs.ocfs2-support.patch
|
|
|
|
Patch304: 0004-dx_dirs-Add-tunefs.ocfs2-feature-for-indexed-directo.patch
|
|
|
|
Patch305: 0005-dx_dirs-Update-for-dr_num_entries.patch
|
|
|
|
Patch306: 0006-dx_dirs-add-missing-ocfs2_filesys-fs-parameter.patch
|
|
|
|
Patch307: 0007-dx_dirs-more-library-support-for-directory-indexing.patch
|
|
|
|
Patch308: 0008-dx_dirs-fsck.ocfs2-support.patch
|
|
|
|
Patch309: 0009-dx_dirs-add-blocknr-in-callback-of-ocfs2_dir_iterate.patch
|
|
|
|
Patch310: 0010-dx_dirs-add-disable-indexed-dirs-support-in-tunefs.o.patch
|
|
|
|
Patch311: 0011-dx_dirs-build-indexed-trees-when-enabling-indexed-di.patch
|
|
|
|
Patch312: 0012-dx_dirs-fix-return-value-of-walk_dirblock-when-enabl.patch
|
|
|
|
Patch313: 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch
|
|
|
|
Patch314: 0014-dx_dirs-add-an-initial-man-page-entry-for-indexed-di.patch
|
|
|
|
Patch315: 0015-fsck.ocfs2-prompt-before-truncating-an-invalid-dir-i.patch
|
|
|
|
Patch316: 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch
|
|
|
|
Patch317: 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch
|
|
|
|
Patch318: 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch
|
|
|
|
Patch319: 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch
|
|
|
|
Patch320: 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch
|
|
|
|
Patch321: 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch
|
|
|
|
Patch322: 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch
|
|
|
|
Patch323: 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch
|
|
|
|
Patch324: 0024-dx_dirs-remove-unncessary-return-value-assignment.patch
|
|
|
|
Patch325: 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch
|
|
|
|
Patch326: 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch
|
|
|
|
Patch327: 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch
|
|
|
|
Patch328: 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch
|
|
|
|
Patch329: 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch
|
|
|
|
Patch330: 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch
|
|
|
|
Patch331: 0031-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch
|
|
|
|
Patch401: version-1.4.3.patch
|
|
|
|
Patch402: reflink-no-syscall.patch
|
2010-06-27 12:07:30 +02:00
|
|
|
Patch500: fix-configure-check-libs.patch
|
2008-01-15 06:16:41 +01:00
|
|
|
Url: http://oss.oracle.com/projects/ocfs2-tools/
|
2008-09-24 17:16:41 +02:00
|
|
|
Requires: net-tools, modutils, e2fsprogs, /sbin/chkconfig, glib2 >= 2.2.3
|
2007-01-16 00:27:20 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2008-01-15 06:16:41 +01:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:27:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-06-25 14:23:00 +02:00
|
|
|
Requires: libdlm ocfs2-kmp openais
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%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
|
2010-06-25 14:23:00 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:27:20 +01:00
|
|
|
Summary: Oracle Cluster Filesystem 2 GUI tools
|
|
|
|
Group: System/Filesystems
|
|
|
|
Obsoletes: ocfs2-support
|
|
|
|
Requires: ocfs2-tools = %{version}
|
2008-01-15 06:16:41 +01:00
|
|
|
AutoReqProv: No
|
2007-01-16 00:27:20 +01:00
|
|
|
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
|
2010-06-25 14:23:00 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:27:20 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-27 05:30:12 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Oracle Corporation
|
|
|
|
|
|
|
|
%package o2cb
|
2010-06-25 14:23:00 +02:00
|
|
|
License: GPL v2 or later
|
2009-02-27 05:30:12 +01:00
|
|
|
Summary: Oracle Cluster File System 2 Core Tools
|
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: ocfs2-tools = %{version}
|
|
|
|
|
|
|
|
%description o2cb
|
|
|
|
OCFS is the Oracle Cluster File System.
|
|
|
|
|
|
|
|
This package contains the core user-space tools needed for creating and
|
|
|
|
managing the file system.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Oracle Corporation
|
|
|
|
|
|
|
|
%prep
|
2010-06-25 14:23:00 +02:00
|
|
|
%setup -n %{name} -a 2
|
2008-11-25 15:56:22 +01:00
|
|
|
%patch101 -p1
|
2009-02-10 12:13:29 +01:00
|
|
|
%patch102 -p1
|
|
|
|
%patch103 -p1
|
2009-02-17 21:59:31 +01:00
|
|
|
%patch104 -p1
|
2009-02-27 05:30:12 +01:00
|
|
|
%patch105 -p1
|
|
|
|
%patch106 -p1
|
2010-06-25 14:23:00 +02:00
|
|
|
%patch107 -p1
|
|
|
|
%patch201 -p1
|
|
|
|
%patch202 -p1
|
|
|
|
%patch301 -p1
|
|
|
|
%patch302 -p1
|
|
|
|
%patch303 -p1
|
|
|
|
%patch304 -p1
|
|
|
|
%patch305 -p1
|
|
|
|
%patch306 -p1
|
|
|
|
%patch307 -p1
|
|
|
|
%patch308 -p1
|
|
|
|
%patch309 -p1
|
|
|
|
%patch310 -p1
|
|
|
|
%patch311 -p1
|
|
|
|
%patch312 -p1
|
|
|
|
%patch313 -p1
|
|
|
|
%patch314 -p1
|
|
|
|
%patch315 -p1
|
|
|
|
%patch316 -p1
|
|
|
|
%patch317 -p1
|
|
|
|
%patch318 -p1
|
|
|
|
%patch319 -p1
|
|
|
|
%patch320 -p1
|
|
|
|
%patch321 -p1
|
|
|
|
%patch322 -p1
|
|
|
|
%patch323 -p1
|
|
|
|
%patch324 -p1
|
|
|
|
%patch325 -p1
|
|
|
|
%patch326 -p1
|
|
|
|
%patch327 -p1
|
|
|
|
%patch328 -p1
|
|
|
|
%patch329 -p1
|
|
|
|
%patch330 -p1
|
|
|
|
%patch331 -p1
|
|
|
|
%patch401 -p1
|
|
|
|
%patch402 -p0
|
2010-06-27 12:07:30 +02:00
|
|
|
%patch500 -p1
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
|
|
export CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}"
|
|
|
|
export PROJECT="ocfs2-tools"
|
|
|
|
autoreconf -fi -I /usr/share/aclocal
|
2010-06-25 14:23:00 +02:00
|
|
|
%configure --disable-debug --prefix=/usr --mandir=%{_mandir} --enable-dynamic-fsck=yes --enable-dynamic-ctl=yes
|
2007-01-16 00:27:20 +01:00
|
|
|
make OPTS="$RPM_OPT_FLAGS"
|
|
|
|
|
2010-06-25 14:23:00 +02:00
|
|
|
cd reflink
|
|
|
|
%configure --prefix=/usr --mandir=%{_mandir}
|
|
|
|
make reflink
|
|
|
|
cd ..
|
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
2010-06-25 14:23:00 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
2008-09-13 14:38:22 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
|
2008-11-17 17:35:50 +01:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates
|
2008-09-24 17:16:41 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/
|
2008-11-17 17:35:50 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2
|
2008-09-13 14:38:22 +02:00
|
|
|
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
|
2008-11-17 17:35:50 +01:00
|
|
|
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
|
2008-12-05 15:49:56 +01:00
|
|
|
chmod a+x $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/ocfs2/o2cb
|
2008-11-17 17:35:50 +01:00
|
|
|
cp -f vendor/common/o2cb.sysconfig ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.o2cb
|
2008-09-13 14:38:22 +02:00
|
|
|
ln -sf ..%{_sysconfdir}/init.d/o2cb $RPM_BUILD_ROOT/sbin/rco2cb
|
|
|
|
ln -sf ..%{_sysconfdir}/init.d/ocfs2 $RPM_BUILD_ROOT/sbin/rcocfs2
|
2007-01-16 00:27:20 +01:00
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2010-06-25 14:23:00 +02:00
|
|
|
|
|
|
|
cd reflink
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
cd ..
|
|
|
|
|
2008-09-13 14:38:22 +02:00
|
|
|
mv $RPM_BUILD_ROOT/{,/usr}/sbin/o2image
|
2008-11-17 17:35:50 +01:00
|
|
|
mv $RPM_BUILD_ROOT/{,/usr}/sbin/debugfs.ocfs2
|
2008-09-13 14:38:22 +02:00
|
|
|
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
|
2007-01-16 00:27:20 +01:00
|
|
|
%{__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
|
|
|
|
|
2008-09-24 17:16:41 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:27:20 +01:00
|
|
|
|
2009-02-27 05:30:12 +01:00
|
|
|
%preun o2cb
|
2007-01-16 00:27:20 +01:00
|
|
|
%stop_on_removal ocfs2
|
|
|
|
%stop_on_removal o2cb
|
|
|
|
|
2009-02-27 05:30:12 +01:00
|
|
|
%postun o2cb
|
2008-09-24 17:16:41 +02:00
|
|
|
/sbin/ldconfig
|
|
|
|
%{insserv_cleanup}
|
2007-01-16 00:27:20 +01:00
|
|
|
%restart_on_update ocfs2
|
|
|
|
%restart_on_update o2cb
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-09-24 17:16:41 +02:00
|
|
|
%dir %{_sysconfdir}/udev
|
|
|
|
%dir %{_sysconfdir}/udev/rules.d
|
2007-01-16 00:27:20 +01:00
|
|
|
/sbin/fsck.ocfs2
|
|
|
|
/sbin/mkfs.ocfs2
|
|
|
|
/sbin/mounted.ocfs2
|
2008-09-13 14:38:22 +02:00
|
|
|
/sbin/tunefs.ocfs2
|
2007-01-16 00:27:20 +01:00
|
|
|
/sbin/mount.ocfs2
|
2010-06-25 14:23:00 +02:00
|
|
|
/sbin/ocfs2_hb_ctl
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_sbindir}/o2image
|
|
|
|
%{_sbindir}/debugfs.ocfs2
|
|
|
|
%{_sbindir}/ocfs2_controld.pcmk
|
2010-06-25 14:23:00 +02:00
|
|
|
%{_bindir}/reflink
|
2008-09-24 17:16:41 +02:00
|
|
|
%config %{_sysconfdir}/udev/rules.d/51-ocfs2.rules
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_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*
|
2010-06-25 14:23:00 +02:00
|
|
|
%{_mandir}/man8/ocfs2_hb_ctl.8*
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_mandir}/man8/mount.ocfs2.8*
|
|
|
|
%{_mandir}/man8/o2image.8.gz
|
2010-06-25 14:23:00 +02:00
|
|
|
%doc COPYING CREDITS MAINTAINERS
|
2007-01-16 00:27:20 +01:00
|
|
|
%doc documentation/users_guide.txt
|
2008-11-17 17:35:50 +01:00
|
|
|
%dir /usr/lib/ocf
|
|
|
|
%dir /usr/lib/ocf/resource.d
|
|
|
|
%dir /usr/lib/ocf/resource.d/ocfs2
|
|
|
|
/usr/lib/ocf/resource.d/ocfs2/o2cb
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%files -n ocfs2console
|
|
|
|
%defattr(-,root,root)
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_sbindir}/ocfs2console
|
2007-01-16 00:27:20 +01:00
|
|
|
%{py_sitedir}/ocfs2interface
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_mandir}/man8/ocfs2console.8*
|
2007-01-16 00:27:20 +01:00
|
|
|
|
2009-02-27 05:30:12 +01:00
|
|
|
%files o2cb
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/sbin/rco2cb
|
|
|
|
/sbin/rcocfs2
|
|
|
|
/sbin/o2cb_ctl
|
|
|
|
%{_sysconfdir}/init.d/o2cb
|
|
|
|
%{_sysconfdir}/init.d/ocfs2
|
|
|
|
%{_mandir}/man8/o2cb_ctl.8*
|
|
|
|
/var/adm/fillup-templates/sysconfig.o2cb
|
|
|
|
%{_mandir}/man7/o2cb.7.gz
|
2010-06-25 14:23:00 +02:00
|
|
|
%doc README.O2CB
|
2009-02-27 05:30:12 +01:00
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/o2cb
|
|
|
|
%{_includedir}/o2dlm
|
|
|
|
%{_includedir}/ocfs2
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_includedir}/ocfs2-kernel
|
2007-01-16 00:27:20 +01:00
|
|
|
%{_libdir}/pkgconfig/o2cb.pc
|
|
|
|
%{_libdir}/pkgconfig/o2dlm.pc
|
|
|
|
%{_libdir}/pkgconfig/ocfs2.pc
|
|
|
|
|
2007-08-09 20:54:31 +02:00
|
|
|
%changelog
|