commit gnome-keysign for openSUSE:Factory
Hello community, here is the log from the commit of package gnome-keysign for openSUSE:Factory checked in at 2018-05-11 09:14:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnome-keysign (Old) and /work/SRC/openSUSE:Factory/.gnome-keysign.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "gnome-keysign" Fri May 11 09:14:01 2018 rev:6 rq:600287 version:0.9.6 Changes: -------- --- /work/SRC/openSUSE:Factory/gnome-keysign/gnome-keysign.changes 2018-01-13 21:48:08.700683146 +0100 +++ /work/SRC/openSUSE:Factory/.gnome-keysign.new/gnome-keysign.changes 2018-05-11 09:14:01.827741945 +0200 @@ -1,0 +2,8 @@ +Mon Apr 9 21:13:16 UTC 2018 - mgorse@suse.com + +- Build for python 3. Adjust Requires, BuildRequires, and files +- Add gnome-keysign-python3-setup.patch: fix UnicodeDecodeError + when processing translations. +- python-monkeysign -> python3-monkeysign. + +------------------------------------------------------------------- New: ---- gnome-keysign-python3-setup.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-keysign.spec ++++++ --- /var/tmp/diff_new_pack.RgEkO0/_old 2018-05-11 09:14:03.399685001 +0200 +++ /var/tmp/diff_new_pack.RgEkO0/_new 2018-05-11 09:14:03.399685001 +0200 @@ -20,31 +20,32 @@ Version: 0.9.6 Release: 0 Summary: GNOME OpenGPG key signing helper -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Productivity/Security Url: https://github.com/GNOME-Keysign/gnome-keysign Source: %{name}-%{version}.tar.xz +Patch0: gnome-keysign-python3-setup.patch BuildRequires: gobject-introspection -BuildRequires: python-Babel -BuildRequires: python-lxml -BuildRequires: python-setuptools +BuildRequires: python3-Babel +BuildRequires: python3-lxml +BuildRequires: python3-setuptools BuildRequires: update-desktop-files %ifarch x86_64 Requires: gstreamer1(element-zbar)()(64bit) %else Requires: gstreamer1(element-zbar) %endif -Requires: dbus-1-python -Requires: python-avahi -Requires: python-cairo -Requires: python-gobject -Requires: python-gobject-Gdk -Requires: python-gpg -Requires: python-pybluez -Requires: python-qrcode -Requires: python-requests -Requires: python-setuptools -Requires: python-twisted +Requires: python3-Twisted +Requires: python3-avahi +Requires: python3-cairo +Requires: python3-dbus-python +Requires: python3-gobject +Requires: python3-gobject-Gdk +Requires: python3-gpg +Requires: python3-pybluez +Requires: python3-qrcode +Requires: python3-requests +Requires: python3-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -54,11 +55,11 @@ Consider either of the aboved mentioned tools when you need a much more mature codebase. -%package -n python-monkeysign +%package -n python3-monkeysign Summary: OpenPGP key exchange for humans Group: Development/Languages/Python -%description -n python-monkeysign +%description -n python3-monkeysign monkeysign is a tool to overhaul the OpenPGP keysigning experience and bring it closer to something that most primates can understand. @@ -72,12 +73,13 @@ %prep %setup -q +%patch0 -p1 %build -python setup.py build +python3 setup.py build %install -python setup.py install -O1 --skip-build --root %{buildroot} +python3 setup.py install -O1 --skip-build --root %{buildroot} %suse_update_desktop_file -r %{name} System Security %files @@ -92,11 +94,11 @@ %dir %{_datadir}/icons/hicolor/scalable %dir %{_datadir}/icons/hicolor/scalable/apps %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg -%{python_sitelib}/keysign/ -%{python_sitelib}/gnome_keysign-*.egg-info/ +%{python3_sitelib}/keysign/ +%{python3_sitelib}/gnome_keysign-*.egg-info/ -%files -n python-monkeysign +%files -n python3-monkeysign %defattr(-,root,root) -%{python_sitelib}/monkeysign/ +%{python3_sitelib}/monkeysign/ %changelog ++++++ gnome-keysign-python3-setup.patch ++++++ diff -ur gnome-keysign-0.9.6.orig/setup.py gnome-keysign-0.9.6/setup.py --- gnome-keysign-0.9.6.orig/setup.py 2017-12-15 08:40:54.000000000 -0600 +++ gnome-keysign-0.9.6/setup.py 2018-03-27 12:04:16.803946822 -0500 @@ -114,7 +114,10 @@ catalogs = {} for pofile in pofiles: - catalog = read_po(open(pofile, 'r')) + if sys.version_info.major > 2: + catalog = read_po(open(pofile, 'r', encoding='utf-8')) + else: + catalog = read_po(open(pofile, 'r')) catalogs[catalog.locale] = catalog logging.info("Found %d strings for %s", len(catalog), catalog.locale) # logging.debug("Strings for %r", catalog, catalog.values())
participants (1)
-
root@hilbert.suse.de