/[smecontribs]/rpms/ocaml/contribs9/ocaml.spec
ViewVC logotype

Contents of /rpms/ocaml/contribs9/ocaml.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Wed Oct 2 19:18:32 2019 UTC (5 years, 1 month ago) by michel
Branch: MAIN
CVS Tags: ocaml-3_12_1-3_el6_sme, HEAD
Changes since 1.3: +4 -2 lines
Error occurred while calculating annotation data.
* Wed Oct 02 2019 Mab974 <mab974@gmail.com>
- fix Requires smeserver-release

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed