From 70b3733b2001da1554f3177df34a573d986119a4 Mon Sep 17 00:00:00 2001 From: Gang He Date: Wed, 13 Dec 2017 03:23:44 +0000 Subject: [PATCH] Accepting request 556581 from home:lchen:branches:network:ha-clustering:Factory - Remove install procedures for ocfs2console OBS-URL: https://build.opensuse.org/request/show/556581 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=111 --- ocfs2-tools.changes | 5 +++++ ocfs2-tools.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ocfs2-tools.changes b/ocfs2-tools.changes index 27caa9a..1fcb5e8 100644 --- a/ocfs2-tools.changes +++ b/ocfs2-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 13 03:11:37 UTC 2017 - lchen@suse.com + +- Remove install procedures for ocfs2console + ------------------------------------------------------------------- Mon Dec 11 10:40:06 UTC 2017 - lchen@suse.com diff --git a/ocfs2-tools.spec b/ocfs2-tools.spec index 300b1ee..8b62391 100644 --- a/ocfs2-tools.spec +++ b/ocfs2-tools.spec @@ -67,8 +67,6 @@ 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) @@ -98,6 +96,8 @@ managing the file system. %package -n ocfs2console Summary: Oracle Cluster Filesystem 2 GUI tools Group: System/Filesystems +BuildRequires: python-devel +BuildRequires: python-gtk-devel Requires: e2fsprogs Requires: glib2 >= 2.2.3 Requires: ocfs2-tools = %{version} @@ -221,8 +221,9 @@ mv %{buildroot}/{,/usr}/sbin/debugfs.ocfs2 chmod a-x %{buildroot}/%{_libdir}/libo2cb.a chmod a-x %{buildroot}/%{_libdir}/libo2dlm.a chmod a-x %{buildroot}/%{_libdir}/libocfs2.a +%if 0%{_ocfs2console} == 1 python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir}/ocfs2interface', ddir='%{py_sitedir}/ocfs2interface')" - +%endif %preun o2cb %stop_on_removal ocfs2 %stop_on_removal o2cb