From 2e2402dc8ad3cb43722aeabf3fce56addba3230463bea59f89e974ea1eccfcd3 Mon Sep 17 00:00:00 2001 From: Paolo Stivanin Date: Sat, 4 Jan 2025 13:48:53 +0000 Subject: [PATCH] fix spec OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/peazip?expand=0&rev=140 --- peazip.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/peazip.spec b/peazip.spec index 551266b..8ffc6ff 100644 --- a/peazip.spec +++ b/peazip.spec @@ -59,9 +59,6 @@ BuildRequires: p7zip Requires: p7zip %endif Requires: upx -%if 0%{?suse_version} < 1500 -BuildRequires: update-desktop-files -%endif Suggests: arc Suggests: brotli Suggests: zpaq @@ -79,7 +76,7 @@ create self-extracting archives, split/join files, supports strong encryption wi has an encrypted password manager, secure deletion, can find duplicate files, calculate hashes, and export job definition as a script. -%if 0%{?suse_version} < 1590 +%if 0%{?suse_version} < 1690 %package kf5 Summary: KF5 servicemenu for peazip Group: Productivity/Archiving/Compression @@ -168,7 +165,7 @@ cp %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/peaz rm %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/peazip.png chmod +x %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/Nautilus-scripts/Archiving/PeaZip/* -%if 0%{?suse_version} < 1590 +%if 0%{?suse_version} < 1690 pushd %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/KDE-servicemenus/KDE5-dolphin/ mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus install -m644 *.desktop %{buildroot}%{_kf5_servicesdir}/ServiceMenus @@ -178,6 +175,8 @@ mkdir -p %{buildroot}%{_datadir}/kio/servicemenus install -m644 *.desktop %{buildroot}%{_datadir}/kio/servicemenus/ %endif popd +# Remove hard linked png +rm %{buildroot}%{_peazipinstalldir}/res/share/icons/peazip.png find %{buildroot} -type f -size 0 -delete @@ -192,7 +191,7 @@ find %{buildroot} -type f -size 0 -delete %{_datadir}/applications/peazip.desktop %{_datadir}/pixmaps/peazip.png -%if 0%{?suse_version} < 1590 +%if 0%{?suse_version} < 1690 %files kf5 %dir %{_kf5_servicesdir}/ServiceMenus %{_kf5_servicesdir}/ServiceMenus/*.desktop