forked from clausecker/Hugs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhugs98.spec
99 lines (78 loc) · 2.57 KB
/
hugs98.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Name: hugs
Version:
Release:
License: BSD
URL: http://haskell.org/hugs/
Source0: %{name}-%{version}.tar.gz
Summary: Hugs 98 - A Haskell Interpreter
BuildRequires: gcc,make,autoconf
BuildRequires: docbook-utils
BuildRequires: libedit-devel
#for OpenGL/GLUT packages
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: freeglut-devel
#for OpenAL/ALUT packages
BuildRequires: openal-devel
BuildRequires: freealut-devel
#for X11/HGL packages
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXi-devel
BuildRequires: libXmu-devel
BuildRequires: libXt-devel
BuildRequires: xorg-x11-proto-devel
%description
Hugs 98 is a functional programming system based on Haskell 98, the de facto
standard for non-strict functional programming languages. Hugs 98 provides an
almost complete implementation of Haskell 98, including:
* Lazy evaluation, higher order functions, and pattern matching.
* A wide range of built-in types, from characters to bignums, and lists to
functions, with comprehensive facilities for defining new datatypes and type
synonyms.
* An advanced polymorphic type system with type and constructor class
overloading.
* All of the features of the Haskell 98 expression and pattern syntax including
lambda, case, conditional and let expressions, list comprehensions,
do-notation, operator sections, and wildcard, irrefutable and `as' patterns.
* An implementation of the Haskell 98 primitives for monadic I/O, with support
for simple interactive programs, access to text files, handle-based I/O, and
exception handling.
* An almost complete implementation of the Haskell module system. Hugs 98 also
supports a number of advanced and experimental extensions including
multi-parameter classes, extensible records, rank-2 polymorphism,
existentials, scoped type variables, and restricted type synonyms.
%prep
%setup -q
autoreconf
%build
%configure --enable-threads --enable-char-encoding=locale
make
%install
make DESTDIR=%{buildroot} install_all_but_docs
make -C docs DESTDIR=%{buildroot} install_man
find %{buildroot} -name '*.so' -exec chmod 0755 '{}' ';'
%check
pushd tests
sh ./testScript
popd
%clean
rm -rf %{buildroot}
%files
%license LICENSE
%doc Credits README.md
%doc docs/ffi-notes.txt
%doc docs/libraries-notes.txt
%doc docs/server.html
%doc docs/users_guide/users_guide
%{_prefix}/bin/hugs
%{_prefix}/bin/runhugs
%{_prefix}/bin/ffihugs
%{_prefix}/bin/cpphs-hugs
%{_prefix}/bin/hsc2hs-hugs
%{_prefix}/bin/happy-hugs
%{_prefix}/bin/hsclour-hugs
%dir %{_libdir}/hugs
%{_libdir}/hugs/*
%{_mandir}/man1/hugs.1.gz