rpms/Macaulay2/devel Macaulay2.spec,1.51,1.52

Rex Dieter rdieter at fedoraproject.org
Wed Sep 23 00:20:55 UTC 2009


Author: rdieter

Update of /cvs/pkgs/rpms/Macaulay2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26170

Modified Files:
	Macaulay2.spec 
Log Message:
* Tue Sep 22 2009 Rex Dieter <rdieter at fedoraproject.org> - 1.2-6
- fixup/optimize scriplets



Index: Macaulay2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/Macaulay2/devel/Macaulay2.spec,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -p -r1.51 -r1.52
--- Macaulay2.spec	24 Jul 2009 15:37:02 -0000	1.51
+++ Macaulay2.spec	23 Sep 2009 00:20:53 -0000	1.52
@@ -7,7 +7,7 @@
 Summary: System for algebraic geometry and commutative algebra
 Name:    Macaulay2
 Version: 1.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 
 License: GPLv2
 Group:   Applications/Engineering
@@ -149,23 +149,31 @@ rm -rf %{buildroot}
 
 
 %post
-xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor ||:
 for info_file in \
 BGG Benchmark BoijSoederberg Browse Bruns ChainComplexExtras Classic ConwayPolynomials Depth Dmodules EdgeIdeals Elimination FirstPackage FourTiTwo FourierMotzkin GenericInitialIdeal HyperplaneArrangements IntegralClosure InvolutiveBases LLLBases LexIdeals LocalRings Macaulay2Doc Markov NoetherNormalization Normaliz PackageTemplate Parsing PieriMaps Points Polyhedra Polymake PrimaryDecomposition ReesAlgebra Regularity Schubert2 SchurFunctors SchurRings SimpleDoc SimplicialComplexes StatePolytope Style SymmetricPolynomials TangentCone Text gfanInterface \
 ; do
   /sbin/install-info --quiet %{_infodir}/${info_file}.info %{_infodir}/dir ||:
 done
 
-%postun
-xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
+%preun
 if [ $1 -eq 0 ]; then
-  for info_file in \ 
+  for info_file in \
 BGG Benchmark BoijSoederberg Browse Bruns ChainComplexExtras Classic ConwayPolynomials Depth Dmodules EdgeIdeals Elimination FirstPackage FourTiTwo FourierMotzkin GenericInitialIdeal HyperplaneArrangements IntegralClosure InvolutiveBases LLLBases LexIdeals LocalRings Macaulay2Doc Markov NoetherNormalization Normaliz PackageTemplate Parsing PieriMaps Points Polyhedra Polymake PrimaryDecomposition ReesAlgebra Regularity Schubert2 SchurFunctors SchurRings SimpleDoc SimplicialComplexes StatePolytope Style SymmetricPolynomials TangentCone Text gfanInterface \
 ; do
     /sbin/install-info --delete --quiet %{_infodir}/${info_file}.info %{_infodir}/dir ||:
   done
 fi
 
+%postun
+if [ $1 -eq 0 ] ; then
+touch --no-create %{_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null 2>&1 ||:
+fi
+
+%posttrans
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null 2>&1 ||:
+
 %triggerin -- emacs-common
 if [ -d %{emacs_sitelisp} ]; then 
   for file in %{_datadir}/Macaulay2/emacs/M2*.el ; do
@@ -203,6 +211,9 @@ fi
 
 
 %changelog
+* Tue Sep 22 2009 Rex Dieter <rdieter at fedoraproject.org> - 1.2-6
+- fixup/optimize scriplets
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list