fix spec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/peazip?expand=0&rev=140
This commit is contained in:
parent
34f5341c88
commit
2e2402dc8a
11
peazip.spec
11
peazip.spec
@ -59,9 +59,6 @@ BuildRequires: p7zip
|
|||||||
Requires: p7zip
|
Requires: p7zip
|
||||||
%endif
|
%endif
|
||||||
Requires: upx
|
Requires: upx
|
||||||
%if 0%{?suse_version} < 1500
|
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
%endif
|
|
||||||
Suggests: arc
|
Suggests: arc
|
||||||
Suggests: brotli
|
Suggests: brotli
|
||||||
Suggests: zpaq
|
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
|
has an encrypted password manager, secure deletion, can find duplicate files, calculate hashes, and
|
||||||
export job definition as a script.
|
export job definition as a script.
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1590
|
%if 0%{?suse_version} < 1690
|
||||||
%package kf5
|
%package kf5
|
||||||
Summary: KF5 servicemenu for peazip
|
Summary: KF5 servicemenu for peazip
|
||||||
Group: Productivity/Archiving/Compression
|
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
|
rm %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/peazip.png
|
||||||
|
|
||||||
chmod +x %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/Nautilus-scripts/Archiving/PeaZip/*
|
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/
|
pushd %{buildroot}%{_peazipinstalldir}/res/share/batch/freedesktop_integration/KDE-servicemenus/KDE5-dolphin/
|
||||||
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus
|
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus
|
||||||
install -m644 *.desktop %{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/
|
install -m644 *.desktop %{buildroot}%{_datadir}/kio/servicemenus/
|
||||||
%endif
|
%endif
|
||||||
popd
|
popd
|
||||||
|
# Remove hard linked png
|
||||||
|
rm %{buildroot}%{_peazipinstalldir}/res/share/icons/peazip.png
|
||||||
|
|
||||||
find %{buildroot} -type f -size 0 -delete
|
find %{buildroot} -type f -size 0 -delete
|
||||||
|
|
||||||
@ -192,7 +191,7 @@ find %{buildroot} -type f -size 0 -delete
|
|||||||
%{_datadir}/applications/peazip.desktop
|
%{_datadir}/applications/peazip.desktop
|
||||||
%{_datadir}/pixmaps/peazip.png
|
%{_datadir}/pixmaps/peazip.png
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1590
|
%if 0%{?suse_version} < 1690
|
||||||
%files kf5
|
%files kf5
|
||||||
%dir %{_kf5_servicesdir}/ServiceMenus
|
%dir %{_kf5_servicesdir}/ServiceMenus
|
||||||
%{_kf5_servicesdir}/ServiceMenus/*.desktop
|
%{_kf5_servicesdir}/ServiceMenus/*.desktop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user