1 |
%define name camlp5 |
2 |
%define version 6.17 |
3 |
%define release 2 |
4 |
Summary: Camlp5 is a Pre-Processor-Pretty-Printer for OCaml. |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
9 |
License: GNU GPL version 2 |
10 |
Group: SME Server/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
URL: http://ocaml.org |
13 |
Packager: Michel Begue <mab974@gmail.com> |
14 |
BuildRoot: %RPM_BUILD_ROOT |
15 |
BuildRequires: e-smith-devtools |
16 |
BuildRequires: ocaml = 3.12.1 |
17 |
AutoReqProv: no |
18 |
|
19 |
%description |
20 |
%{name} is a Pre-Processor-Pretty-Printer for OCaml. It offers syntactic tools (parsers, extensible grammars), the ability to extend the concrete syntax of OCaml (quotations, syntax extensions), and to redefine it from scratch. This is an advanced tool and should not be used by those new to OCaml. |
21 |
|
22 |
%changelog |
23 |
* Wed Oct 02 2019 Mab974 <mab974@gmail.com> |
24 |
- fix Requires smeserver-release |
25 |
|
26 |
* Wed Oct 02 2019 Mab974 <mab974@gmail.com> |
27 |
- initial release v6.17 |
28 |
- builds from unchanged .tar.gz |
29 |
|
30 |
%prep |
31 |
|
32 |
%setup -q |
33 |
|
34 |
%build |
35 |
./configure -mandir "%{_mandir}" \ |
36 |
-bindir "%{_bindir}" \ |
37 |
-libdir "%{_libdir}/ocaml" |
38 |
## -cc "%{__cc} %{optflags}" \ |
39 |
## -mandir "%{_mandir}" \ |
40 |
## -prefix "%{_prefix}" \ |
41 |
## -verbose \ |
42 |
## -with-pthread \ |
43 |
|
44 |
%{__make} world.opt |
45 |
|
46 |
%install |
47 |
%{__rm} -rf %{buildroot} |
48 |
%{__make} install DESTDIR="%{buildroot}" |
49 |
|
50 |
%clean |
51 |
%{__rm} -rf %{buildroot} |
52 |
|
53 |
%pre |
54 |
|
55 |
%post |
56 |
|
57 |
%preun |
58 |
|
59 |
%postun |
60 |
|
61 |
%files |
62 |
%defattr(-, root, root, 0755) |
63 |
%doc CHANGES DEVEL ICHANGES INSTALL LICENSE MODE README UPGRADING |
64 |
%doc %{_mandir}/man1/*.1.* |
65 |
%{_bindir}/* |
66 |
%{_libdir}/ocaml/ |