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