[packages/cantata] - cleanup

qboosh qboosh at pld-linux.org
Wed Oct 28 05:41:20 CET 2026


commit c84784b8a59d2334774748e8eab27820b032a752
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 28 05:41:56 2026 +0100

    - cleanup

 cantata.spec      |  5 -----
 icons_crash.patch | 42 ------------------------------------------
 2 files changed, 47 deletions(-)
---
diff --git a/cantata.spec b/cantata.spec
index 07ea74c..138e1c0 100644
--- a/cantata.spec
+++ b/cantata.spec
@@ -18,7 +18,6 @@ Group:		Applications/Multimedia
 Source0:	https://github.com/CDrummond/cantata/releases/download/v%{version}/%{name}-%{version}.tar.bz2
 # Source0-md5:	e5b79b7112b7005b14af4e57172ba77e
 Patch101:	system-qtiocompressor.patch
-Patch105:	icons_crash.patch
 Patch106:	libdir.patch
 URL:		https://github.com/cdrummond/cantata
 BuildRequires:	Qt5Concurrent-devel >= %{qtver}
@@ -127,7 +126,6 @@ rm -rfv 3rdparty/{qtsingleapplication,qxt}
 sed -i.system-qxt-headers -e 's|^#include "qxt/qxtglobalshortcut.h"|#include <QxtGlobalShortcut>|g' \
 	gui/qxtmediakeys.cpp
 
-#%%patch105 -p1
 %patch -P106 -p1
 
 %build
@@ -177,8 +175,5 @@ rm -rf $RPM_BUILD_ROOT
 %{_iconsdir}/hicolor/*/*/*.svg
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/translations
-#%{_datadir}/%{name}/config
 %{_datadir}/%{name}/icons
-#%{_datadir}/%{name}/mpd
 %{_datadir}/%{name}/scripts
-#%{_datadir}/%{name}/themes
diff --git a/icons_crash.patch b/icons_crash.patch
deleted file mode 100644
index 97f9c69..0000000
--- a/icons_crash.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-avoid/fix crashes in icons.cpp
-diff -up cantata-1.4.1/support/icon.h.icons_crash cantata-1.4.1/support/icon.h
---- cantata-1.4.1/support/icon.h.icons_crash	2014-07-22 13:58:44.000000000 -0500
-+++ cantata-1.4.1/support/icon.h	2014-08-27 10:39:03.457961536 -0500
-@@ -54,7 +54,7 @@ public:
-     static void init(QToolButton *btn, bool setFlat=true);
-     #ifdef ENABLE_KDE_SUPPORT
-     static Icon getMediaIcon(const QString &name) { return Icon(name); }
--    static QString currentTheme() { return KIconLoader::global()->theme()->name(); }
-+    static QString currentTheme() { return (KIconLoader::global()->theme() ? KIconLoader::global()->theme()->name() : QString()); }
-     #else
-     static Icon getMediaIcon(const QString &name);
-     static QString currentTheme() { return QIcon::themeName(); }
---- cantata-1.5.2/widgets/icons.cpp~	2015-12-28 17:02:37.000000000 +0200
-+++ cantata-1.5.2/widgets/icons.cpp	2015-12-28 17:03:13.267039821 +0200
-@@ -370,7 +370,7 @@ Icons::Icons()
-     #endif
- 
-     #ifdef ENABLE_STREAMS
--    streamCategoryIcon=Icon(QLatin1String("oxygen")==Icon::currentTheme().toLower() ? "inode-directory" : "folder-music");
-+    streamCategoryIcon=Icon(QString::compare(QLatin1String("oxygen"),Icon::currentTheme(), Qt::CaseInsensitive)==0 ? "inode-directory" : "folder-music");
-     #endif
- 
-     QString iconFile=QString(CANTATA_SYS_ICONS_DIR+"stream.png");
-@@ -527,7 +527,7 @@
-         #ifdef ENABLE_ONLINE_SERVICES
-         onlineIcon=Icon("applications-internet");
-         #endif
--        if (QLatin1String("gnome")==Icon::currentTheme().toLower()) {
-+        if (QString::compare(QLatin1String("gnome"),Icon::currentTheme(), Qt::CaseInsensitive)==0) {
-             QColor col=QApplication::palette().color(QPalette::Active, QPalette::WindowText);
-             infoSidebarIcon=loadSidebarIcon("info", col, col);
-         } else {
-@@ -597,7 +597,7 @@
-     }
- 
-     #if !defined ENABLE_KDE_SUPPORT && !defined Q_OS_WIN
--    if (QLatin1String("gnome")==Icon::currentTheme().toLower()) {
-+    if (QString::compare(QLatin1String("gnome"),Icon::currentTheme(), Qt::CaseInsensitive)==0) {
-         QColor col=QApplication::palette().color(QPalette::Active, QPalette::WindowText);
-         contextIcon=loadSidebarIcon("info", col, col);
-     } else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cantata.git/commitdiff/c84784b8a59d2334774748e8eab27820b032a752



More information about the pld-cvs-commit mailing list