rpms/lyx/devel lyx.spec,1.57,1.58
Rex Dieter (rdieter)
fedora-extras-commits at redhat.com
Thu Jun 28 15:17:03 UTC 2007
Author: rdieter
Update of /cvs/pkgs/rpms/lyx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27061
Modified Files:
lyx.spec
Log Message:
* Thu Jun 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5.0-0.9.rc2
- scriptlet optmization
Index: lyx.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lyx/devel/lyx.spec,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- lyx.spec 28 Jun 2007 14:04:53 -0000 1.57
+++ lyx.spec 28 Jun 2007 15:16:28 -0000 1.58
@@ -4,7 +4,7 @@
Summary: WYSIWYM (What You See Is What You Mean) document processor
Name: lyx
Version: 1.5.0
-Release: 0.8.%{pre}%{?dist}
+Release: 0.9.%{pre}%{?dist}
License: GPL
Group: Applications/Publishing
@@ -41,9 +41,8 @@
Requires: tetex-dvips
Requires: mathml-fonts
Requires: ghostscript
-# Short-hand for Requires,Requires(post,postun)
-Prereq: xdg-utils
## Soft dependencies
+Requires(hint): xdg-utils
%if 0%{?fedora} > 3
# Document->Change Tracking feature
Requires(hint): tetex-dvipost
@@ -124,16 +123,22 @@
%find_lang %{name}
-%post
-%{_bindir}/xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
-%{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || :
+# experimental scriptlet optimization
+# %postun still required until either %posttrans runs on uninstall
+# or postuntrans exists. -- Rex
+%posttrans
+touch --no-create %{_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+update-desktop-database >& /dev/null ||:
texhash > /dev/null 2>&1 ||:
-cd %{_datadir}/lyx && ./configure.py > /dev/null 2>&1 ||:
%postun
-%{_bindir}/xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
-%{_bindir}/xdg-desktop-menu forceupdate 2> /dev/null || :
+if [ $1 -eq 0 ]; then
+touch --no-create %{_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+update-desktop-database >& /dev/null ||:
texhash > /dev/null 2>&1 ||:
+fi
## Catch installed/uninstalled helpers
## not sure if this is really needed anymore, as it seems to be a per-user thing,
@@ -169,6 +174,9 @@
%changelog
+* Thu Jun 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5.0-0.9.rc2
+- scriptlet optmization
+
* Thu Jun 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5.0-0.8.rc2
- lyx-1.5.0rc2
More information about the fedora-extras-commits
mailing list