[python-meh][PATCH] Split GUI out into a separate package (#1136795)
Vratislav Podzimek
vpodzime at redhat.com
Wed Sep 3 10:30:37 UTC 2014
Interactive exception handling and reporting generally doesn't require GUI so we
should allow using python-meh without pulling in the whole graphical stack.
Related: rhbz#1012509
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 4e29b98..32fd95b 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.9.3
More information about the anaconda-patches
mailing list