]>
Commit | Line | Data |
---|---|---|
521adcea | 1 | Summary: The Coq Proof Assistant |
374d5475 | 2 | Summary(pl.UTF-8): Coq - narzędzie pomagające w udowadnianiu |
680764bb | 3 | Name: coq |
72eff188 | 4 | Version: 8.3pl1 |
8bee228d | 5 | Release: 0.1 |
680764bb JR |
6 | License: GPL |
7 | Group: Applications/Math | |
8 | Vendor: INRIA Rocquencourt | |
5f0acdc3 | 9 | Source0: http://coq.inria.fr/V%{version}/files/%{name}-%{version}.tar.gz |
72eff188 | 10 | # Source0-md5: 1869d22b337f5da59ba3bbe1433f9a3b |
8bee228d JR |
11 | Source1: coqide.desktop |
12 | Source2: coqide.xpm | |
5f0acdc3 | 13 | Patch0: %{name}-lablgtk2.patch |
3432574d | 14 | URL: http://coq.inria.fr/ |
5f0acdc3 | 15 | BuildRequires: bash |
680764bb | 16 | BuildRequires: emacs |
8bee228d JR |
17 | BuildRequires: hevea |
18 | BuildRequires: netpbm-progs | |
861daf7b | 19 | BuildRequires: ocaml >= 3.09.0 |
5f0acdc3 | 20 | BuildRequires: camlp5 >= 5.01 |
72eff188 | 21 | BuildRequires: ocaml-lablgtk2-devel >= 2.12.0 |
5f0acdc3 | 22 | BuildRequires: sed >= 4.0 |
308e7511 | 23 | BuildRequires: texlive-latex-ams |
8bee228d | 24 | BuildRequires: texlive-latex-comment |
b46eabb1 | 25 | BuildRequires: texlive-latex-moreverb |
8edb6738 | 26 | BuildRequires: texlive-psutils |
8bee228d | 27 | BuildRequires: texlive-format-pdflatex |
680764bb JR |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | Coq is a proof assistant which: | |
bcd66107 | 32 | - allows to handle calculus assertions, |
33 | - check mechanically proofs of these assertions, | |
34 | - helps to find formal proofs, | |
35 | - extracts a certified program from the constructive proof of its | |
36 | formal specification. | |
3432574d | 37 | |
3f4e388b JR |
38 | %description -l pl.UTF-8 |
39 | Coq to narzędzie pomagające w udowadnianiu, które: | |
40 | - pozwala uporać się z twierdzeniami dotyczącymi rachunku | |
41 | różniczkowego, | |
42 | - mechanicznie sprawdzać dowody tych twierdzeń, | |
43 | - pomagać w znalezieniu formalnych dowodów, | |
44 | - wyciągać program o dowiedzionej poprawności z konstruktywnego | |
bcd66107 | 45 | dowodu jego formalnej specyfikacji. |
680764bb | 46 | |
9019ffc7 JR |
47 | %package emacs |
48 | Summary: Emacs mode and syntax for Coq | |
49 | Summary(pl.UTF-8): Tryb i składnia Coq dla Emacsa | |
50 | Group: Development/Tools | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description emacs | |
54 | Emacs mode and suyntax files for Coq. | |
55 | ||
56 | %description emacs -l pl.UTF-8 | |
57 | Pliki trybu i składni Coq dla Emacsa. | |
58 | ||
59 | %package latex | |
60 | Summary: Coq documentation style for latex | |
61 | Summary(pl.UTF-8): Styl dokumentacji Coq dla latexa | |
62 | Group: Development/Tools | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description latex | |
66 | Coq documentation style for latex. | |
67 | ||
68 | %description latex -l pl.UTF-8 | |
69 | Styl dokumentacji Coq dla latexa. | |
70 | ||
680764bb JR |
71 | %prep |
72 | %setup -q | |
5f0acdc3 JR |
73 | %patch0 -p1 |
74 | ||
75 | %{__sed} -i -e 's|#!/bin/sh|#!/bin/bash|' test-suite/check | |
680764bb JR |
76 | |
77 | %build | |
78 | ./configure \ | |
79 | -bindir %{_bindir} \ | |
80 | -libdir %{_libdir}/coq \ | |
81 | -mandir %{_mandir} \ | |
2dc46485 | 82 | -docdir %{_docdir}/%{name}-%{version} \ |
680764bb | 83 | -emacs emacs \ |
8bee228d | 84 | -browser 'iceweasel -remote "OpenURL(%s,new-tab)" || iceweasel %s &' \ |
680764bb JR |
85 | -emacslib %{_datadir}/emacs/site-lisp \ |
86 | -opt \ | |
1c74cbbc | 87 | --coqdocdir %{_datadir}/texmf/tex/latex/misc \ |
8bee228d | 88 | --coqide opt |
680764bb | 89 | |
9019ffc7 JR |
90 | %{__make} -j1 world |
91 | %{__make} -j1 check # Use native coq to compile theories | |
680764bb JR |
92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
8bee228d | 95 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
3432574d JB |
96 | |
97 | %{__make} -e install \ | |
98 | COQINSTALLPREFIX=$RPM_BUILD_ROOT/ | |
680764bb JR |
99 | # To install only locally the binaries compiled with absolute paths |
100 | ||
8bee228d JR |
101 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
102 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
103 | ||
680764bb JR |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
861daf7b | 109 | %attr(755,root,root) %{_bindir}/coq_makefile |
9019ffc7 | 110 | %attr(755,root,root) %{_bindir}/coq-tex |
680764bb | 111 | %attr(755,root,root) %{_bindir}/coqc |
2dc46485 JR |
112 | %attr(755,root,root) %{_bindir}/coqchk |
113 | %attr(755,root,root) %{_bindir}/coqchk.opt | |
680764bb | 114 | %attr(755,root,root) %{_bindir}/coqdep |
1c74cbbc | 115 | %attr(755,root,root) %{_bindir}/coqdoc |
5f0acdc3 | 116 | %attr(755,root,root) %{_bindir}/coqide* |
861daf7b JR |
117 | %attr(755,root,root) %{_bindir}/coqmktop |
118 | %attr(755,root,root) %{_bindir}/coqtop | |
119 | %attr(755,root,root) %{_bindir}/coqtop.byte | |
120 | %attr(755,root,root) %{_bindir}/coqtop.opt | |
1c74cbbc | 121 | %attr(755,root,root) %{_bindir}/coqwc |
861daf7b | 122 | %attr(755,root,root) %{_bindir}/gallina |
3432574d | 123 | %dir %{_libdir}/coq |
1c74cbbc | 124 | %{_libdir}/coq/* |
9019ffc7 JR |
125 | %{_mandir}/man1/coq_makefile.1* |
126 | %{_mandir}/man1/coq-tex.1* | |
680764bb | 127 | %{_mandir}/man1/coqc.1* |
2dc46485 JR |
128 | %{_mandir}/man1/coqchk.1* |
129 | %{_mandir}/man1/coqdep.1* | |
130 | %{_mandir}/man1/coqdoc.1* | |
2dc46485 | 131 | %{_mandir}/man1/coqide.1* |
9019ffc7 | 132 | %{_mandir}/man1/coqmktop.1* |
680764bb JR |
133 | %{_mandir}/man1/coqtop.1* |
134 | %{_mandir}/man1/coqtop.byte.1* | |
135 | %{_mandir}/man1/coqtop.opt.1* | |
1c74cbbc | 136 | %{_mandir}/man1/coqwc.1* |
2dc46485 | 137 | %{_mandir}/man1/gallina.1* |
8bee228d JR |
138 | %{_desktopdir}/coqide.desktop |
139 | %{_pixmapsdir}/coqide.xpm | |
9019ffc7 JR |
140 | |
141 | %files emacs | |
142 | %defattr(644,root,root,755) | |
143 | %{_datadir}/emacs/site-lisp/coq.el | |
144 | %{_datadir}/emacs/site-lisp/coq-db.el | |
145 | %{_datadir}/emacs/site-lisp/coq-font-lock.el | |
146 | %{_datadir}/emacs/site-lisp/coq-inferior.el | |
147 | %{_datadir}/emacs/site-lisp/coq-syntax.el | |
148 | ||
149 | %files latex | |
150 | %defattr(644,root,root,755) | |
151 | %{_datadir}/texmf/tex/latex/misc/coqdoc.sty |