Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
59a77bef19 | ||
|
0d7ea60221 | ||
|
e67a107315 | ||
|
edc6eba806 | ||
|
d152f06383 | ||
|
b26f1bcde6 |
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: hugs98
|
||||
# $Id$
|
||||
NAME := hugs98
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
30
hugs98.spec
30
hugs98.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: hugs98
|
||||
Version: 2006.09
|
||||
Release: 4%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Haskell Interpreter
|
||||
|
||||
Group: Development/Languages
|
||||
@ -23,7 +23,7 @@ BuildRequires: libXmu-devel
|
||||
BuildRequires: libXt-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: xorg-x11-proto-devel
|
||||
BuildRequires: openal-devel
|
||||
BuildRequires: openal-soft-devel
|
||||
BuildRequires: freealut-devel
|
||||
BuildRequires: prelink
|
||||
|
||||
@ -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,30 @@ 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
|
||||
* Sun Aug 16 2009 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-8
|
||||
- rebuild against openal-soft
|
||||
|
||||
* Fri Jul 3 2009 Gerard Milmeister <gemi@bluewin.ch> - 2006.09-6
|
||||
- added alternatives setup for runhaskell and friends
|
||||
|
||||
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2006.09-4
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user