Remove obsolete scriptlets

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-01-07 19:11:25 +01:00
commit 62001973e1

View file

@ -1,7 +1,7 @@
Name: antimony
Summary: Computer-aided design CAD tool
Version: 0.9.3
Release: 2%{?dist}
Release: 3%{?dist}
License: MIT
URL: http://www.mattkeeter.com/projects/antimony/3/
Source0: https://github.com/mkeeter/antimony/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
@ -142,24 +142,6 @@ cat > $RPM_BUILD_ROOT%{_datadir}/metainfo/%{name}.appdata.xml <<EOF
</component>
EOF
%post
/bin/touch --no-create %{_datadir}/icons/Antimony &>/dev/null || :
%if 0%{?fedora} < 25
/usr/bin/update-desktop-database &> /dev/null || :
%endif
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/Antimony &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Antimony &>/dev/null || :
fi
%if 0%{?fedora} < 25
/usr/bin/update-desktop-database &> /dev/null || :
%endif
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Antimony &>/dev/null || :
%check
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%if 0%{?fedora}
@ -177,6 +159,9 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/*.appd
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.3-3
- Remove obsolete scriptlets
* Tue Dec 19 2017 Antonio Trande <sagitter@fedoraproject.org> - 0.9.3-2
- Appdata file moved into metainfo data directory