Accepting request 556344 from home:lchen:branches:network:ha-clustering:Factory

- Remove ocfs2console module from spec file

OBS-URL: https://build.opensuse.org/request/show/556344
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=110
This commit is contained in:
Gang He 2017-12-12 06:05:21 +00:00 committed by Git OBS Bridge
parent b809f64532
commit 56c7c885b7
2 changed files with 29 additions and 1 deletions

View File

@ -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

View File

@ -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)