commit 36dbcff36741f15f26265d90750598f927319287 Author: zhuchunyi Date: Wed Nov 6 19:49:31 2019 +0800 update code diff --git a/python-meh-0.47.tar.gz b/python-meh-0.47.tar.gz new file mode 100644 index 0000000..ab94ab6 Binary files /dev/null and b/python-meh-0.47.tar.gz differ diff --git a/python-meh-hide-report-button.patch b/python-meh-hide-report-button.patch new file mode 100644 index 0000000..9b39323 --- /dev/null +++ b/python-meh-hide-report-button.patch @@ -0,0 +1,20 @@ +diff -uNrp a/meh/ui/gui.py b/meh/ui/gui.py +--- a/meh/ui/gui.py 2018-07-23 22:09:30.000000000 +0800 ++++ b/meh/ui/gui.py 2019-09-19 15:14:30.788000000 +0800 +@@ -99,7 +99,7 @@ class MainExceptionWindow(AbstractMainEx + self._response = MAIN_RESPONSE_QUIT + + self._debug_button = builder.get_object("debugButton") +- ++ self._report_button = builder.get_object("reportButton") + allowDebug = kwargs.get("allowDebug", sys.stdout.isatty) + + if allowDebug and not allowDebug(): +@@ -114,6 +114,7 @@ class MainExceptionWindow(AbstractMainEx + + def run(self, *args, **kwargs): + self._main_window.show_all() ++ self._report_button.hide() + # keep our window above dialogs + self._main_window.set_modal(True) + self._main_window.set_keep_above(True) diff --git a/python-meh.spec b/python-meh.spec new file mode 100644 index 0000000..7d5b12f --- /dev/null +++ b/python-meh.spec @@ -0,0 +1,54 @@ +Name: python-meh +Version: 0.47 +Release: 3 +Summary: A python library for handling exceptions +License: GPLv2+ +URL: https://github.com/rhinstaller/%{name} +Source0: https://github.com/rhinstaller/%{name}/archive/%{name}-%{version}.tar.gz +Patch9000: python-meh-hide-report-button.patch +BuildArch: noarch +BuildRequires: gettext intltool libreport-gtk libreport-cli python3-devel +BuildRequires: python3-setuptools python3-dbus python3-libreport + +%description +It is a python library for handling, saving, and reporting exceptions. + +%package -n python3-meh +Summary: A python 3 library for handling exceptions +%{?python_provide:%python_provide python3-meh} +Provides: python3-meh-gui = %{version}-%{release} +Obsoletes: python-meh < 0.46-1 +Obsoletes: python2-meh < 0.46-1 +Obsoletes: python-meh-gui python2-meh-gui python3-meh-gui +Requires: python3 python3-dbus python3-rpm libreport-cli python3-libreport +Requires: python3-gobject gtk3 libreport-gtk +%description -n python3-meh +The library for python 3. + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit + +%build +%make_build + +%check +make test + +%install +%make_install + +%find_lang %{name} + +%files -n python3-meh -f %{name}.lang +%doc ChangeLog +%license COPYING +%{python3_sitelib}/* +%{_datadir}/python-meh + +%changelog +* Sun Oct 20 2019 openEuler Buildteam - 0.47-3 +- Type:NA +- ID:NA +- SUG:NA +- DESC:Package Init +