[PATCH 2/2] Split out GUI to a separate package

Vratislav Podzimek vpodzime at redhat.com
Tue Nov 19 07:47:44 UTC 2013


Interactive exception handling and reporting generally doesn't require GUI so we
should allow using python-meh without pulling in the whole graphical stack.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 python-meh.spec | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/python-meh.spec b/python-meh.spec
index d10627a..620c4c4 100644
--- a/python-meh.spec
+++ b/python-meh.spec
@@ -21,14 +21,23 @@ BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: python-devel, gettext, python-setuptools-devel, intltool
 BuildRequires: dbus-python, libreport-gtk >= %{libreportver}, libreport-cli >= %{libreportver}
-Requires: python, dbus-python, pygobject3, gtk3
+Requires: python, dbus-python
 Requires: openssh-clients, rpm-python, yum
-Requires: libreport-gtk >= %{libreportver}, libreport-cli >= %{libreportver}
+Requires: libreport-cli >= %{libreportver}
 
 %description
 The python-meh package is a python library for handling, saving, and reporting
 exceptions.
 
+%package gui
+Summary: Graphical user interface for the python-meh library
+Requires: python-meh = %{version}-%{release}
+Requires: pygobject3, gtk3
+Requires: libreport-gtk >= %{libreportver}
+
+%description gui
+The python-meh-gui package provides a GUI for the python-meh library.
+
 %prep
 %setup -q
 
@@ -50,6 +59,10 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %doc ChangeLog COPYING
 %{python_sitelib}/*
+%exclude %{python_sitelib}/meh/ui/gui.py
+
+%files gui
+%{python_sitelib}/meh/ui/gui.py
 %{_datadir}/python-meh
 
 %changelog
-- 
1.8.4.2



More information about the anaconda-patches mailing list