Skip to content

Commit

Permalink
Fedora 28 has been eoled for a while. Cleaning up the spec template with
Browse files Browse the repository at this point in the history
regards to that fact.
  • Loading branch information
lhirlimann authored and nyalldawson committed Oct 23, 2020
1 parent 647f3a0 commit 14755be
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions rpm/qgis.spec.template
Expand Up @@ -276,34 +276,6 @@ rm -f %{buildroot}%{_datadir}/%{name}/doc/INSTALL*

%find_lang %{name} --with-qt

# TODO: Remove all %%post, %%posttrans and %%postun after F28 EoL
# Ref: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
%post
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
touch --no-create %{_datadir}/mime/packages &> /dev/null || :

%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :

%post grass -p /sbin/ldconfig

%postun grass -p /sbin/ldconfig

%post -n python3-qgis -p /sbin/ldconfig

%postun -n python3-qgis -p /sbin/ldconfig

%files -f %{name}.lang
%doc BUGS NEWS.md Exception_to_GPL_for_Qt.txt ChangeLog.gz
# QGIS shows the following files in the GUI, including the license text
Expand Down

0 comments on commit 14755be

Please sign in to comment.