-
Notifications
You must be signed in to change notification settings - Fork 3
/
mercury-compiler.spec
144 lines (127 loc) · 4.2 KB
/
mercury-compiler.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#
# RPM (Red Hat Package Manager) spec file
# for the Mercury implementation.
#
# Copyright (C) 1999, 2001, 2002, 2013 The University of Melbourne
#
# Define VERSION and VERSION_WITH_UNDERSCORES with rpmbuild.
Name: mercury-compiler
Version: %{VERSION_WITH_UNDERSCORES}
Release: 1
License: GPL-2.0+ and LGPL-2.0+
Summary: The logic/functional programming language Mercury
Url: http://mercurylang.org/
Group: Development/Languages/Other
Provides: mercury
Requires: gcc make
BuildRequires: bison flex
Source: mercury-srcdist-%{VERSION}.tar.gz
%description
Mercury is a modern logic/functional programming language, which combines
the clarity and expressiveness of declarative programming with advanced
static analysis and error detection features. Its highly optimized
execution algorithm delivers efficiency far in excess of existing logic
programming systems, and close to conventional programming
systems. Mercury addresses the problems of large-scale program
development, allowing modularity, separate compilation, and numerous
optimization/time trade-offs.
This package includes the compiler, profiler, debugger, documentation, etc.
It does NOT include the "extras" distribution.
%prep
%setup -n mercury-srcdist-%{VERSION}
%build
sh configure --prefix=/usr
make PARALLEL=%{?_smp_mflags}
%install
PLATFORM=`./config.guess`
MERCURY_COMPILER=$RPM_BUILD_ROOT%{_libdir}/mercury/bin/$PLATFORM/mercury_compile \
make install \
PARALLEL=%{?_smp_mflags} \
INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix} \
INSTALL_MAN_DIR=$RPM_BUILD_ROOT%{_mandir} \
INSTALL_INFO_DIR=$RPM_BUILD_ROOT%{_infodir}
# Don't need these.
rm $RPM_BUILD_ROOT%{_prefix}/bin/*.bat
%post
%install_info --info-dir=%{_infodir} %{_infodir}/mercury.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/mercury.info.gz
%files
%defattr(-,root,root)
%doc README*
%doc NEWS RELEASE_NOTES VERSION WORK_IN_PROGRESS HISTORY LIMITATIONS
%doc COPYING COPYING.LIB
/usr/bin/c2init
/usr/bin/canonical_grade
/usr/bin/info_to_mdb
/usr/bin/mcov
/usr/bin/mdb
/usr/bin/mdemangle
/usr/bin/mdice
/usr/bin/mdprof
/usr/bin/mdprof_cgi
/usr/bin/mdprof_create_feedback
/usr/bin/mdprof_dump
/usr/bin/mdprof_report_feedback
/usr/bin/mdprof_test
/usr/bin/mercury_compile
/usr/bin/mercury_config
/usr/bin/mercury_profile
/usr/bin/mercury_update_interface
/usr/bin/mfiltercc
/usr/bin/mgnuc
/usr/bin/mkfifo_using_mknod
/usr/bin/mkinit
/usr/bin/mkinit_erl
/usr/bin/ml
/usr/bin/mmake
/usr/bin/mmc
/usr/bin/mprof
/usr/bin/mprof_merge_runs
/usr/bin/mslice
/usr/bin/mtags
/usr/bin/mtc
/usr/bin/mtc_diff
/usr/bin/mtc_union
/usr/bin/prepare_install_dir
/usr/bin/vpath_find
/usr/share/man/man1/c2init.1*
/usr/share/man/man1/mdb.1*
/usr/share/man/man1/mercury_config.1*
/usr/share/man/man1/mgnuc.1*
/usr/share/man/man1/ml.1*
/usr/share/man/man1/mmake.1*
/usr/share/man/man1/mmc.1*
/usr/share/man/man1/mprof.1*
/usr/share/man/man1/mprof_merge_runs.1*
/usr/share/man/man1/mtags.1*
/usr/share/info/mercury.info*
/usr/share/info/mercury_faq.info*
/usr/share/info/mercury_library.info*
/usr/share/info/mercury_ref.info*
/usr/share/info/mercury_trans_guide.info*
/usr/share/info/mercury_user_guide.info*
/usr/lib/mercury
%changelog
* Mon Apr 15 2013 Peter Wang <[email protected]>
- See git history.
* Sun Feb 8 2004 Fergus Henderson <[email protected]>
- Update to support RedHat 8.0 and Mercury > 0.11.
In particular:
use /usr/share/man and /usr/share/info instead of /usr/man and /usr/info;
use ".1*" instead of ".1" for man pages in order to allow for the
possibility of them being compressed;
set INSTALL_PREFIX when doing make install;
set MERCURY_COMPILER when doing make install,
in order to allow installing from the source .tar.gz without
needing an already-installed Mercury compiler;
mention new files added since Mercury 0.10.
* Thu Oct 16 2002 Fergus Henderson <[email protected]>
- Modify the way the spec file is generated to support building
RPMS for ROTD releases.
* Wed Apr 04 2001 Fergus Henderson <[email protected]>
- Delete the "Red Hat Contrib Net" stuff, since RHCN seems to have disappeared
from the face of the earth.
* Fri Feb 19 1999 Fergus Henderson <[email protected]>
- Initial version.
# vim: sts=4 sw=4 et: