Add required scriptlets for EPEL7
This commit is contained in:
parent
3b6ae7cae9
commit
ef194369f7
19
xviewer.spec
19
xviewer.spec
|
@ -7,7 +7,7 @@
|
|||
|
||||
Name: xviewer
|
||||
Version: 1.6.0
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Fast and functional graphics viewer
|
||||
|
||||
License: GPLv2+ and LGPLv2+
|
||||
|
@ -114,20 +114,30 @@ NOCONFIGURE=1 %{_bindir}/gnome-autogen.sh
|
|||
|
||||
|
||||
%post
|
||||
%{_bindir}/update-desktop-database >&/dev/null || :
|
||||
/bin/touch %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
%if (0%{?fedora} && 0%{?fedora} <=24) || (0%{?rhel} && 0%{?rhel} <= 7)
|
||||
%{_bindir}/update-desktop-database >&/dev/null || :
|
||||
%endif # (0%%{?fedora} && 0%%{?fedora} <=24) || (0%%{?rhel} && 0%%{?rhel} <= 7)
|
||||
|
||||
|
||||
%postun
|
||||
%{_bindir}/update-desktop-database >&/dev/null || :
|
||||
if [ $1 -eq 0 ]; then
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
fi
|
||||
%if (0%{?fedora} && 0%{?fedora} <=24) || (0%{?rhel} && 0%{?rhel} <= 7)
|
||||
%{_bindir}/update-desktop-database >&/dev/null || :
|
||||
if [ $1 -eq 0 ] ; then
|
||||
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
fi
|
||||
%endif # (0%%{?fedora} && 0%%{?fedora} <=24) || (0%%{?rhel} && 0%%{?rhel} <= 7)
|
||||
|
||||
|
||||
%posttrans
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
%if (0%{?fedora} && 0%{?fedora} <=24) || (0%{?rhel} && 0%{?rhel} <= 7)
|
||||
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
%endif # (0%%{?fedora} && 0%%{?fedora} <=24) || (0%%{?rhel} && 0%%{?rhel} <= 7)
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
|
@ -161,6 +171,9 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Nov 17 2017 Björn Esser <besser82@fedoraproject.org> - 1.6.0-4
|
||||
- Add required scriptlets for EPEL7
|
||||
|
||||
* Thu Nov 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.6.0-3
|
||||
- Redistributable build on EPEL7
|
||||
|
||||
|
|
Loading…
Reference in New Issue