X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcoq.git;a=blobdiff_plain;f=coq.spec;h=7f915aab047132e86884ed59ada51e24d6b0362f;hp=ebc28a71c3275672ff65c92547bda860eff6ffe5;hb=b46eabb16fd749f1d6cab79b0851f0d8a9558023;hpb=374d5475e3bd1e9c5c6410f33db30cedb5ee2518 diff --git a/coq.spec b/coq.spec index ebc28a7..7f915aa 100644 --- a/coq.spec +++ b/coq.spec @@ -1,21 +1,29 @@ Summary: The Coq Proof Assistant Summary(pl.UTF-8): Coq - narzędzie pomagające w udowadnianiu Name: coq -Version: 8.0pl2 -Release: 2 +Version: 8.3pl1 +Release: 0.1 License: GPL Group: Applications/Math Vendor: INRIA Rocquencourt -Source0: ftp://ftp.inria.fr/INRIA/coq/V%{version}/%{name}-%{version}.tar.gz -# Source0-md5: 39ee0fed76e47a11de2f49e2c236ef79 -# ftp://ftp.inria.fr/INRIA/coq/V8.0pl2/patch-coq-8.0pl2-ocaml-3.09 -Patch0: %{name}-ocaml-3.09.patch -Patch1: %{name}-lablgtk26.patch +Source0: http://coq.inria.fr/V%{version}/files/%{name}-%{version}.tar.gz +# Source0-md5: 1869d22b337f5da59ba3bbe1433f9a3b +Source1: coqide.desktop +Source2: coqide.xpm +Patch0: %{name}-lablgtk2.patch URL: http://coq.inria.fr/ +BuildRequires: bash BuildRequires: emacs +BuildRequires: hevea +BuildRequires: netpbm-progs BuildRequires: ocaml >= 3.09.0 -BuildRequires: ocaml-camlp4 -BuildRequires: ocaml-lablgtk2-devel >= 2.6.0 +BuildRequires: camlp5 >= 5.01 +BuildRequires: ocaml-lablgtk2-devel >= 2.12.0 +BuildRequires: sed >= 4.0 +BuildRequires: texlive-latex-ams +BuildRequires: texlive-latex-comment +BuildRequires: texlive-latex-moreverb +BuildRequires: texlive-format-pdflatex BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -37,30 +45,36 @@ Coq to narzędzie pomagające w udowadnianiu, które: %prep %setup -q -%patch0 -p0 -%patch1 -p1 +%patch0 -p1 + +%{__sed} -i -e 's|#!/bin/sh|#!/bin/bash|' test-suite/check %build ./configure \ -bindir %{_bindir} \ -libdir %{_libdir}/coq \ -mandir %{_mandir} \ + -docdir %{_datadir}/coq/doc \ -emacs emacs \ + -browser 'iceweasel -remote "OpenURL(%s,new-tab)" || iceweasel %s &' \ -emacslib %{_datadir}/emacs/site-lisp \ -opt \ --coqdocdir %{_datadir}/texmf/tex/latex/misc \ - --coqide opt \ - -reals all # Need ocamlc.opt and ocamlopt.opt + --coqide opt -%{__make} world check # Use native coq to compile theories +%{__make} -j1 world check # Use native coq to compile theories %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} %{__make} -e install \ COQINSTALLPREFIX=$RPM_BUILD_ROOT/ # To install only locally the binaries compiled with absolute paths +install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} +install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} + %clean rm -rf $RPM_BUILD_ROOT @@ -73,8 +87,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/coqc %attr(755,root,root) %{_bindir}/coqdep %attr(755,root,root) %{_bindir}/coqdoc -%attr(755,root,root) %{_bindir}/coqide.byte -%attr(755,root,root) %{_bindir}/coqide.opt +%attr(755,root,root) %{_bindir}/coqide* %attr(755,root,root) %{_bindir}/coqmktop %attr(755,root,root) %{_bindir}/coqtop %attr(755,root,root) %{_bindir}/coqtop.byte @@ -101,3 +114,5 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/coqdoc.1* %{_mandir}/man1/coqwc.1* %{_datadir}/texmf/tex/latex/misc/coqdoc.sty +%{_desktopdir}/coqide.desktop +%{_pixmapsdir}/coqide.xpm