SHA256
1
0
forked from pool/breeze

Plasma 5.20.1(.1), not build tested as OBS appears to have some issues.

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze?expand=0&rev=310
This commit is contained in:
Christophe Giboudeaux 2020-10-21 06:32:17 +00:00 committed by Git OBS Bridge
parent dd870fbd05
commit eac1739220
7 changed files with 29 additions and 55 deletions

View File

@ -1,34 +0,0 @@
From 3f1f58950971791b8deaa7fc63187926aa5dd7b9 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Wed, 14 Oct 2020 11:00:33 +0200
Subject: [PATCH] generate_wallpaper_sizes.py: Properly compress wallpapers
The current options are quite bad and result in files which are unnessarily
big, even bigger than the original file. The Pillow documentation says:
> Values above 95 should be avoided; 100 disables portions of the JPEG
> compression algorithm, and results in large files with hardly any gain
> in image quality.
"100" is not a valid value for the subsamping parameter either.
This change actually enables proper compression with subsampling and also
enables optimization of internal settings.
Result: From 34MiB down to 12MiB with no noticable difference.
---
wallpapers/generate_wallpaper_sizes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wallpapers/generate_wallpaper_sizes.py b/wallpapers/generate_wallpaper_sizes.py
index b5f997b2..79298c7b 100644
--- a/wallpapers/generate_wallpaper_sizes.py
+++ b/wallpapers/generate_wallpaper_sizes.py
@@ -43,4 +43,4 @@ for orientation in ('horizontal', 'vertical'):
else: box = None
resized_image = image.resize((width, height), Image.LANCZOS, box)
resized_image.save(base_dir / f'{width}x{height}{extension}',
- quality=100, subsampling=100)
+ quality=90, optimize=True, subsampling=1)
--
2.25.1

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f360c5803c434b8ce771232b030779d8c92b3bcb5b7c940f3524d6e9afb05db1
size 38490700

View File

@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELR1bBYg1d4fenuIl7JTRj38FmX4FAl9/OLcACgkQ7JTRj38F
mX4dZAf+P8fzQd5mFDeecoYkNyJRDd/+jiLGsyb206rbGaOOlJasMhUeVYz0WpO4
x+Dwz6xweE8lAKrfBvIUkEKO/GQmN+LBDXzLD3GIWTIcc5aLhT+mxo2nDotPGC//
cNao/wD40308xTsEU2UuzQeCV5HEqQDuGAowaYibrgPTb5qWbfhC36MvsEN+iOF2
p7nFULOPpIIczis3Cw7a0fLyIKje1cHEYPnR6E/J0u1PxpkleoD5KWLXthOmpTuE
BYLJgwWmxRHXg+SdZTTKQ+IP60xv2bV8ya5fLEIpVttiKWVWUGYsDqzN0JG2Uujy
sf0Iwn16U4+NGg4j7WxVZRzLtlp2pg==
=urT9
-----END PGP SIGNATURE-----

3
breeze-5.20.1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14e6e973f9e5ced3a690bf4a570399acec70ed3db23a8d1ef79e1920ff129c6b
size 15687172

11
breeze-5.20.1.tar.xz.sig Normal file
View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELR1bBYg1d4fenuIl7JTRj38FmX4FAl+OzPwACgkQ7JTRj38F
mX5/SQf9H+7V4D3ZcHdpuCWq/gyRq61U62qD9Fo86QZteDa3Tw9WVXfKFLLjE30h
0zfV0+3tfImFahGCDEogmcuWLiXgPqPuyik4CtIbvlAGrrP8yOhiiRnq+nKv9SxI
Ss9Zs+O9L4GrKe9tJQnJhV3eUZ1nmD9XKuP9WwyOkarkztcljzo/CEXXXPPGFEWb
Y5ETas3XsfvQGKrRL0k8lJRdv8g2xAFb6fDgeolNikb87klOcv4dXpskDUlYHKYD
vArPf8wZrpE/q+885gm0RmXterALFf8Fj5aL60hnxuEO5UJPhbQpSFiIz5I313c8
uKrjNNZKHyyi7HyoHngsbhdJLfJiJA==
=6IdO
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Tue Oct 20 14:30:31 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.20.1
* New bugfix release
* For more details please see:
* https://kde.org/announcements/plasma-5.20.1
- Changes since 5.20.0:
* Regenerate wallpaper sizes
* generate_wallpaper_sizes.py: Properly compress wallpapers
* Fix for occasional background glitches behind transparent Menus, especially when hovering over menu elements.
- Drop patches, now upstream:
* 0001-generate_wallpaper_sizes.py-Properly-compress-wallpa.patch
-------------------------------------------------------------------
Wed Oct 14 09:15:43 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>

View File

@ -22,7 +22,7 @@
%{!?_plasma5_version: %define _plasma5_version %(echo %{_plasma5_bugfix} | awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: breeze
Version: 5.20.0
Version: 5.20.1
Release: 0
Summary: Plasma Desktop artwork, styles and assets
License: GPL-2.0-or-later
@ -33,16 +33,12 @@ Source: breeze-%{version}.tar.xz
Source1: breeze-%{version}.tar.xz.sig
Source2: plasma.keyring
%endif
# PATCH-FIX-UPSTREAM
Patch1: 0001-generate_wallpaper_sizes.py-Properly-compress-wallpa.patch
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules >= 0.0.13
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: kf5-filesystem
BuildRequires: pkgconfig
# To regenerate the images for Patch1
BuildRequires: python3-Pillow
# Needed for Plasma/LookAndFeel service type declaration (kde#367923)
BuildRequires: plasma-framework
BuildRequires: cmake(KDecoration2) >= %{_plasma5_version}
@ -119,8 +115,6 @@ Library containing support code for the Breeze Qt5 style.
%autosetup -p1
%build
# Apply Patch1
python3 wallpapers/generate_wallpaper_sizes.py
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%cmake_build