aboutsummaryrefslogtreecommitdiff
path: root/distrib/RH/coq.spec.tpl
blob: 44a14c7ea72d3edd6515b31de9f8d6365ae04400 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Name: coq
Version: 7.0
Release: 1
Summary: The Coq Proof Assistant
Copyright: freely redistributable
Group: Applications/Math
Vendor: INRIA Rocquencourt
URL: http://coq.inria.fr
Source: ftp://ftp.inria.fr/INRIA/coq/V7.0/coq-7.0.tar.gz
Icon: petit-coq.gif

%description
Coq is a proof assistant which: 
  - allows to handle calculus assertions, 
  - check mechanically proofs of these assertions, 
  - helps to find formal proofs, 
  - extracts a certified program from the constructive proof
    of its formal specification, 

# Ocaml is required but it is better to install it not with rpm but by
# hand in /usr/local
# Requires: ocaml >= 3.01


%prep
%setup

%build
m4_include(coq.list)

%clean
make clean

%install
make -e COQINSTALLPREFIX=$RPM_BUILD_ROOT/ install
# 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
/usr/bin/coqc
/usr/bin/coqtop
/usr/bin/coqtop.byte
/usr/bin/coqtop.opt
/usr/bin/coq-tex
/usr/bin/coqdep
/usr/bin/gallina
/usr/bin/coq_makefile
/usr/bin/coq-interface
/usr/bin/parser
#/usr/bin/coq_searchisos.out
/usr/bin/coqmktop
#/usr/bin/coq2html
#/usr/bin/coq2latex
/usr/lib/coq
#/usr/man/man1/coqc.1
#/usr/man/man1/coqtop.1
#/usr/man/man1/coqmktop.1
/usr/man/man1/coqdep.1
/usr/man/man1/gallina.1
/usr/man/man1/coq-tex.1
#/usr/man/man1/coq2latex.1
#/usr/man/man1/coq2html.1
/usr/share/emacs/site-lisp/coq.el
/usr/share/emacs/site-lisp/coq.elc