de8405
%global libreportver 2.0.18-1
de8405
de8405
Summary:  A python library for handling exceptions
de8405
Name: python-meh
de8405
Url: https://github.com/rhinstaller/python-meh
de8405
Version: 0.47.2
de8405
Release: 1%{?dist}
de8405
# This is a Red Hat maintained package which is specific to
de8405
# our distribution.  Thus the source is only available from
de8405
# within this srpm.
de8405
# This tarball was created from upstream git:
de8405
#   git clone https://github.com/rhinstaller/python-meh
de8405
#   cd python-meh && make archive
de8405
Source0: https://github.com/rhinstaller/python-meh/archive/%{name}-%{version}.tar.gz
de8405
de8405
License: GPLv2+
de8405
BuildArch: noarch
de8405
BuildRequires: gettext
de8405
BuildRequires: intltool
de8405
BuildRequires: libreport-gtk >= %{libreportver}
de8405
BuildRequires: libreport-cli >= %{libreportver}
de8405
de8405
BuildRequires: python3-devel
de8405
BuildRequires: python3-setuptools
de8405
BuildRequires: python3-dbus
de8405
BuildRequires: python3-libreport >= %{libreportver}
de8405
de8405
%global _description\
de8405
The python-meh package is a python library for handling, saving, and reporting \
de8405
exceptions.
de8405
de8405
%description %_description
de8405
de8405
%package -n python3-meh
de8405
Summary:  A python 3 library for handling exceptions
de8405
%{?python_provide:%python_provide python3-meh}
de8405
Obsoletes: python-meh < 0.46-1
de8405
Obsoletes: python2-meh < 0.46-1
de8405
Requires: %{__python3}
de8405
Requires: python3-dbus
de8405
Requires: python3-rpm
de8405
Requires: libreport-cli >= %{libreportver}
de8405
Requires: python3-libreport >= %{libreportver}
de8405
de8405
%description -n python3-meh
de8405
The python3-meh package is a python 3 library for handling, saving, and reporting
de8405
exceptions.
de8405
de8405
%package -n python3-meh-gui
de8405
Summary: Graphical user interface for the python3-meh library
de8405
%{?python_provide:%python_provide python3-meh-gui}
de8405
Obsoletes: python-meh-gui < 0.46-1
de8405
Obsoletes: python2-meh-gui < 0.46-1
de8405
Requires: python3-meh = %{version}-%{release}
de8405
Requires: python3-gobject, gtk3
de8405
Requires: libreport-gtk >= %{libreportver}
de8405
de8405
%description -n python3-meh-gui
de8405
The python3-meh-gui package provides a GUI for the python3-meh library.
de8405
de8405
%prep
de8405
%setup -q
de8405
de8405
%build
de8405
make
de8405
de8405
%check
de8405
make test
de8405
de8405
%install
de8405
make DESTDIR=%{buildroot} install
de8405
de8405
%find_lang %{name}
de8405
de8405
%files -n python3-meh -f %{name}.lang
de8405
%doc ChangeLog COPYING
de8405
%{python3_sitelib}/*
de8405
%exclude %{python3_sitelib}/meh/ui/gui.py*
de8405
%exclude %{python3_sitelib}/meh/ui/__pycache__/gui.*
de8405
de8405
%files -n python3-meh-gui
de8405
%{python3_sitelib}/meh/ui/gui.py*
de8405
%{python3_sitelib}/meh/ui/__pycache__/gui.*
de8405
%{_datadir}/python-meh
de8405
de8405
%changelog
de8405
* Mon Dec 10 2018 Martin Kolman <mkolman@redhat.com> - 0.47.2-1
de8405
- Require the Python interpreter directly instead of using the package name (torsava)
de8405
  Related: rhbz#1619153
de8405
de8405
* Mon Dec 10 2018 Martin Kolman <mkolman@redhat.com> - 0.47.1-1
de8405
- update translations (mkolman)
de8405
  Resolves: rhbz#1608346
de8405
de8405
* Mon Jul 23 2018 Martin Kolman <mkolman@redhat.com> - 0.47-1
de8405
- Make sure gettext returns strings not bytes (mkolman)
de8405
- Spec: Move TUI back to main package (awilliam)
de8405
de8405
* Wed Feb 14 2018 Adam Williamson <awilliam@redhat.com> - 0.46-2
de8405
- Move TUI back to main package (inadvertently moved to -gui in 0.46-1)
de8405
de8405
* Mon Feb 12 2018 Martin Kolman <mkolman@redhat.com> - 0.46-1
de8405
- Drop Python 2 support (mkolman)
de8405
de8405
* Tue May 23 2017 Martin Kolman <mkolman@redhat.com> - 0.45-1
de8405
- update translations (mkolman)
de8405
de8405
* Fri Feb 19 2016 Martin Kolman <mkolman@redhat.com> - 0.44-1
de8405
- Some rpmlint fixes (mkolman)
de8405
- Remove the removal of the eintr checker, which has been removed (dshea)
de8405
de8405
* Mon Oct 05 2015 Martin Kolman <mkolman@redhat.com> - 0.43-1
de8405
- Set translations domain for glade files (vtrefny)
de8405
de8405
* Tue Sep 29 2015 Martin Kolman <mkolman@redhat.com> - 0.42-1
de8405
- Add tests and ChangeLog to MANIFEST.in (vtrefny)
de8405
- Fix clicking on buttons on error pop-up doesn't work (#1250942) (vtrefny)
de8405
- Add Makefile to MANIFEST.in (vtrefny)
de8405
- Add archive target to Makefile (vtrefny)
de8405
- Add .gitignore (vtrefny)
de8405
de8405
* Wed Sep 16 2015 Martin Kolman <mkolman@redhat.com> - 0.41-1
de8405
- Make sure the Meh window has focus even if a dialog is displayed (mkolman)
de8405
- Run pylint as part of "make ci". (clumens)
de8405
- Add a new makefile target that does everything needed for jenkins. (clumens)
de8405
- Fix the other pylint-discovered errors. (clumens)
de8405
- Use isinstance instead of type. (clumens)
de8405
- Fix all the places we're redefining something. (clumens)
de8405
- Don't use [] as the default argument in a method. (clumens)
de8405
- Take care of exception-related pylint messages. (clumens)
de8405
- Get rid of all the unused variable warnings. (clumens)
de8405
- Get rid of all unused and wildcard imports. (clumens)
de8405
- Add pocketlint support to python-meh. (clumens)
de8405
- Use gi.require_version for Gtk import (vtrefny)
de8405
de8405
* Tue Apr 28 2015 Martin Kolman <mkolman@redhat.com> - 0.40-1
de8405
- Make sure the date in RPM changelog is always in English (mkolman)
de8405
- Update upstream URL (mkolman)
de8405
de8405
* Wed Apr 01 2015 Martin Kolman <mkolman@redhat.com> - 0.39-1
de8405
- Handle LANG=C (mkolman)
de8405
de8405
* Tue Mar 31 2015 Martin Kolman <mkolman@redhat.com> - 0.38-1
de8405
- Switch to Zanata for translations (mkolman)
de8405
- Run both Python 2 and Python 3 tests for "make test" (mkolman)
de8405
- Python 3 compatibility fixes for the Unicode test (mkolman)
de8405
- Make it possible to specify file open mode (mkolman)
de8405
- Add missing six dependency (mkolman)
de8405
- Fix date in changelog (mkolman)
de8405
de8405
* Fri Mar 27 2015 Martin Kolman <mkolman@redhat.com> - 0.37-1
de8405
- Fix dumping file attachments in Python 3 (vtrefny)
de8405
- meh has not required openssh-clients since 2009 (awilliam)
de8405
de8405
* Thu Mar 05 2015 Martin Kolman <mkolman@redhat.com> - 0.36-1
de8405
- Package's epoch returned by RPM is an integer (#1199263) (vpodzime)
de8405
de8405
* Tue Feb 17 2015 Martin Kolman <mkolman@redhat.com> - 0.35-1
de8405
- Add option to remove the 'Debug' option/button for mainExceptionWindow (vtrefny)
de8405
de8405
* Tue Dec 09 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.34-1
de8405
- Encode str/unicode object before hashing it (vpodzime)
de8405
- Use dict.items() instead of dict.iteritems() (vpodzime)
de8405
- Add one more flag to test (for Python3) (vpodzime)
de8405
- Make sure we work with strings when we think we do (vpodzime)
de8405
de8405
* Fri Dec 05 2014 Vratislav Podzimek <vpodzime@redhat.com> - 0.33-1
de8405
- Make sure fresh translations are always fetched (vpodzime)
de8405
- Add pieces needed to build the python3- subpackage (#985294) (mhroncok)
de8405
- Remove yum from requires and fix setuptools requires (mhroncok)
de8405
- raw_input is replaced by input in Python3 (vpodzime)
de8405
- Raise exception in a Python3 compatible way (mhroncok)
de8405
- Remove the --disable-overwrite parameter for the Transifex client (mkolman)
de8405
- Use /usr/bin/python2 in scripts (mkolman)
de8405
- Add example code using python-meh (vpodzime)
de8405
de8405
* Mon Apr 28 2014 Martin Kolman <mkolman@redhat.com> - 0.32-1
de8405
- Translation update
de8405
de8405
* Fri Mar 21 2014 Martin Kolman <mkolman@redhat.com> - 0.31-1
de8405
- Translation update
de8405
de8405
* Wed Dec 18 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.30-1
de8405
- Exclude compiled versions of gui.py from the non-gui package (dshea)
de8405
- Skip callbacks providing no information (vpodzime)
de8405
de8405
* Wed Nov 20 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.29-1
de8405
- Split GUI out into a separate package (vpodzime)
de8405
- Create archives in one Makefile target and reuse it (vpodzime)
de8405
de8405
* Tue Nov 05 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.28-1
de8405
- Introduce support for Python 3 while keeping Python 2 working (miro)
de8405
- Sync spec with downstream (vpodzime)
de8405
de8405
* Wed Oct 09 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.27-1
de8405
- Use join method instead of the joinfields function
de8405
- Translate the hints on how to quit debugger and shell
de8405
- Add a way to run shell when exception appears
de8405
- Get rid of constants that are no longer used anywhere
de8405
- Filter local variables in a nicer way and fix docstring
de8405
de8405
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
de8405
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
de8405
de8405
* Tue Jul 23 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.26-1
de8405
- Output binary data correctly as hexa strings (#986515) (vpodzime)
de8405
- Add newline before dumping callbacks' outputs (vpodzime)
de8405
de8405
* Tue Jun 18 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.25-1
de8405
- Add and use the safe_string module and the SafeStr class (vpodzime)
de8405
- Give translators hint about the cryptic strings (vpodzime)
de8405
de8405
* Thu May 02 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.24-1
de8405
- Epoch of the package from RPM db can be None (#957789) (vpodzime)
de8405
de8405
* Wed Apr 17 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.23-1
de8405
- Use Sphinx syntax for docstrings (vpodzime)
de8405
- Allow a change of the I/O functions (vpodzime)
de8405
- Reword the 'Debug' button warning (#948256) (vpodzime)
de8405
de8405
* Thu Apr 04 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.22-1
de8405
- Some more stuff for ABRT/libreport (#929181) (vpodzime)
de8405
- Tell ABRT we are reporting a Python excetion (vpodzime)
de8405
- Use named tuples instead of our magic tuples (vpodzime)
de8405
de8405
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
de8405
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
de8405
de8405
* Mon Jan 21 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.21-1
de8405
- New purely textual text interface (vpodzime)
de8405
- Add dumb enableNetwork implementation to GraphicalIntf (vpodzime)
de8405
- Destroy main window after running it (vpodzime)
de8405
- Get rid of the accountManager and use new libreport API (vpodzime)
de8405
- Add a way to override previously registered callback (vpodzime)
de8405
- Allow callbacks marked as attachment only (vpodzime)
de8405
- Add support for callbacks providing additional data (vpodzime)
de8405
de8405
* Tue Dec 11 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.20-1
de8405
- Handle non-ascii dict keys and values correctly (#883641) (vpodzime)
de8405
de8405
* Wed Nov 14 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.19-1
de8405
- Add test for handling unicode strings and files (vpodzime)
de8405
- Read files as UTF-8 and ignore errors (#874250) (vpodzime)
de8405
- Add check section to the spec file (vpodzime)
de8405
- Fix tests (vpodzime)
de8405
de8405
* Thu Oct 25 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.18-1
de8405
- Handle tracebacks with no stack (#866441) (vpodzime)
de8405
- Parse component name correctly (#866526) (vpodzime)
de8405
- Spelling corrections (#865993) (vpodzime)
de8405
de8405
* Tue Oct 09 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.17-1
de8405
- Handle unicode strings correctly (#854959) (vpodzime)
de8405
de8405
* Tue Sep 11 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.16-1
de8405
- Do not overwrite process information with files having the same basename (vpodzime)
de8405
- Encode dump as utf-8 before writing to file (#854959) (vpodzime)
de8405
de8405
* Mon Aug 20 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.15-1
de8405
- Add main_window property to the MainExceptionWindow (vpodzime)
de8405
- Don't try to dump objects without __dict__ (vpodzime)
de8405
- Change require from rpm to rpm-python (vpodzime)
de8405
de8405
* Fri Aug 03 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.14-1
de8405
- Use just a basename of the attached file as the item name (vpodzime)
de8405
- Set the type hint for the mainExceptionWindow to Dialog (vpodzime)
de8405
- Store and then write out the string representation of the traceback and object dump (vpodzime)
de8405
de8405
* Fri Jul 27 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.13-1
de8405
- Add files specified in the Config object as attachments to bugreports (vpodzime)
de8405
- Display hint how to quit the debugger (vpodzime)
de8405
- Do not kill the process when 'continue' is used in pdb (vpodzime)
de8405
- Port to Gtk3 and the new design (vpodzime)
de8405
- Remove the rc attribute and getrc methods (vpodzime)
de8405
- Fix 'all' and 'install' Makefile targets (vpodzime)
de8405
- Migrate l10n to Transifex (vpodzime)
de8405
de8405
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
de8405
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
de8405
de8405
* Tue Dec 20 2011 Vratislav Podzimek <vpodzime@redhat.com> 0.12
de8405
- Use new libreport API to get more information to bugzilla (vpodzime).
de8405
- Adapt to the new API of libreport (vpodzime).
de8405
- Move "import rpm" to where it's needed to avoid nameserver problems (clumens).
de8405
  Resolves: rhbz#749330
de8405
- Change dependency to libreport-* (mtoman).
de8405
  Resolves: rhbz#730924
de8405
- Add abrt-like information to bug reports (vpodzime).
de8405
  Resolves: rhbz#728871
de8405
- Propagate the screen attr when using text mode (jmoskovc).
de8405
de8405
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
de8405
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
de8405
de8405
* Tue Jan 25 2011 Chris Lumens <clumens@redhat.com> - 0.11-1
de8405
- Update the spec file URL to something valid (#670601). (clumens)
de8405
- Don't use _D for Debug, since that's already used by the expander (#640929). (clumens)
de8405
- Translation updates.
de8405
de8405
* Tue Jun 22 2010 Chris Lumens <clumens@redhat.com> 0.10-1
de8405
- Treat classes like simple types, too. (clumens)
de8405
de8405
* Thu Jun 10 2010 Chris Lumens <clumens@redhat.com> - 0.9-1
de8405
- Remove the requirement on python-bugzilla (#602794). (clumens)
de8405
- Rename ba.po -> bs.po (#583055). (clumens)
de8405
- Translation updates.
de8405
de8405
* Thu Mar 04 2010 Chris Lumens <clumens@redhat.com> - 0.8-1
de8405
- And add a requirement for report as well. (clumens)
de8405
- filer.py is now completely taken over by meh. (clumens)
de8405
- Everything from savers.py has moved into report. (clumens)
de8405
- Remove unused UI code now that report handles all this for me. (clumens)
de8405
- Switch ExceptionHandler to use report (#562656). (clumens)
de8405
- Don't allow an exception when writing out an attribute stop the whole dump. (clumens)
de8405
- Credit where credit is due. (clumens)
de8405
de8405
* Tue Nov 03 2009 Chris Lumens <clumens@redhat.com> - 0.7-1
de8405
- Add a test case framework.
de8405
- Move src -> meh for ease of test case writing.
de8405
- Another attempt at making the attrSkipList work (#532612, #532737).
de8405
de8405
* Thu Oct 08 2009 Chris Lumens <clumens@redhat.com> - 0.6-1
de8405
- Make idSkipList work again.
de8405
- Support dumping objects derived from Python's object.
de8405
- Use the right method to set text on a snack.Entry (#526884).
de8405
de8405
* Tue Sep 29 2009 Chris Lumens <clumens@redhat.com> - 0.5-1
de8405
- Always compare version numbers as strings (#526188).
de8405
de8405
* Fri Sep 25 2009 Chris Lumens <clumens@redhat.com> - 0.4-1
de8405
- Add a default description to bug reports.
de8405
- Handle the user pressing Escape by continuing to show the dialog.
de8405
- Lots more translation updates.
de8405
de8405
* Thu Sep 10 2009 Chris Lumens <clumens@redhat.com> - 0.3-1
de8405
- Pull in lots of new translations (#522410).
de8405
de8405
* Wed Aug 19 2009 Chris Lumens <clumens@redhat.com> - 0.2-1
de8405
- Add a title to the main exception dialog so it looks right in anaconda.
de8405
- Don't include an extra '/' in the displayed bug URL (#517515).
de8405
- Now that there's .po files, package them.
de8405
- Use the new exception icon (#517164).
de8405
de8405
* Tue Jul 28 2009 Chris Lumens <clumens@redhat.com> - 0.1-1
de8405
- Initial package.