X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcoq.git;a=blobdiff_plain;f=coq.spec;h=13884c36a35e9402b87481d2482db3f2b4a64192;hp=f071c4c33f4aa31517e1d67c3f79c82698f00d75;hb=f6f27c4;hpb=2dc4648591ad37775e247c5cc6ece905dc4044be diff --git a/coq.spec b/coq.spec index f071c4c..13884c3 100644 --- a/coq.spec +++ b/coq.spec @@ -1,13 +1,20 @@ +# +# TODO: +# - package and R: Csdp (https://projects.coin-or.org/Csdp) +# +# Conditional build: +%bcond_with tests # run testsuite (csdp dependant micromega tests fail badly on x86_64) +# Summary: The Coq Proof Assistant Summary(pl.UTF-8): Coq - narzędzie pomagające w udowadnianiu Name: coq -Version: 8.3pl1 -Release: 0.1 +Version: 8.4pl3 +Release: 2 License: GPL Group: Applications/Math Vendor: INRIA Rocquencourt Source0: http://coq.inria.fr/V%{version}/files/%{name}-%{version}.tar.gz -# Source0-md5: 1869d22b337f5da59ba3bbe1433f9a3b +# Source0-md5: 40a3057ae296bbb228e1e6537f44ccb1 Source1: coqide.desktop Source2: coqide.xpm Patch0: %{name}-lablgtk2.patch @@ -25,6 +32,7 @@ BuildRequires: texlive-latex-comment BuildRequires: texlive-latex-moreverb BuildRequires: texlive-psutils BuildRequires: texlive-format-pdflatex +%requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -44,11 +52,36 @@ Coq to narzędzie pomagające w udowadnianiu, które: - wyciągać program o dowiedzionej poprawności z konstruktywnego dowodu jego formalnej specyfikacji. +%package emacs +Summary: Emacs mode and syntax for Coq +Summary(pl.UTF-8): Tryb i składnia Coq dla Emacsa +Group: Development/Tools +Requires: %{name} = %{version}-%{release} + +%description emacs +Emacs mode and suyntax files for Coq. + +%description emacs -l pl.UTF-8 +Pliki trybu i składni Coq dla Emacsa. + +%package latex +Summary: Coq documentation style for latex +Summary(pl.UTF-8): Styl dokumentacji Coq dla latexa +Group: Development/Tools +Requires: %{name} = %{version}-%{release} + +%description latex +Coq documentation style for latex. + +%description latex -l pl.UTF-8 +Styl dokumentacji Coq dla latexa. + %prep %setup -q %patch0 -p1 %{__sed} -i -e 's|#!/bin/sh|#!/bin/bash|' test-suite/check +%{__sed} -i -e 's|\(MAKE_TSOPTS=.*\) -s \(.*\)|\1 \2|' Makefile.build %build ./configure \ @@ -56,14 +89,17 @@ Coq to narzędzie pomagające w udowadnianiu, które: -libdir %{_libdir}/coq \ -mandir %{_mandir} \ -docdir %{_docdir}/%{name}-%{version} \ + -configdir %{_sysconfdir}/%{name} \ + -datadir %{_datadir}/%{name} \ -emacs emacs \ - -browser 'iceweasel -remote "OpenURL(%s,new-tab)" || iceweasel %s &' \ + -browser "xdg-open %s" \ -emacslib %{_datadir}/emacs/site-lisp \ -opt \ --coqdocdir %{_datadir}/texmf/tex/latex/misc \ --coqide opt -%{__make} -j1 world check # Use native coq to compile theories +%{__make} -j1 world VERBOSE=1 +%{?with_tests:%{__make} -j1 check VERBOSE=1} # Use native coq to compile theories %install rm -rf $RPM_BUILD_ROOT @@ -76,13 +112,19 @@ install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} +# pdf is enough +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ps + %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/coq-tex +%doc %{_docdir}/%{name}-%{version} +%dir %{_sysconfdir}/%{name} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/coqide-gtk2rc %attr(755,root,root) %{_bindir}/coq_makefile +%attr(755,root,root) %{_bindir}/coq-tex %attr(755,root,root) %{_bindir}/coqc %attr(755,root,root) %{_bindir}/coqchk %attr(755,root,root) %{_bindir}/coqchk.opt @@ -97,24 +139,31 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/gallina %dir %{_libdir}/coq %{_libdir}/coq/* -%{_datadir}/emacs/site-lisp/coq.el -%{_datadir}/emacs/site-lisp/coq-db.el -%{_datadir}/emacs/site-lisp/coq-font-lock.el -%{_datadir}/emacs/site-lisp/coq-inferior.el -%{_datadir}/emacs/site-lisp/coq-syntax.el +%{_mandir}/man1/coq_makefile.1* +%{_mandir}/man1/coq-tex.1* %{_mandir}/man1/coqc.1* %{_mandir}/man1/coqchk.1* %{_mandir}/man1/coqdep.1* %{_mandir}/man1/coqdoc.1* -%{_mandir}/man1/coq_makefile.1* -%{_mandir}/man1/coqmktop.1* -%{_mandir}/man1/coq-tex.1* %{_mandir}/man1/coqide.1* +%{_mandir}/man1/coqmktop.1* %{_mandir}/man1/coqtop.1* %{_mandir}/man1/coqtop.byte.1* %{_mandir}/man1/coqtop.opt.1* %{_mandir}/man1/coqwc.1* %{_mandir}/man1/gallina.1* -%{_datadir}/texmf/tex/latex/misc/coqdoc.sty %{_desktopdir}/coqide.desktop %{_pixmapsdir}/coqide.xpm +%{_datadir}/%{name} + +%files emacs +%defattr(644,root,root,755) +%{_datadir}/emacs/site-lisp/coq.el +%{_datadir}/emacs/site-lisp/coq-db.el +%{_datadir}/emacs/site-lisp/coq-font-lock.el +%{_datadir}/emacs/site-lisp/coq-inferior.el +%{_datadir}/emacs/site-lisp/coq-syntax.el + +%files latex +%defattr(644,root,root,755) +%{_datadir}/texmf/tex/latex/misc/coqdoc.sty