update code
This commit is contained in:
commit
36dbcff367
BIN
python-meh-0.47.tar.gz
Normal file
BIN
python-meh-0.47.tar.gz
Normal file
Binary file not shown.
20
python-meh-hide-report-button.patch
Normal file
20
python-meh-hide-report-button.patch
Normal file
@ -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)
|
||||
54
python-meh.spec
Normal file
54
python-meh.spec
Normal file
@ -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<buildteam@openeuler.org> - 0.47-3
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:Package Init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user