- moved emacs and latex stuff to separate packages
[packages/coq.git] / coq.spec
CommitLineData
521adcea 1Summary: The Coq Proof Assistant
374d5475 2Summary(pl.UTF-8): Coq - narzędzie pomagające w udowadnianiu
680764bb 3Name: coq
72eff188 4Version: 8.3pl1
8bee228d 5Release: 0.1
680764bb
JR
6License: GPL
7Group: Applications/Math
8Vendor: INRIA Rocquencourt
5f0acdc3 9Source0: http://coq.inria.fr/V%{version}/files/%{name}-%{version}.tar.gz
72eff188 10# Source0-md5: 1869d22b337f5da59ba3bbe1433f9a3b
8bee228d
JR
11Source1: coqide.desktop
12Source2: coqide.xpm
5f0acdc3 13Patch0: %{name}-lablgtk2.patch
3432574d 14URL: http://coq.inria.fr/
5f0acdc3 15BuildRequires: bash
680764bb 16BuildRequires: emacs
8bee228d
JR
17BuildRequires: hevea
18BuildRequires: netpbm-progs
861daf7b 19BuildRequires: ocaml >= 3.09.0
5f0acdc3 20BuildRequires: camlp5 >= 5.01
72eff188 21BuildRequires: ocaml-lablgtk2-devel >= 2.12.0
5f0acdc3 22BuildRequires: sed >= 4.0
308e7511 23BuildRequires: texlive-latex-ams
8bee228d 24BuildRequires: texlive-latex-comment
b46eabb1 25BuildRequires: texlive-latex-moreverb
8edb6738 26BuildRequires: texlive-psutils
8bee228d 27BuildRequires: texlive-format-pdflatex
680764bb
JR
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Coq 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
39Coq 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
48Summary: Emacs mode and syntax for Coq
49Summary(pl.UTF-8): Tryb i składnia Coq dla Emacsa
50Group: Development/Tools
51Requires: %{name} = %{version}-%{release}
52
53%description emacs
54Emacs mode and suyntax files for Coq.
55
56%description emacs -l pl.UTF-8
57Pliki trybu i składni Coq dla Emacsa.
58
59%package latex
60Summary: Coq documentation style for latex
61Summary(pl.UTF-8): Styl dokumentacji Coq dla latexa
62Group: Development/Tools
63Requires: %{name} = %{version}-%{release}
64
65%description latex
66Coq documentation style for latex.
67
68%description latex -l pl.UTF-8
69Styl 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
94rm -rf $RPM_BUILD_ROOT
8bee228d 95install -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
101install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
102install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
103
680764bb
JR
104%clean
105rm -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
This page took 0.079957 seconds and 4 git commands to generate.