rpms/hugs98/F-10 hugs98.spec,1.13,1.14

Gérard Milmeister gemi at fedoraproject.org
Sat Jul 4 09:59:16 UTC 2009


Author: gemi

Update of /cvs/pkgs/rpms/hugs98/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29110

Modified Files:
	hugs98.spec 
Log Message:
added alternatives setup for runhaskell and friends


Index: hugs98.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hugs98/F-10/hugs98.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- hugs98.spec	19 Feb 2008 03:38:40 -0000	1.13
+++ hugs98.spec	4 Jul 2009 09:58:46 -0000	1.14
@@ -2,7 +2,7 @@
 
 Name:		hugs98
 Version:	2006.09
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	Haskell Interpreter
 
 Group:		Development/Languages
@@ -106,8 +106,9 @@ Demo files for Hugs98.
 # this is to avoid network lookup of the DTD
 sed -i 's|\"http://www.oasis-open.org.*\"||' docs/users_guide/users_guide.xml
 
+
 %build
-OPTFLAGS=`echo %optflags | sed -e "s|-O2||"`
+#OPTFLAGS=`echo %optflags | sed -e "s|-O2||"`
 %define optflags $OPTFLAGS
 %configure --with-pthreads --enable-char-encoding=locale
 make %{?_smp_mflags}
@@ -193,7 +194,27 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/hugs/packages/HGL
 
 
+%post
+update-alternatives --install %{_bindir}/runhaskell runhaskell \
+  %{_bindir}/runhugs 100
+update-alternatives --install %{_bindir}/hsc2hs hsc2hs \
+  %{_bindir}/hsc2hs-hugs 100
+update-alternatives --install %{_bindir}/cpphs cpphs \
+  %{_bindir}/cpphs-hugs 100
+
+
+%preun
+if [ "$1" = 0 ]; then
+  update-alternatives --remove runhaskell %{_bindir}/runhugs
+  update-alternatives --remove hsc2hs     %{_bindir}/hsc2hs-hugs
+  update-alternatives --remove cpphs      %{_bindir}/cpphs-hugs
+fi
+
+
 %changelog
+* Fri Jul  3 2009 Gerard Milmeister <gemi at bluewin.ch> - 2006.09-5
+- added alternatives setup for runhaskell and friends
+
 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 2006.09-4
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list