#
+# TODO:
+# - package and R: Csdp (https://projects.coin-or.org/Csdp)
+#
# Conditional build:
-%bcond_with tests # run testsuite (non-deterministic fail in micromega tests on 64bit arch)
+%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
+Release: 2
License: GPL
Group: Applications/Math
Vendor: INRIA Rocquencourt
BuildRequires: texlive-latex-moreverb
BuildRequires: texlive-psutils
BuildRequires: texlive-format-pdflatex
+%requires_eq ocaml-runtime
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%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 \
--coqdocdir %{_datadir}/texmf/tex/latex/misc \
--coqide opt
-%{__make} -j1 world
-%{?with_tests:%{__make} -j1 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
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)
+%doc %{_docdir}/%{name}-%{version}
%attr(755,root,root) %{_bindir}/coq_makefile
%attr(755,root,root) %{_bindir}/coq-tex
%attr(755,root,root) %{_bindir}/coqc