From 0755b4f47319b3c32004e8c989d4ec3366d34ab0 Mon Sep 17 00:00:00 2001 From: Pavel Alexeev Date: Oct 04 2008 00:44:42 +0000 Subject: - Replace %post -p /sbin/ldconfig by simlply: %%post /sbin/ldconfig And accodingly in %%postun due tu rpmlint warning: sim.i386: E: postin-without-ldconfig /usr/lib/libsim.so.0.0.0 (I not found what mean -p key, but appologise what it designed to run 1 command only) --- diff --git a/sim.spec b/sim.spec index a344f2a..15b7c84 100644 --- a/sim.spec +++ b/sim.spec @@ -4,7 +4,7 @@ Name: sim Version: 0.9.5 -Release: 0.9.%{SVNdate}svn%{SVNrev}rev%{?dist} +Release: 0.10.%{SVNdate}svn%{SVNrev}rev%{?dist} #svn checkout -r %{SVNrev} svn://svn.berlios.de/sim-im/trunk; tar -cjf '%{name}-%{version}-SVN%{SVNdate}rev%{SVNrev}.tar.bz2' trunk Source0: %{name}-%{version}-SVN%{SVNdate}rev%{SVNrev}.tar.bz2 Summary: SIM - Multiprotocol Instant Messenger @@ -89,13 +89,15 @@ desktop-file-install --vendor="fedora" \ %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%post +/sbin/ldconfig touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : @@ -114,6 +116,14 @@ fi %{_datadir}/services/ %changelog +* Sat Oct 4 2008 Pavel Alexeev - 0.9.5-0.10.20080923svn2261rev +- Replace %post -p /sbin/ldconfig by simlply: + %%post + /sbin/ldconfig + And accodingly in %%postun due tu rpmlint warning: + sim.i386: E: postin-without-ldconfig /usr/lib/libsim.so.0.0.0 + (I not found what mean -p key, but appologise what it designed to run 1 command only) + * Sat Oct 4 2008 Pavel Alexeev - 0.9.5-0.9.20080923svn2261rev - Add %%{?dist} into Release! - Add icon-update-code into %%post/%%postun. (thanks to Patrice Dumas)