1 |
michel |
1.1 |
%define name ocaml |
2 |
|
|
%define version 3.12.1 |
3 |
|
|
%define release 1 |
4 |
|
|
Summary: OCaml is an industrial strength programming language supporting functional, imperative and object-oriented styles. |
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.bz2 |
12 |
|
|
URL: http://ocaml.org |
13 |
|
|
Packager: Michel Begue <mab974@gmail.com> |
14 |
|
|
BuildRoot: %_topdir/BUILDROOT |
15 |
|
|
BuildRequires: e-smith-devtools |
16 |
michel |
1.2 |
Requires: smeserver-release >= 9.0 |
17 |
michel |
1.1 |
AutoReqProv: no |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
%{name} is an industrial strength programming language supporting functional, imperative and object-oriented styles. |
21 |
|
|
|
22 |
|
|
%changelog |
23 |
michel |
1.2 |
* Wed Sep 25 2019 Mab974 <mab974@gmail.com> |
24 |
michel |
1.1 |
- initial release |
25 |
|
|
- builds from unchanged .tar.gz |
26 |
|
|
|
27 |
|
|
%prep |
28 |
|
|
echo "bindir: %{_bindir}/" |
29 |
|
|
echo "libdir: %{_libdir}/" |
30 |
|
|
echo "mandir: %{_mandir}/" |
31 |
|
|
|
32 |
|
|
%setup -q |
33 |
|
|
|
34 |
|
|
%build |
35 |
|
|
./configure \ |
36 |
|
|
-cc "%{__cc} %{optflags}" \ |
37 |
|
|
-bindir "%{_bindir}" \ |
38 |
|
|
-libdir "%{_libdir}/ocaml" \ |
39 |
|
|
-mandir "%{_mandir}" \ |
40 |
|
|
-prefix "%{_prefix}" \ |
41 |
|
|
-verbose \ |
42 |
|
|
-with-pthread \ |
43 |
|
|
#%{__make} %{?_smp_mflags} world bootstrap opt opt.opt |
44 |
|
|
%{__make} world.opt |
45 |
|
|
|
46 |
|
|
|
47 |
|
|
%install |
48 |
|
|
##rm -fr $RPM_BUILD_ROOT |
49 |
|
|
##%make_install |
50 |
|
|
|
51 |
|
|
%{__rm} -rf %{buildroot} |
52 |
|
|
%{__make} install BINDIR="%{buildroot}%{_bindir}" LIBDIR="%{buildroot}%{_libdir}/ocaml" MANDIR="%{buildroot}%{_mandir}" |
53 |
|
|
%{__perl} -pi.orig -e 's|^%{buildroot}||' %{buildroot}%{_libdir}/ocaml/ld.conf |
54 |
|
|
|
55 |
|
|
%clean |
56 |
|
|
%{__rm} -rf %{buildroot} |
57 |
|
|
##rm -fr $RPM_BUILD_ROOT |
58 |
|
|
|
59 |
|
|
%pre |
60 |
|
|
|
61 |
|
|
%post |
62 |
|
|
|
63 |
|
|
%preun |
64 |
|
|
|
65 |
|
|
%postun |
66 |
|
|
|
67 |
|
|
%files |
68 |
|
|
%defattr(-, root, root, 0755) |
69 |
|
|
%doc Changes INSTALL LICENSE README |
70 |
|
|
%doc %{_mandir}/man1/*.1* |
71 |
|
|
%doc %{_mandir}/man3/*.3* |
72 |
|
|
%{_bindir}/* |
73 |
|
|
%{_libdir}/ocaml/ |