]> git.pld-linux.org Git - packages/alt-ergo.git/blame - alt-ergo.spec
- disable parallel build
[packages/alt-ergo.git] / alt-ergo.spec
CommitLineData
0b802026
JR
1Summary: Automated theorem prover including linear arithmetic
2Name: alt-ergo
3Version: 0.95.1
4Release: 1
5License: CeCILL-C
6Group: Applications/Engineering
7URL: http://alt-ergo.lri.fr/
8Source0: http://alt-ergo.lri.fr/http/%{name}-%{version}/alt-ergo-%{version}.tar.gz
9# Source0-md5: c0f1cbfdae04f1c37853ed5fd10154ec
10Source1: %{name}.desktop
11BuildRequires: desktop-file-utils
12BuildRequires: gtksourceview2-devel
13BuildRequires: iconv
14BuildRequires: ocaml
15BuildRequires: ocaml-graph-devel
16BuildRequires: ocaml-lablgtk2-devel
17BuildRequires: ocaml-lablgtk2-gtksourceview2-devel
18Requires(post): coreutils
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21# Filter out symbols that are provided by interface files (*.mli) only.
22# There are no corresponding symbols available at runtime.
23%global __requires_exclude ocaml\\\(((Sig)|(Smt_ast)|(Why_ptree))\\\)
24
25%description
26Alt-Ergo is an automated theorem prover implemented in OCaml. It is
27based on CC(X) - a congruence closure algorithm parameterized by an
28equational theory X. This algorithm is reminiscent of the Shostak
29algorithm. Currently CC(X) is instantiated by the theory of linear
30arithmetics. Alt-Ergo also contains a home made SAT-solver and an
31instantiation mechanism by which it fully supports quantifiers.
32
33%package gui
34Summary: Graphical front end for alt-ergo
35Group: Applications/Engineering
36Requires: %{name}%{?_isa} = %{version}-%{release}
37Requires: gtksourceview2
38
39%description gui
40A graphical front end for the alt-ergo theorem prover.
41
42%prep
43%setup -q
44
45# Set print_flag to false or invoking with -select
46# from "why" will pause every invocation :-(.
47sed -i -e 's/let print_flag = true/let print_flag = false/;' pruning.ml
48
49%build
50./configure \
51 --prefix=%{_prefix} \
52 --bindir=%{_bindir} \
53 --libdir=%{_datadir} \
54 --mandir=%{_mandir}
55
4c6c7939
JR
56%{__make} -j1 OCAMLBEST=opt OCAMLOPT=ocamlopt.opt
57%{__make} -j1 OCAMLBEST=opt OCAMLOPT=ocamlopt.opt gui
0b802026
JR
58
59iconv -f ISO-8859-1 -t UTF-8 -o CeCILL-C.utf8 CeCILL-C
60touch -r CeCILL-C CeCILL-C.utf8
61%{__mv} -f CeCILL-C.utf8 CeCILL-C
62
63%install
64rm -rf $RPM_BUILD_ROOT
65install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
66
67%{__make} install \
68 OCAMLBEST=opt OCAMLOPT=ocamlopt.opt \
69 DESTDIR=$RPM_BUILD_ROOT
70
71# Remove files we do not want installed
72rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{cmx,o}
73
74# Install the desktop file
75desktop-file-install --dir $RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1}
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post gui
81%update_desktop_database
82
83%postun gui
84%update_desktop_database
85
86%files
87%defattr(644,root,root,755)
88%attr(755,root,root) %{_bindir}/%{name}
89%{_datadir}/%{name}/
90%{_mandir}/man1/alt-ergo.1.*
91%doc COPYING CeCILL-C CHANGES
92
93%files gui
94%defattr(644,root,root,755)
95%attr(755,root,root) %{_bindir}/altgr-ergo
96%{_desktopdir}/%{name}.desktop
97%{_datadir}/gtksourceview-2.0/language-specs/%{name}.lang
This page took 0.066512 seconds and 4 git commands to generate.