Hello community, here is the log from the commit of package nfoview for openSUSE:Factory checked in at 2020-03-17 13:10:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nfoview (Old) and /work/SRC/openSUSE:Factory/.nfoview.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nfoview" Tue Mar 17 13:10:17 2020 rev:5 rq:785698 version:1.27 Changes: -------- --- /work/SRC/openSUSE:Factory/nfoview/nfoview.changes 2019-01-25 22:44:31.559142362 +0100 +++ /work/SRC/openSUSE:Factory/.nfoview.new.3160/nfoview.changes 2020-03-17 13:10:25.653811969 +0100 @@ -1,0 +2,17 @@ +Mon Mar 16 15:04:05 UTC 2020 - Bjørn Lie <[email protected]> + +- Update to version 1.27: + * New app icon, as full-color and symbolic SVGs. + * Use the reverse domain name "io.otsaloma.nfoview" for desktop + file, appdata file and icons. +- Changes from version 1.26.1: + * Updated translations. +- Modernize spec, use autosetup and python macros. +- Add fdupes BuildRequires and macro, remove duplicate files. +- Drop -lang Recommends: No longer needed, supplements in place. +- Drop hicolor-icon-theme and update-desktop-files + Requires(post(un)) and macros: No longer needed. +- Add nfoview-fix-css-font-abnormal-weight.patch: Fix CSS error + with the abnormal weight of the Unscii font. + +------------------------------------------------------------------- Old: ---- nfoview-1.26.tar.gz New: ---- nfoview-1.27.tar.gz nfoview-fix-css-font-abnormal-weight.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nfoview.spec ++++++ --- /var/tmp/diff_new_pack.OdulF4/_old 2020-03-17 13:10:26.441812574 +0100 +++ /var/tmp/diff_new_pack.OdulF4/_new 2020-03-17 13:10:26.445812577 +0100 @@ -1,7 +1,7 @@ # # spec file for package nfoview # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,23 +17,22 @@ Name: nfoview -Version: 1.26 +Version: 1.27 Release: 0 Summary: Simple Viewer for NFO Files License: GPL-3.0-or-later Group: Productivity/Text/Utilities -Url: http://otsaloma.io/nfoview/ +URL: https://otsaloma.io/nfoview/ Source: https://github.com/otsaloma/nfoview/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM nfoview-fix-css-font-abnormal-weight.patch -- Fix CSS error with the abnormal weight of the Unscii font +Patch: nfoview-fix-css-font-abnormal-weight.patch + +BuildRequires: fdupes BuildRequires: gettext BuildRequires: hicolor-icon-theme BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: update-desktop-files -Requires(post): hicolor-icon-theme -Requires(post): update-desktop-files -Requires(postun): hicolor-icon-theme -Requires(postun): update-desktop-files -Recommends: %{name}-lang Recommends: terminus-font BuildArch: noarch @@ -46,42 +45,29 @@ %lang_package %prep -%setup -q +%autosetup -p1 %build -python3 setup.py build +%python3_build %install -python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} - -%suse_update_desktop_file -r %{name} Office Viewer - +%python3_install +%suse_update_desktop_file -r io.otsaloma.nfoview Office Viewer +%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{name} %find_lang %{name} -%if 0%{?suse_version} < 1330 -%post -%desktop_database_post -%icon_theme_cache_post - -%postun -%desktop_database_postun -%icon_theme_cache_postun -%endif - %files -%defattr(-,root,root,-) -%doc AUTHORS.md COPYING NEWS.md README.md +%doc AUTHORS.md NEWS.md README.md +%license COPYING %{_bindir}/%{name} %{_datadir}/%{name} -%dir %{_datadir}/metainfo -%{_datadir}/metainfo/%{name}.appdata.xml -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/*/%{name}.* +%{_datadir}/metainfo/io.otsaloma.nfoview.appdata.xml +%{_datadir}/applications/io.otsaloma.nfoview.desktop +%{_datadir}/icons/hicolor/*/apps/io.otsaloma.nfoview*.svg %{_mandir}/man?/* %{python3_sitelib}/%{name} %{python3_sitelib}/*.egg-info %files lang -f %{name}.lang -%defattr(-,root,root) %changelog ++++++ nfoview-1.26.tar.gz -> nfoview-1.27.tar.gz ++++++ ++++ 2121 lines of diff (skipped) ++++++ nfoview-fix-css-font-abnormal-weight.patch ++++++ >From ece624ec76c93c28bfcc47037bed4fc4e232ef4f Mon Sep 17 00:00:00 2001 From: Osmo Salomaa <[email protected]> Date: Fri, 16 Aug 2019 20:32:00 +0300 Subject: [PATCH] Fix CSS error with the abnormal weight of the Unscii font --- TODO.md | 4 ++++ nfoview/util.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index e69de29..c64e371 100644 --- a/TODO.md +++ b/TODO.md @@ -0,0 +1,4 @@ +NFO Viewer 1.27.1/1.28 +====================== + +* [x] Fix CSS error with the abnormal weight of the Unscii font diff --git a/nfoview/util.py b/nfoview/util.py index b29b63b..2cbad3d 100644 --- a/nfoview/util.py +++ b/nfoview/util.py @@ -52,7 +52,9 @@ def apply_style(widget): family=font_desc.get_family().split(",")[0], size=int(round(font_desc.get_size() / Pango.SCALE)), unit=unit, - weight=int(font_desc.get_weight()), + # Round weight to hundreds to work around CSS errors + # with weird weights such as Unscii's 101. + weight=round(font_desc.get_weight(), -2), ) css = css.replace("font-size: 0{unit};".format(unit=unit), "") css = css.replace("font-weight: 0;", "")
