1 |
%define name camlp5 |
2 |
%define version 6.17 |
3 |
%define release 1 |
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 |
Requires: smeserver-release >= 9.0 |
18 |
AutoReqProv: no |
19 |
|
20 |
%description |
21 |
%{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. |
22 |
|
23 |
%changelog |
24 |
* Fri Apr 05 2019 Mab974 <mab974@gmail.com> |
25 |
- update to v6.17 |
26 |
- builds from unchanged .tar.gz |
27 |
|
28 |
* Fri Dec 19 2014 Mab974 <mab974@gmail.com> |
29 |
- initial release |
30 |
- builds from unchanged .tar.gz |
31 |
|
32 |
%prep |
33 |
|
34 |
%setup -q |
35 |
|
36 |
%build |
37 |
./configure -mandir "%{_mandir}" \ |
38 |
-bindir "%{_bindir}" \ |
39 |
-libdir "%{_libdir}/ocaml" |
40 |
## -cc "%{__cc} %{optflags}" \ |
41 |
## -mandir "%{_mandir}" \ |
42 |
## -prefix "%{_prefix}" \ |
43 |
## -verbose \ |
44 |
## -with-pthread \ |
45 |
|
46 |
%{__make} world.opt |
47 |
|
48 |
%install |
49 |
%{__rm} -rf %{buildroot} |
50 |
%{__make} install DESTDIR="%{buildroot}" |
51 |
|
52 |
%clean |
53 |
%{__rm} -rf %{buildroot} |
54 |
|
55 |
%pre |
56 |
|
57 |
%post |
58 |
|
59 |
%preun |
60 |
|
61 |
%postun |
62 |
|
63 |
%files |
64 |
%defattr(-, root, root, 0755) |
65 |
%doc CHANGES DEVEL ICHANGES INSTALL LICENSE MODE README UPGRADING |
66 |
%doc %{_mandir}/man1/*.1.* |
67 |
%{_bindir}/* |
68 |
%{_libdir}/ocaml/ |