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