diff --git a/remmina.spec b/remmina.spec index 3abc429..7fbe52c 100644 --- a/remmina.spec +++ b/remmina.spec @@ -2,14 +2,15 @@ Name: remmina Version: 1.4.23 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Remote Desktop Client License: GPLv2+ and MIT URL: http://remmina.org Source0: https://gitlab.com/Remmina/Remmina/-/archive/v%{version}/Remmina-%{version}.tar.gz#/%{name}-%{version}.tar.gz -%if 0%{?rhel} >= 7 +# Exclude el7 from building on aarch64. +%if 0%{?rhel} == 7 ExcludeArch: aarch64 %endif @@ -37,6 +38,7 @@ BuildRequires: libsodium-devel # pyhoca-cli needed as build dep for x2go plugin to be built when actually # only a runtime dep. Has a FIXME on it in upstream tarball. BuildRequires: pyhoca-cli +BuildRequires: xdg-utils BuildRequires: pkgconfig(appindicator3-0.1) BuildRequires: pkgconfig(avahi-ui) >= 0.6.30 BuildRequires: pkgconfig(avahi-ui-gtk3) >= 0.6.30 @@ -258,6 +260,20 @@ cp -p %{SOURCE1} %{buildroot}/%{_includedir}/%{name}/ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml +%if 0%{?rhel} == 7 +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +%endif + %files -f %{name}.lang %license LICENSE %doc AUTHORS ChangeLog README.md @@ -323,6 +339,12 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdat %{_mandir}/man1/remmina-gnome.1.* %changelog +* Sun Jan 23 2022 Phil Wyett - 1.4.23-4 +- Add missing xdg-utils BuildRequires for generation of icon and theme caches. +- Modify conditional to exclude el7 only from aarch64 builds. Will + now enable building for el8 and above. +- Add scriptlets for updating of icon cache on el7 as not automatic. + * Fri Jan 21 2022 Fedora Release Engineering - 1.4.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild