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