]> git.pld-linux.org Git - packages/coq.git/blob - coq.spec
- moved emacs and latex stuff to separate packages
[packages/coq.git] / coq.spec
1 Summary:        The Coq Proof Assistant
2 Summary(pl.UTF-8):      Coq - narzędzie pomagające w udowadnianiu
3 Name:           coq
4 Version:        8.3pl1
5 Release:        0.1
6 License:        GPL
7 Group:          Applications/Math
8 Vendor:         INRIA Rocquencourt
9 Source0:        http://coq.inria.fr/V%{version}/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  1869d22b337f5da59ba3bbe1433f9a3b
11 Source1:        coqide.desktop
12 Source2:        coqide.xpm
13 Patch0:         %{name}-lablgtk2.patch
14 URL:            http://coq.inria.fr/
15 BuildRequires:  bash
16 BuildRequires:  emacs
17 BuildRequires:  hevea
18 BuildRequires:  netpbm-progs
19 BuildRequires:  ocaml >= 3.09.0
20 BuildRequires:  camlp5 >= 5.01
21 BuildRequires:  ocaml-lablgtk2-devel >= 2.12.0
22 BuildRequires:  sed >= 4.0
23 BuildRequires:  texlive-latex-ams
24 BuildRequires:  texlive-latex-comment
25 BuildRequires:  texlive-latex-moreverb
26 BuildRequires:  texlive-psutils
27 BuildRequires:  texlive-format-pdflatex
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Coq is a proof assistant which:
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.
37
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
45   dowodu jego formalnej specyfikacji.
46
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
71 %prep
72 %setup -q
73 %patch0 -p1
74
75 %{__sed} -i -e 's|#!/bin/sh|#!/bin/bash|' test-suite/check
76
77 %build
78 ./configure \
79         -bindir %{_bindir} \
80         -libdir %{_libdir}/coq \
81         -mandir %{_mandir} \
82         -docdir %{_docdir}/%{name}-%{version} \
83         -emacs emacs \
84         -browser 'iceweasel -remote "OpenURL(%s,new-tab)" || iceweasel %s &' \
85         -emacslib %{_datadir}/emacs/site-lisp \
86         -opt \
87         --coqdocdir %{_datadir}/texmf/tex/latex/misc \
88         --coqide opt
89
90 %{__make} -j1 world
91 %{__make} -j1 check     # Use native coq to compile theories
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
96
97 %{__make} -e install \
98         COQINSTALLPREFIX=$RPM_BUILD_ROOT/
99 # To install only locally the binaries compiled with absolute paths
100
101 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
102 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %files
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_bindir}/coq_makefile
110 %attr(755,root,root) %{_bindir}/coq-tex
111 %attr(755,root,root) %{_bindir}/coqc
112 %attr(755,root,root) %{_bindir}/coqchk
113 %attr(755,root,root) %{_bindir}/coqchk.opt
114 %attr(755,root,root) %{_bindir}/coqdep
115 %attr(755,root,root) %{_bindir}/coqdoc
116 %attr(755,root,root) %{_bindir}/coqide*
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
121 %attr(755,root,root) %{_bindir}/coqwc
122 %attr(755,root,root) %{_bindir}/gallina
123 %dir %{_libdir}/coq
124 %{_libdir}/coq/*
125 %{_mandir}/man1/coq_makefile.1*
126 %{_mandir}/man1/coq-tex.1*
127 %{_mandir}/man1/coqc.1*
128 %{_mandir}/man1/coqchk.1*
129 %{_mandir}/man1/coqdep.1*
130 %{_mandir}/man1/coqdoc.1*
131 %{_mandir}/man1/coqide.1*
132 %{_mandir}/man1/coqmktop.1*
133 %{_mandir}/man1/coqtop.1*
134 %{_mandir}/man1/coqtop.byte.1*
135 %{_mandir}/man1/coqtop.opt.1*
136 %{_mandir}/man1/coqwc.1*
137 %{_mandir}/man1/gallina.1*
138 %{_desktopdir}/coqide.desktop
139 %{_pixmapsdir}/coqide.xpm
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
This page took 0.037096 seconds and 3 git commands to generate.