From a80f903c20bec3e38514325f53a82d210b4c22b1 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Wed, 12 Aug 2026 08:27:31 +0200 Subject: [PATCH] Icone installate via qmake INSTALLS: fix build RPM quando il tar sorgente non include icons/ --- harbour-calibreweb.pro | 7 +++++++ rpm/harbour-calibreweb.spec | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/harbour-calibreweb.pro b/harbour-calibreweb.pro index 1de7d98..eeb01e8 100644 --- a/harbour-calibreweb.pro +++ b/harbour-calibreweb.pro @@ -26,3 +26,10 @@ OTHER_FILES += \ harbour-calibreweb.yaml DISTFILES += $$OTHER_FILES + +# Icone installate via make install (path assoluti = robusti rispetto al tar sorgente) +icons86.path = /usr/share/icons/hicolor/86x86/apps +icons86.files = $$PWD/icons/harbour-calibreweb.png +icons108.path = /usr/share/icons/hicolor/108x108/apps +icons108.files = $$PWD/icons/harbour-calibreweb-108.png +INSTALLS += icons86 icons108 diff --git a/rpm/harbour-calibreweb.spec b/rpm/harbour-calibreweb.spec index 963d778..7d86c0c 100644 --- a/rpm/harbour-calibreweb.spec +++ b/rpm/harbour-calibreweb.spec @@ -32,10 +32,6 @@ make %{?_smp_mflags} make install INSTALL_ROOT=%{buildroot} mkdir -p %{buildroot}%{_datadir}/applications install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop -mkdir -p %{buildroot}%{_datadir}/icons/hicolor/86x86/apps -mkdir -p %{buildroot}%{_datadir}/icons/hicolor/108x108/apps -install -m 0644 icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/86x86/apps/%{name}.png -install -m 0644 icons/%{name}-108.png %{buildroot}%{_datadir}/icons/hicolor/108x108/apps/%{name}-108.png desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop || true %files