- official build fix for ocaml 3.09
[packages/coq.git] / coq.spec
1 Summary:        The Coq Proof Assistant
2 Summary(pl):    Coq - narzêdzie pomagaj±ce w udowadnianiu
3 Name:           coq
4 Version:        8.0pl2
5 Release:        2
6 License:        GPL
7 Group:          Applications/Math
8 Vendor:         INRIA Rocquencourt
9 Source0:        ftp://ftp.inria.fr/INRIA/coq/V%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  39ee0fed76e47a11de2f49e2c236ef79
11 # ftp://ftp.inria.fr/INRIA/coq/V8.0pl2/patch-coq-8.0pl2-ocaml-3.09
12 Patch0:         %{name}-ocaml-3.09.patch
13 Patch1:         %{name}-lablgtk26.patch
14 Icon:           petit-coq.gif
15 URL:            http://coq.inria.fr/
16 BuildRequires:  emacs
17 BuildRequires:  ocaml >= 3.09.0
18 BuildRequires:  ocaml-camlp4
19 BuildRequires:  ocaml-lablgtk2-devel >= 2.6.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Coq is a proof assistant which:
24  - allows to handle calculus assertions,
25  - check mechanically proofs of these assertions,
26  - helps to find formal proofs,
27  - extracts a certified program from the constructive proof of its
28    formal specification.
29
30 %description -l pl
31 Coq to narzêdzie pomagaj±ce w udowadnianiu, które:
32 - pozwala uporaæ siê z twierdzeniami dotycz±cymi rachunku
33   ró¿niczkowego,
34 - mechanicznie sprawdzaæ dowody tych twierdzeñ,
35 - pomagaæ w znalezieniu formalnych dowodów,
36 - wyci±gaæ program o dowiedzionej poprawno¶ci z konstruktywnego
37   dowodu jego formalnej specyfikacji.
38
39 %prep
40 %setup -q
41 %patch0 -p0
42 %patch1 -p1
43
44 %build
45 ./configure \
46         -bindir %{_bindir} \
47         -libdir %{_libdir}/coq \
48         -mandir %{_mandir} \
49         -emacs emacs \
50         -emacslib %{_datadir}/emacs/site-lisp \
51         -opt \
52         --coqdocdir %{_datadir}/texmf/tex/latex/misc \
53         --coqide opt \
54         -reals all      # Need ocamlc.opt and ocamlopt.opt 
55
56 %{__make} world check   # Use native coq to compile theories
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} -e install \
62         COQINSTALLPREFIX=$RPM_BUILD_ROOT/
63 # To install only locally the binaries compiled with absolute paths
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/coq-interface
71 %attr(755,root,root) %{_bindir}/coq-interface.opt
72 %attr(755,root,root) %{_bindir}/coq-tex
73 %attr(755,root,root) %{_bindir}/coq_makefile
74 %attr(755,root,root) %{_bindir}/coqc
75 %attr(755,root,root) %{_bindir}/coqdep
76 %attr(755,root,root) %{_bindir}/coqdoc
77 %attr(755,root,root) %{_bindir}/coqide.byte
78 %attr(755,root,root) %{_bindir}/coqide.opt
79 %attr(755,root,root) %{_bindir}/coqmktop
80 %attr(755,root,root) %{_bindir}/coqtop
81 %attr(755,root,root) %{_bindir}/coqtop.byte
82 %attr(755,root,root) %{_bindir}/coqtop.opt
83 %attr(755,root,root) %{_bindir}/coqwc
84 %attr(755,root,root) %{_bindir}/gallina
85 %attr(755,root,root) %{_bindir}/parser
86 %attr(755,root,root) %{_bindir}/parser.opt
87 %dir %{_libdir}/coq
88 %{_libdir}/coq/*
89 %{_datadir}/emacs/site-lisp/coq.el
90 %{_datadir}/emacs/site-lisp/coq-inferior.el
91 %{_mandir}/man1/coq-tex.1*
92 %{_mandir}/man1/coqdep.1*
93 %{_mandir}/man1/gallina.1*
94 %{_mandir}/man1/coqc.1*
95 %{_mandir}/man1/coqtop.1*
96 %{_mandir}/man1/coqtop.byte.1*
97 %{_mandir}/man1/coqtop.opt.1*
98 %{_mandir}/man1/coq_makefile.1*
99 %{_mandir}/man1/coqmktop.1*
100 %{_mandir}/man1/coq-interface.1*
101 %{_mandir}/man1/parser.1*
102 %{_mandir}/man1/coqdoc.1*
103 %{_mandir}/man1/coqwc.1*
104 %{_datadir}/texmf/tex/latex/misc/coqdoc.sty
This page took 0.044966 seconds and 3 git commands to generate.