diff --git a/ocfs2-tools.changes b/ocfs2-tools.changes index 204db2f..27caa9a 100644 --- a/ocfs2-tools.changes +++ b/ocfs2-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 11 10:40:06 UTC 2017 - lchen@suse.com + +- Remove ocfs2console module from spec file + ------------------------------------------------------------------- Thu Nov 23 13:48:49 UTC 2017 - rbrown@suse.com diff --git a/ocfs2-tools.spec b/ocfs2-tools.spec index c98cb74..300b1ee 100644 --- a/ocfs2-tools.spec +++ b/ocfs2-tools.spec @@ -21,6 +21,18 @@ %define _fillupdir /var/adm/fillup-templates %endif +#if run "rpmbuild --with=ocfs2console" +#_with_ocfs2console will be automatically defined +%if %{defined _with_ocfs2console} + %define _ocfs2console 1 +%else + %if 0%{?suse_version} >= 1500 + %define _ocfs2console 0 + %else + %define _ocfs2console 1 + %endif +%endif + Name: ocfs2-tools Version: 1.8.5 Release: 0 @@ -82,6 +94,7 @@ OCFS2 is the Oracle Cluster File System. This package contains the core user-space tools needed for creating and managing the file system. +%if 0%{_ocfs2console} == 1 %package -n ocfs2console Summary: Oracle Cluster Filesystem 2 GUI tools Group: System/Filesystems @@ -98,6 +111,7 @@ Obsoletes: ocfs2-support < %{version} OCFS2 is the Oracle Cluster Filesystem. This package contains additional tools and a GUI (python-gtk). +%endif %package devel Summary: Oracle Cluster File System 2 Development files @@ -158,7 +172,14 @@ OCFS2 filesystem. %build export PROJECT="ocfs2-tools" autoreconf -fi -I /usr/share/aclocal -%configure --disable-debug --enable-ocfs2console=yes --enable-dynamic-fsck=yes --enable-dynamic-ctl=yes + +%configure --disable-debug \ +%if 0%{_ocfs2console} == 1 +--enable-ocfs2console=yes \ +%endif +--enable-dynamic-fsck=yes \ +--enable-dynamic-ctl=yes + make OPTS="%{optflags}" cd reflink @@ -246,11 +267,13 @@ python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir} %{_mandir}/man7/ocfs2.7.gz %{_mandir}/man1/o2info.1.gz +%if 0%{_ocfs2console} == 1 %files -n ocfs2console %defattr(-,root,root) %{_sbindir}/ocfs2console %{py_sitedir}/ocfs2interface %{_mandir}/man8/ocfs2console.8* +%endif %files o2cb %defattr(-,root,root)