diff options
author | courant <courant@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-04-25 11:02:14 +0000 |
---|---|---|
committer | courant <courant@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-04-25 11:02:14 +0000 |
commit | 4e3b6db89c4223c3563ed7fc7f92f78a95c99283 (patch) | |
tree | 8a91f810d9881028a15961ffb18881d049f90ed9 /distrib/RH | |
parent | 7bdde88e133bb78c4ca6f6bd15e49131fbaf0063 (diff) |
modif rpm
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1713 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'distrib/RH')
-rw-r--r-- | distrib/RH/.cvsignore | 2 | ||||
-rw-r--r-- | distrib/RH/coq.spec.tpl | 78 | ||||
-rw-r--r-- | distrib/RH/do_build | 2 |
3 files changed, 82 insertions, 0 deletions
diff --git a/distrib/RH/.cvsignore b/distrib/RH/.cvsignore new file mode 100644 index 000000000..bfec41c5e --- /dev/null +++ b/distrib/RH/.cvsignore @@ -0,0 +1,2 @@ +build +coq.list diff --git a/distrib/RH/coq.spec.tpl b/distrib/RH/coq.spec.tpl new file mode 100644 index 000000000..44a14c7ea --- /dev/null +++ b/distrib/RH/coq.spec.tpl @@ -0,0 +1,78 @@ +Name: coq +Version: 7.0 +Release: 1 +Summary: The Coq Proof Assistant +Copyright: freely redistributable +Group: Applications/Math +Vendor: INRIA Rocquencourt +URL: http://coq.inria.fr +Source: ftp://ftp.inria.fr/INRIA/coq/V7.0/coq-7.0.tar.gz +Icon: petit-coq.gif + +%description +Coq is a proof assistant which: + - allows to handle calculus assertions, + - check mechanically proofs of these assertions, + - helps to find formal proofs, + - extracts a certified program from the constructive proof + of its formal specification, + +# Ocaml is required but it is better to install it not with rpm but by +# hand in /usr/local +# Requires: ocaml >= 3.01 + + +%prep +%setup + +%build +m4_include(coq.list) + +%clean +make clean + +%install +make -e COQINSTALLPREFIX=$RPM_BUILD_ROOT/ install +# To install only locally the binaries compiled with absolute paths + +%post +# This is a because the Coq Team usually build Coq with Ocaml in /usr/local +# but ocaml is actually in /usr if coming from a rpm package +# This works only if ocaml has been installed by rpm +if [ ! -e /usr/local/lib/ocaml ]; then + ln -s /usr/lib/ocaml /usr/local/lib/ocaml || true +fi + +%postun +# This is because the Coq Team usually build Coq with Ocaml in /usr/local +# but ocaml is actually in /usr if coming from a rpm package +if [ -L /usr/local/lib/ocaml ]; then + rm /usr/local/lib/ocaml +fi + +%files +/usr/bin/coqc +/usr/bin/coqtop +/usr/bin/coqtop.byte +/usr/bin/coqtop.opt +/usr/bin/coq-tex +/usr/bin/coqdep +/usr/bin/gallina +/usr/bin/coq_makefile +/usr/bin/coq-interface +/usr/bin/parser +#/usr/bin/coq_searchisos.out +/usr/bin/coqmktop +#/usr/bin/coq2html +#/usr/bin/coq2latex +/usr/lib/coq +#/usr/man/man1/coqc.1 +#/usr/man/man1/coqtop.1 +#/usr/man/man1/coqmktop.1 +/usr/man/man1/coqdep.1 +/usr/man/man1/gallina.1 +/usr/man/man1/coq-tex.1 +#/usr/man/man1/coq2latex.1 +#/usr/man/man1/coq2html.1 +/usr/share/emacs/site-lisp/coq.el +/usr/share/emacs/site-lisp/coq.elc diff --git a/distrib/RH/do_build b/distrib/RH/do_build new file mode 100644 index 000000000..b504dd070 --- /dev/null +++ b/distrib/RH/do_build @@ -0,0 +1,2 @@ +./configure -bindir /usr/bin -libdir /usr/lib/coq -mandir /usr/man -emacs emacs -emacslib /usr/share/emacs/site-lisp -opt # Need ocamlc.opt and ocamlopt.opt +make world # Use native coq to compile theories |