rpms/hugs98/devel hugs98.spec,1.14,1.15

Gérard Milmeister gemi at fedoraproject.org
Sat Jul 4 11:12:28 UTC 2009


Author: gemi

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

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


Index: hugs98.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hugs98/devel/hugs98.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- hugs98.spec	25 Feb 2009 04:21:07 -0000	1.14
+++ hugs98.spec	4 Jul 2009 11:11:57 -0000	1.15
@@ -2,7 +2,7 @@
 
 Name:		hugs98
 Version:	2006.09
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Haskell Interpreter
 
 Group:		Development/Languages
@@ -106,9 +106,8 @@ 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||"`
-%define optflags $OPTFLAGS
 %configure --with-pthreads --enable-char-encoding=locale
 make %{?_smp_mflags}
 
@@ -193,7 +192,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-6
+- added alternatives setup for runhaskell and friends
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2006.09-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list