On Wed, 2014-09-03 at 12:30 +0200, Vratislav Podzimek wrote:
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@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
Looks good to me, ACK!