6d97ce
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6d97ce
6d97ce
%define libreportver 2.0.18-1
6d97ce
6d97ce
Summary:  A python library for handling exceptions
6d97ce
Name: python-meh
6d97ce
Url: http://git.fedorahosted.org/git/?p=python-meh.git
95827c
Version: 0.25.3
0251bc
Release: 1%{?dist}
6d97ce
# This is a Red Hat maintained package which is specific to
6d97ce
# our distribution.  Thus the source is only available from
6d97ce
# within this srpm.
6d97ce
# This tarball was created from upstream git:
6d97ce
#   git clone git://git.fedoraproject.org/git/python-meh.git
6d97ce
#   cd python-meh && make archive
6d97ce
Source0: %{name}-%{version}.tar.gz
6d97ce
6d97ce
License: GPLv2+
6d97ce
Group: System Environment/Libraries
6d97ce
BuildArch: noarch
6d97ce
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6d97ce
BuildRequires: python-devel, gettext, python-setuptools-devel, intltool
6d97ce
BuildRequires: dbus-python, libreport-gtk >= %{libreportver}, libreport-cli >= %{libreportver}
0251bc
Requires: python, dbus-python
6d97ce
Requires: openssh-clients, rpm-python, yum
0251bc
Requires: libreport-cli >= %{libreportver}
6d97ce
6d97ce
%description
6d97ce
The python-meh package is a python library for handling, saving, and reporting
6d97ce
exceptions.
6d97ce
0251bc
%package gui
0251bc
Summary: Graphical user interface for the python-meh library
0251bc
Requires: python-meh = %{version}-%{release}
0251bc
Requires: pygobject3, gtk3
0251bc
Requires: libreport-gtk >= %{libreportver}
0251bc
0251bc
%description gui
0251bc
The python-meh-gui package provides a GUI for the python-meh library.
0251bc
6d97ce
%prep
6d97ce
%setup -q
6d97ce
6d97ce
%build
6d97ce
make
6d97ce
6d97ce
%check
6d97ce
make test
6d97ce
6d97ce
%install
6d97ce
rm -rf %{buildroot}
6d97ce
make DESTDIR=%{buildroot} install
6d97ce
%find_lang %{name}
6d97ce
6d97ce
%clean
6d97ce
rm -rf %{buildroot}
6d97ce
6d97ce
%files -f %{name}.lang
6d97ce
%defattr(-,root,root,-)
6d97ce
%doc ChangeLog COPYING
6d97ce
%{python_sitelib}/*
0251bc
%exclude %{python_sitelib}/meh/ui/gui.py*
0251bc
0251bc
%files gui
0251bc
%{python_sitelib}/meh/ui/gui.py*
6d97ce
%{_datadir}/python-meh
6d97ce
6d97ce
%changelog
95827c
* Mon May 20 2019 Martin Kolman <mkolman@redhat.com> - 0.25.3-1
95827c
- Update translations
95827c
  Resolves: rhbz#1688260
95827c
- Switch from Transifex to Zanata for pulling translations (mkolman)
95827c
  Related: rhbz#1688260
95827c
0251bc
* Thu Sep 11 2014 Martin Kolman <mkolman@redhat.com> - 0.25.2-1
0251bc
- Exclude compiled versions of gui.py from the non-gui package (dshea)
0251bc
  Resolves: rhbz#1140623
0251bc
0251bc
* Thu Sep 04 2014 Martin Kolman <mkolman@redhat.com> - 0.25.1-1
0251bc
- Split GUI out into a separate package (#1136795) (vpodzime)
0251bc
  Resolves: rhbz#1136795
0251bc
b0d1a9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.25-2
b0d1a9
- Mass rebuild 2013-12-27
b0d1a9
6d97ce
* Tue Jun 18 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.25-1
6d97ce
- Add and use the safe_string module and the SafeStr class (vpodzime)
6d97ce
- Give translators hint about the cryptic strings (vpodzime)
6d97ce
6d97ce
* Thu May 02 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.24-1
6d97ce
- Epoch of the package from RPM db can be None (#957789) (vpodzime)
6d97ce
6d97ce
* Wed Apr 17 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.23-1
6d97ce
- Use Sphinx syntax for docstrings (vpodzime)
6d97ce
- Allow a change of the I/O functions (vpodzime)
6d97ce
- Reword the 'Debug' button warning (#948256) (vpodzime)
6d97ce
6d97ce
* Thu Apr 04 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.22-1
6d97ce
- Some more stuff for ABRT/libreport (#929181) (vpodzime)
6d97ce
- Tell ABRT we are reporting a Python excetion (vpodzime)
6d97ce
- Use named tuples instead of our magic tuples (vpodzime)
6d97ce
6d97ce
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
6d97ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6d97ce
6d97ce
* Mon Jan 21 2013 Vratislav Podzimek <vpodzime@redhat.com> - 0.21-1
6d97ce
- New purely textual text interface (vpodzime)
6d97ce
- Add dumb enableNetwork implementation to GraphicalIntf (vpodzime)
6d97ce
- Destroy main window after running it (vpodzime)
6d97ce
- Get rid of the accountManager and use new libreport API (vpodzime)
6d97ce
- Add a way to override previously registered callback (vpodzime)
6d97ce
- Allow callbacks marked as attachment only (vpodzime)
6d97ce
- Add support for callbacks providing additional data (vpodzime)
6d97ce
6d97ce
* Tue Dec 11 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.20-1
6d97ce
- Handle non-ascii dict keys and values correctly (#883641) (vpodzime)
6d97ce
6d97ce
* Wed Nov 14 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.19-1
6d97ce
- Add test for handling unicode strings and files (vpodzime)
6d97ce
- Read files as UTF-8 and ignore errors (#874250) (vpodzime)
6d97ce
- Add %check section to the spec file (vpodzime)
6d97ce
- Fix tests (vpodzime)
6d97ce
6d97ce
* Thu Oct 25 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.18-1
6d97ce
- Handle tracebacks with no stack (#866441) (vpodzime)
6d97ce
- Parse component name correctly (#866526) (vpodzime)
6d97ce
- Spelling corrections (#865993) (vpodzime)
6d97ce
6d97ce
* Tue Oct 09 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.17-1
6d97ce
- Handle unicode strings correctly (#854959) (vpodzime)
6d97ce
6d97ce
* Tue Sep 11 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.16-1
6d97ce
- Do not overwrite process information with files having the same basename (vpodzime)
6d97ce
- Encode dump as utf-8 before writing to file (#854959) (vpodzime)
6d97ce
6d97ce
* Mon Aug 20 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.15-1
6d97ce
- Add main_window property to the MainExceptionWindow (vpodzime)
6d97ce
- Don't try to dump objects without __dict__ (vpodzime)
6d97ce
- Change require from rpm to rpm-python (vpodzime)
6d97ce
6d97ce
* Fri Aug 03 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.14-1
6d97ce
- Use just a basename of the attached file as the item name (vpodzime)
6d97ce
- Set the type hint for the mainExceptionWindow to Dialog (vpodzime)
6d97ce
- Store and then write out the string representation of the traceback and object dump (vpodzime)
6d97ce
6d97ce
* Wed Jul 27 2012 Vratislav Podzimek <vpodzime@redhat.com> - 0.13-1
6d97ce
- Add files specified in the Config object as attachments to bugreports (vpodzime)
6d97ce
- Display hint how to quit the debugger (vpodzime)
6d97ce
- Do not kill the process when 'continue' is used in pdb (vpodzime)
6d97ce
- Port to Gtk3 and the new design (vpodzime)
6d97ce
- Remove the rc attribute and getrc methods (vpodzime)
6d97ce
- Fix 'all' and 'install' Makefile targets (vpodzime)
6d97ce
- Migrate l10n to Transifex (vpodzime)
6d97ce
6d97ce
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
6d97ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6d97ce
6d97ce
* Tue Dec 20 2011 Vratislav Podzimek <vpodzime@redhat.com> 0.12
6d97ce
- Use new libreport API to get more information to bugzilla (vpodzime).
6d97ce
- Adapt to the new API of libreport (vpodzime).
6d97ce
- Move "import rpm" to where it's needed to avoid nameserver problems (clumens).
6d97ce
  Resolves: rhbz#749330
6d97ce
- Change dependency to libreport-* (mtoman).
6d97ce
  Resolves: rhbz#730924
6d97ce
- Add abrt-like information to bug reports (vpodzime).
6d97ce
  Resolves: rhbz#728871
6d97ce
- Propagate the screen attr when using text mode (jmoskovc).
6d97ce
6d97ce
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
6d97ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6d97ce
6d97ce
* Tue Jan 25 2011 Chris Lumens <clumens@redhat.com> - 0.11-1
6d97ce
- Update the spec file URL to something valid (#670601). (clumens)
6d97ce
- Don't use _D for Debug, since that's already used by the expander (#640929). (clumens)
6d97ce
- Translation updates.
6d97ce
6d97ce
* Tue Jun 22 2010 Chris Lumens <clumens@redhat.com> 0.10-1
6d97ce
- Treat classes like simple types, too. (clumens)
6d97ce
6d97ce
* Thu Jun 10 2010 Chris Lumens <clumens@redhat.com> - 0.9-1
6d97ce
- Remove the requirement on python-bugzilla (#602794). (clumens)
6d97ce
- Rename ba.po -> bs.po (#583055). (clumens)
6d97ce
- Translation updates.
6d97ce
6d97ce
* Thu Mar 04 2010 Chris Lumens <clumens@redhat.com> - 0.8-1
6d97ce
- And add a requirement for report as well. (clumens)
6d97ce
- filer.py is now completely taken over by meh. (clumens)
6d97ce
- Everything from savers.py has moved into report. (clumens)
6d97ce
- Remove unused UI code now that report handles all this for me. (clumens)
6d97ce
- Switch ExceptionHandler to use report (#562656). (clumens)
6d97ce
- Don't allow an exception when writing out an attribute stop the whole dump. (clumens)
6d97ce
- Credit where credit is due. (clumens)
6d97ce
6d97ce
* Tue Nov 03 2009 Chris Lumens <clumens@redhat.com> - 0.7-1
6d97ce
- Add a test case framework.
6d97ce
- Move src -> meh for ease of test case writing.
6d97ce
- Another attempt at making the attrSkipList work (#532612, #532737).
6d97ce
6d97ce
* Thu Oct 08 2009 Chris Lumens <clumens@redhat.com> - 0.6-1
6d97ce
- Make idSkipList work again.
6d97ce
- Support dumping objects derived from Python's object.
6d97ce
- Use the right method to set text on a snack.Entry (#526884).
6d97ce
6d97ce
* Tue Sep 29 2009 Chris Lumens <clumens@redhat.com> - 0.5-1
6d97ce
- Always compare version numbers as strings (#526188).
6d97ce
6d97ce
* Fri Sep 25 2009 Chris Lumens <clumens@redhat.com> - 0.4-1
6d97ce
- Add a default description to bug reports.
6d97ce
- Handle the user pressing Escape by continuing to show the dialog.
6d97ce
- Lots more translation updates.
6d97ce
6d97ce
* Thu Sep 10 2009 Chris Lumens <clumens@redhat.com> - 0.3-1
6d97ce
- Pull in lots of new translations (#522410).
6d97ce
6d97ce
* Wed Aug 19 2009 Chris Lumens <clumens@redhat.com> - 0.2-1
6d97ce
- Add a title to the main exception dialog so it looks right in anaconda.
6d97ce
- Don't include an extra '/' in the displayed bug URL (#517515).
6d97ce
- Now that there's .po files, package them.
6d97ce
- Use the new exception icon (#517164).
6d97ce
6d97ce
* Tue Jul 28 2009 Chris Lumens <clumens@redhat.com> - 0.1-1
6d97ce
- Initial package.