[qelectrotech] modernize scriptlets
Remi Collet
remi at fedoraproject.org
Sun May 13 09:24:50 UTC 2012
commit 487cfc03e2ca79b3b8abe6ca22918c9d06511e48
Author: remi <fedora at famillecollet.com>
Date: Sun May 13 11:24:43 2012 +0200
modernize scriptlets
qelectrotech.spec | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/qelectrotech.spec b/qelectrotech.spec
index 6f34bec..453f8c9 100644
--- a/qelectrotech.spec
+++ b/qelectrotech.spec
@@ -14,7 +14,7 @@ Summary(ru): Редактор электрических схем
# So use %.2f with upstream acknowledgment
# Remember to check Source0 + setup on each update
Version: 0.30
-Release: 0.1.alpha%{?dist}
+Release: 0.2.alpha%{?dist}
Group: Applications/Engineering
@@ -27,7 +27,7 @@ Source0: http://download.tuxfamily.org/qet/tags/20120513/qelectrotech-0.3a-sr
BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
-BuildRequires: qt4-devel >= 4.4.1
+BuildRequires: qt4-devel >= 4.6.0
Requires: qelectrotech-symbols = %{version}-%{release}
Requires: electronics-menu
@@ -81,9 +81,7 @@ Summary(pt): Colecção de elementos para QElectroTech
Summary(ru): Коллекция элементов для QElectroTech
Group: Applications/Productivity
License: CC-BY
-%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
BuildArch: noarch
-%endif
Requires: qelectrotech = %{version}-%{release}
@@ -150,20 +148,21 @@ cat qet.lang >>qelectrotech.lang
%post
-update-desktop-database &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
-
+/usr/bin/update-desktop-database &>/dev/null || :
+/usr/bin/update-mime-database %{_datadir}/mime &>/dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor
%postun
-update-desktop-database &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+/usr/bin/update-desktop-database &>/dev/null || :
+/usr/bin/update-mime-database %{_datadir}/mime &>/dev/null || :
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
fi
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+
%files -f %{name}.lang
%defattr(-,root,root,-)
@@ -187,6 +186,9 @@ fi
%changelog
+* Sun May 13 2012 Remi Collet <remi at fedoraproject.org> - 0.30-0.2.alpha
+- modernize scriptlets
+
* Sun May 13 2012 Remi Collet <remi at fedoraproject.org> - 0.30-0.1.alpha
- update to 0.3a
More information about the scm-commits
mailing list