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

Annotation of /rpms/ocaml/contribs10/ocaml.spec

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


Revision 1.1 - (hide annotations) (download)
Wed Nov 4 17:46:51 2020 UTC (4 years ago) by michel
Branch: MAIN
CVS Tags: ocaml-3_12_1-11_el7_sme, HEAD
* Wed Nov 04 2020 Michel Begue <mab974@gmail.com> 3.12.1-11.sme
- First import to sme 10

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

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