2007-01-16 00:27:20 +01:00
|
|
|
#
|
2011-06-21 11:57:01 +02:00
|
|
|
# spec file for package ocfs2-tools
|
2007-01-16 00:27:20 +01:00
|
|
|
#
|
2015-05-08 12:26:22 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2011-12-21 15:26:19 +01:00
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
Name: ocfs2-tools
|
2015-05-08 12:26:22 +02:00
|
|
|
Version: 1.8.4
|
2013-04-03 19:16:10 +02:00
|
|
|
Release: 0
|
2007-01-16 00:27:20 +01:00
|
|
|
Summary: Oracle Cluster File System 2 Core Tools
|
2011-12-16 13:11:25 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:27:20 +01:00
|
|
|
Group: System/Filesystems
|
2015-05-08 12:26:22 +02:00
|
|
|
Url: https://ocfs2.wiki.kernel.org/
|
2013-04-03 19:16:10 +02:00
|
|
|
Source: ocfs2-tools-%{version}.tar.gz
|
2008-11-17 17:35:50 +01:00
|
|
|
Source1: o2cb.ocf
|
2010-06-25 14:23:00 +02:00
|
|
|
Source2: reflink.tar.bz2
|
2010-10-20 19:15:26 +02:00
|
|
|
Patch103: debug-ocfs2_hb_ctl.patch
|
|
|
|
Patch105: bug-470741-debug_start_failures.patch
|
|
|
|
Patch106: ocfs2-devel.diff
|
2010-11-20 12:35:17 +01:00
|
|
|
Patch107: reflink-no-syscall.patch
|
2010-06-25 14:23:00 +02:00
|
|
|
Patch201: bug-543119-o2dlm.patch
|
2011-04-15 14:17:26 +02:00
|
|
|
Patch202: fix-configure-check-libs.patch
|
2011-08-30 11:39:52 +02:00
|
|
|
Patch204: dont-use-var-lock-subsys.patch
|
2012-04-26 07:07:50 +02:00
|
|
|
Patch205: ocfs2-tools-kernel33.patch
|
2012-07-30 04:03:55 +02:00
|
|
|
Patch206: ocfs2-tools-resource.patch
|
2015-05-08 12:26:22 +02:00
|
|
|
Patch301: 0001-libo2dlm-Close-file-description-after-use.patch
|
|
|
|
Patch302: 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch
|
2015-09-22 14:30:33 +02:00
|
|
|
Patch401: 0003-o2cb-add-build-scripts-for-rhel7.patch
|
|
|
|
Patch402: 0004-add-systemd-support.patch
|
|
|
|
Patch403: 0005-do-not-write-sysconfig-if-status-not-changed.patch
|
|
|
|
Patch404: 0006-o2cb-mount-debugfs-when-load-config.patch
|
|
|
|
Patch405: 0007-vendor-Add-vendor-files-for-sles12.patch
|
|
|
|
Patch406: 0008-ocfs2-tools-add-systemd-support-fix.patch
|
2013-07-31 16:13:16 +02:00
|
|
|
|
2013-04-03 19:16:10 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libcorosync-devel
|
|
|
|
BuildRequires: libdlm-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: libz1
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-gtk-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): %insserv_prereq
|
2012-04-26 07:07:50 +02:00
|
|
|
Requires: /sbin/chkconfig
|
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: glib2 >= 2.2.3
|
|
|
|
Requires: modutils
|
|
|
|
Requires: net-tools
|
2013-04-03 19:16:10 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-02-28 10:59:17 +01:00
|
|
|
%if 0%{?suse_version} < 1320
|
2011-04-15 15:26:45 +02:00
|
|
|
Recommends: ocfs2-kmp
|
|
|
|
%endif
|
2015-09-22 14:30:33 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
%define systemd_enabled 1
|
|
|
|
%else
|
|
|
|
%define systemd_enabled 0
|
|
|
|
%endif
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%description
|
2013-09-13 10:34:38 +02:00
|
|
|
OCFS2 is the Oracle Cluster File System.
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
This package contains the core user-space tools needed for creating and
|
|
|
|
managing the file system.
|
|
|
|
|
|
|
|
%package -n ocfs2console
|
|
|
|
Summary: Oracle Cluster Filesystem 2 GUI tools
|
2012-04-26 07:07:50 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: glib2 >= 2.2.3
|
|
|
|
Requires: ocfs2-tools = %{version}
|
2013-04-03 19:16:10 +02:00
|
|
|
Requires: ocfs2-tools = %{version}
|
2012-04-26 07:07:50 +02:00
|
|
|
Requires: python-gtk >= 1.99.16
|
|
|
|
Requires: vte >= 0.11.10
|
2013-04-03 19:16:10 +02:00
|
|
|
Provides: ocfs2-support = %{version}
|
|
|
|
Obsoletes: ocfs2-support < %{version}
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%description -n ocfs2console
|
2013-09-13 10:34:38 +02:00
|
|
|
OCFS2 is the Oracle Cluster Filesystem.
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
This package contains additional tools and a GUI (python-gtk).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Oracle Cluster File System 2 Development files
|
2013-03-22 14:31:56 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-04-26 07:07:50 +02:00
|
|
|
Requires: libcom_err
|
|
|
|
Requires: libcom_err-devel
|
|
|
|
Requires: ocfs2-tools = %{version}
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%description devel
|
2013-09-13 10:34:38 +02:00
|
|
|
OCFS2 is the Oracle Cluster File System.
|
2007-01-16 00:27:20 +01:00
|
|
|
|
2013-09-13 10:34:38 +02:00
|
|
|
This package contains the header files for developing low-level
|
|
|
|
OCFS2-aware applications.
|
|
|
|
|
|
|
|
%package devel-static
|
|
|
|
Summary: Oracle Cluster File System 2 static libraries
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libcom_err
|
|
|
|
Requires: libcom_err-devel
|
|
|
|
Requires: ocfs2-tools = %{version}
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
OCFS2 is the Oracle Cluster File System.
|
|
|
|
|
|
|
|
This package contains the static libraries for developing low-level
|
|
|
|
OCFS2-aware applications.
|
2007-01-16 00:27:20 +01:00
|
|
|
|
2009-02-27 05:30:12 +01:00
|
|
|
%package o2cb
|
2014-02-28 10:59:17 +01:00
|
|
|
Summary: Oracle Cluster File System 2 tools for the native o2cb stack
|
2012-04-26 07:07:50 +02:00
|
|
|
Group: System/Filesystems
|
2009-02-27 05:30:12 +01:00
|
|
|
Requires: ocfs2-tools = %{version}
|
|
|
|
|
|
|
|
%description o2cb
|
|
|
|
OCFS is the Oracle Cluster File System.
|
|
|
|
|
2014-02-28 10:59:17 +01:00
|
|
|
This package contains the tools to manage the native o2cb stack for the
|
|
|
|
OCFS2 filesystem.
|
2009-02-27 05:30:12 +01:00
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
%prep
|
2013-04-03 19:16:10 +02:00
|
|
|
%setup -q -a 2
|
2009-02-10 12:13:29 +01:00
|
|
|
%patch103 -p1
|
2009-02-27 05:30:12 +01:00
|
|
|
%patch105 -p1
|
|
|
|
%patch106 -p1
|
2010-10-20 19:15:26 +02:00
|
|
|
%patch107 -p0
|
2010-06-25 14:23:00 +02:00
|
|
|
%patch201 -p1
|
|
|
|
%patch202 -p1
|
2011-08-30 11:39:52 +02:00
|
|
|
%patch204 -p1
|
2012-04-26 07:07:50 +02:00
|
|
|
%patch205 -p1
|
2012-07-30 04:03:55 +02:00
|
|
|
%patch206 -p1
|
2015-05-08 12:26:22 +02:00
|
|
|
%patch301 -p1
|
|
|
|
%patch302 -p1
|
2015-09-22 14:30:33 +02:00
|
|
|
%patch401 -p1
|
|
|
|
%patch402 -p1
|
|
|
|
%patch403 -p1
|
|
|
|
%patch404 -p1
|
|
|
|
%patch405 -p1
|
|
|
|
%patch406 -p1
|
2007-01-16 00:27:20 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export PROJECT="ocfs2-tools"
|
|
|
|
autoreconf -fi -I /usr/share/aclocal
|
2013-04-03 19:16:10 +02:00
|
|
|
%configure --disable-debug --enable-ocfs2console=yes --enable-dynamic-fsck=yes --enable-dynamic-ctl=yes
|
|
|
|
make OPTS="%{optflags}"
|
2007-01-16 00:27:20 +01:00
|
|
|
|
2010-06-25 14:23:00 +02:00
|
|
|
cd reflink
|
2013-04-24 19:50:33 +02:00
|
|
|
cp ../config.guess ../config.sub coreutils-6.9/build-aux/
|
2013-04-03 19:16:10 +02:00
|
|
|
%configure
|
2010-06-25 14:23:00 +02:00
|
|
|
make reflink
|
|
|
|
cd ..
|
|
|
|
|
2007-01-16 00:27:20 +01:00
|
|
|
%install
|
2013-04-03 19:16:10 +02:00
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/bin
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/ocf/resource.d/ocfs2
|
|
|
|
cp -f vendor/common/51-ocfs2.rules %{buildroot}%{_sysconfdir}/udev/rules.d
|
|
|
|
cp -f $RPM_SOURCE_DIR/o2cb.ocf %{buildroot}%{_prefix}/lib/ocf/resource.d/ocfs2/o2cb
|
|
|
|
chmod a+x %{buildroot}%{_prefix}/lib/ocf/resource.d/ocfs2/o2cb
|
|
|
|
cp -f vendor/common/o2cb.sysconfig %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.o2cb
|
2015-09-22 14:30:33 +02:00
|
|
|
|
|
|
|
%if %{systemd_enabled}
|
|
|
|
mkdir -p %{buildroot}/usr/lib/systemd/system
|
|
|
|
cp -f vendor/common/o2cb.service %{buildroot}/usr/lib/systemd/system/
|
|
|
|
cp -f vendor/common/ocfs2.service %{buildroot}/usr/lib/systemd/system/
|
|
|
|
cp -f vendor/common/o2cb.init %{buildroot}/sbin
|
|
|
|
cp -f vendor/common/ocfs2.init %{buildroot}/sbin
|
|
|
|
%else
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
cp -f vendor/common/o2cb.init %{buildroot}%{_sysconfdir}/init.d/o2cb
|
|
|
|
cp -f vendor/common/ocfs2.init %{buildroot}%{_sysconfdir}/init.d/ocfs2
|
|
|
|
ln -sf ..%{_sysconfdir}/init.d/o2cb %{buildroot}/sbin/rco2cb
|
|
|
|
ln -sf ..%{_sysconfdir}/init.d/ocfs2 %{buildroot}/sbin/rcocfs2
|
|
|
|
%endif
|
2013-04-03 19:16:10 +02:00
|
|
|
make DESTDIR="%{buildroot}" install
|
2010-06-25 14:23:00 +02:00
|
|
|
|
|
|
|
cd reflink
|
2013-04-03 19:16:10 +02:00
|
|
|
make DESTDIR="%{buildroot}" install
|
2010-06-25 14:23:00 +02:00
|
|
|
cd ..
|
|
|
|
|
2013-04-03 19:16:10 +02:00
|
|
|
mv %{buildroot}/{,/usr}/sbin/o2image
|
|
|
|
mv %{buildroot}/{,/usr}/sbin/debugfs.ocfs2
|
2013-08-24 06:21:23 +02:00
|
|
|
#mv %{buildroot}/{,/usr}/sbin/ocfs2_controld.pcmk
|
2013-08-12 22:16:37 +02:00
|
|
|
chmod a-x %{buildroot}/%{_libdir}/libo2cb.a
|
|
|
|
chmod a-x %{buildroot}/%{_libdir}/libo2dlm.a
|
|
|
|
chmod a-x %{buildroot}/%{_libdir}/libocfs2.a
|
2013-04-03 19:16:10 +02:00
|
|
|
python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir}/ocfs2interface', ddir='%{py_sitedir}/ocfs2interface')"
|
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
|
|
|
%{insserv_cleanup}
|
2007-01-16 00:27:20 +01:00
|
|
|
%restart_on_update ocfs2
|
|
|
|
%restart_on_update o2cb
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-04-03 19:16:10 +02:00
|
|
|
%doc COPYING CREDITS MAINTAINERS
|
|
|
|
%doc documentation/users_guide.txt
|
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
|
2012-08-27 01:53:00 +02:00
|
|
|
/sbin/o2cluster
|
2008-09-13 14:38:22 +02:00
|
|
|
%{_sbindir}/o2image
|
|
|
|
%{_sbindir}/debugfs.ocfs2
|
2011-04-15 14:17:26 +02:00
|
|
|
%{_sbindir}/o2hbmonitor
|
2010-06-25 14:23:00 +02:00
|
|
|
%{_bindir}/reflink
|
2011-04-15 14:17:26 +02:00
|
|
|
%{_bindir}/o2info
|
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
|
2012-08-27 01:53:00 +02:00
|
|
|
%{_mandir}/man8/o2cluster.8.gz
|
|
|
|
%{_mandir}/man8/o2hbmonitor.8.gz
|
|
|
|
%{_mandir}/man5/o2cb.sysconfig.5.gz
|
|
|
|
%{_mandir}/man5/ocfs2.cluster.conf.5.gz
|
|
|
|
%{_mandir}/man7/ocfs2.7.gz
|
2011-04-15 14:17:26 +02:00
|
|
|
%{_mandir}/man1/o2info.1.gz
|
2013-04-03 19:16:10 +02:00
|
|
|
%dir %{_prefix}/lib/ocf
|
|
|
|
%dir %{_prefix}/lib/ocf/resource.d
|
|
|
|
%dir %{_prefix}/lib/ocf/resource.d/ocfs2
|
|
|
|
%{_prefix}/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)
|
2013-04-03 19:16:10 +02:00
|
|
|
%doc README.O2CB
|
2009-02-27 05:30:12 +01:00
|
|
|
/sbin/o2cb_ctl
|
2011-04-15 14:17:26 +02:00
|
|
|
/sbin/o2cb
|
2015-09-22 14:30:33 +02:00
|
|
|
|
|
|
|
%if %{systemd_enabled}
|
|
|
|
/sbin/o2cb.init
|
|
|
|
/sbin/ocfs2.init
|
|
|
|
/usr/lib/systemd/system/o2cb.service
|
|
|
|
/usr/lib/systemd/system/ocfs2.service
|
|
|
|
%else
|
|
|
|
/sbin/rco2cb
|
|
|
|
/sbin/rcocfs2
|
|
|
|
%{_sysconfdir}/init.d/o2cb
|
|
|
|
%{_sysconfdir}/init.d/ocfs2
|
|
|
|
%endif
|
|
|
|
|
2009-02-27 05:30:12 +01:00
|
|
|
%{_mandir}/man8/o2cb_ctl.8*
|
2013-04-03 19:16:10 +02:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.o2cb
|
2009-02-27 05:30:12 +01:00
|
|
|
%{_mandir}/man7/o2cb.7.gz
|
2011-04-15 14:17:26 +02:00
|
|
|
%{_mandir}/man8/o2cb.8.gz
|
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
|
2013-09-13 10:34:38 +02:00
|
|
|
|
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
2013-08-12 22:16:37 +02:00
|
|
|
%{_libdir}/libo2cb.a
|
|
|
|
%{_libdir}/libo2dlm.a
|
|
|
|
%{_libdir}/libocfs2.a
|
2007-01-16 00:27:20 +01:00
|
|
|
|
2007-08-09 20:54:31 +02:00
|
|
|
%changelog
|