From 39d249054a07356118e47a151c702613f7a6f7e7 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Nov 25 2010 22:12:16 +0000 Subject: - Rename -desktop to -utils, move shell scripts and menu entry to it (#417491). - Bring icon cache scriptlets up to date with current guidelines. --- diff --git a/bsh.spec b/bsh.spec index ab5c029..adcac13 100644 --- a/bsh.spec +++ b/bsh.spec @@ -30,7 +30,7 @@ Name: bsh Version: 1.3.0 -Release: 16%{?dist} +Release: 17%{?dist} Epoch: 0 Summary: Lightweight Scripting for Java License: SPL or LGPLv2+ @@ -98,13 +98,18 @@ Requires: /usr/bin/env %description demo Demonstrations and samples for %{name}. -%package desktop -Summary: Desktop integraton for %{name} -Group: Development/Libraries +%package utils +Summary: %{name} utilities +Group: Development/Tools Requires: %{name} = %{epoch}:%{version}-%{release} +Provides: %{name}-desktop = %{epoch}:%{version}-%{release} +Obsoletes: %{name}-desktop < 0:1.3.0-17 +# So that yum will pull this in on base package upgrades from < 0:1.3.0-17 +# (bsh and bshdoc scripts moved here in -17): +Obsoletes: %{name} < 0:1.3.0-17 -%description desktop -Contains a menu entry for %{name}. +%description utils +%{name} utilities. %prep %setup -q -n BeanShell @@ -271,29 +276,27 @@ cat scripts/bshdoc.bsh >> $RPM_BUILD_ROOT%{_bindir}/%{name}doc %clean rm -rf $RPM_BUILD_ROOT -%post desktop -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ] ; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor -fi +%post utils +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %post %update_maven_depmap -%postun desktop -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ] ; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor +%postun utils +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %postun %update_maven_depmap +%posttrans utils +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %files %defattr(-,root,root) %doc src/Changes.html src/License.txt src/README.txt -%attr(0755,root,root) %{_bindir}/%{name} -%attr(0755,root,root) %{_bindir}/%{name}doc %{_javadir}/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/webapps @@ -316,12 +319,17 @@ fi %doc tests/README.txt tests/Interactive/README %{_datadir}/%{name}/* -%files desktop -%attr(0755,root,root) %{_bindir}/%{name}-desktop +%files utils +%defattr(-,root,root) +%attr(0755,root,root) %{_bindir}/%{name}* %{_datadir}/applications/*%{name}-desktop.desktop %{_datadir}/icons/hicolor/*x*/apps/%{name}.png %changelog +* Thu Nov 25 2010 Ville Skyttä - 0:1.3.0-17 +- Rename -desktop to -utils, move shell scripts and menu entry to it (#417491). +- Bring icon cache scriptlets up to date with current guidelines. + * Thu Nov 25 2010 Stanislav Ochotnicky - 0:1.3.0-16 - Fix pom filenames (Resolves rhbz#655791) - Fix xsl errors when building docs