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