blob: 515393690aff5a76ffe82019a8b1f6f8d95fd82a (
plain)
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
|
Name: coqide
Version: 8.0beta
Release: 1
Summary: The Coq Integrated Development Interface
Copyright: freely redistributable
Group: Applications/Math
Vendor: INRIA & LRI
URL: http://coq.inria.fr
Source: ftp://ftp.inria.fr/INRIA/coq/V8.0beta/coq-8.0beta.tar.gz
Icon: petit-coq.gif
Requires: coq = 8.0beta
%description
The Coq Integrated Development Interface is a graphical interface for the
Coq proof assistant
%prep
%setup -n coq-8.0beta
%build
./configure -bindir /usr/bin -libdir /usr/lib/coq -mandir /usr/man -emacs emacs -emacslib /usr/share/emacs/site-lisp -opt -reals all # Need ocamlc.opt and ocamlopt.opt
make coqide # Use native coq to compile theories
%clean
make clean
%install
make -e COQINSTALLPREFIX=$RPM_BUILD_ROOT/ install-coqide
# To install only locally the binaries compiled with absolute paths
%post
# This is a because the Coq Team usually build Coq with Ocaml in /usr/local
# but ocaml is actually in /usr if coming from a rpm package
# This works only if ocaml has been installed by rpm
if [ ! -e /usr/local/lib/ocaml ]; then
ln -s /usr/lib/ocaml /usr/local/lib/ocaml || true
fi
%postun
# This is because the Coq Team usually build Coq with Ocaml in /usr/local
# but ocaml is actually in /usr if coming from a rpm package
if [ -L /usr/local/lib/ocaml ]; then
rm /usr/local/lib/ocaml
fi
%files
%defattr(-,root,root)
/usr/bin/coqide.byte
/usr/bin/coqide.opt
/usr/bin/coqide
/usr/lib/coq/ide/utf8.v
/usr/lib/coq/ide/utf8.vo
/usr/lib/coq/ide/coq.png
/usr/lib/coq/ide/.coqide-gtk2rc
/usr/lib/coq/ide/FAQ
|