%define name ocaml %define version 3.12.1 %define release 11 Summary: OCaml is an industrial strength programming language supporting functional, imperative and object-oriented styles. Name: %{name} Version: %{version} Release: %{release}%{?dist} Distribution: SME Server License: GNU GPL version 2 Group: SME Server/addon Source: %{name}-%{version}.tar.bz2 URL: http://ocaml.org Packager: Michel Begue BuildRoot: %_topdir/BUILDROOT BuildRequires: e-smith-devtools AutoReqProv: no %description %{name} is an industrial strength programming language supporting functional, imperative and object-oriented styles. %changelog * Wed Nov 04 2020 Michel Begue 3.12.1-11.sme - First import to sme 10 * Wed Oct 02 2019 Mab974 - fix Requires smeserver-release * Thu Sep 26 2019 Mab974 - initial release - builds from unchanged .tar.gz %prep echo "bindir: %{_bindir}/" echo "libdir: %{_libdir}/" echo "mandir: %{_mandir}/" %setup -q %build ./configure \ -cc "%{__cc} %{optflags}" \ -bindir "%{_bindir}" \ -libdir "%{_libdir}/ocaml" \ -mandir "%{_mandir}" \ -prefix "%{_prefix}" \ -verbose \ -with-pthread \ #%{__make} %{?_smp_mflags} world bootstrap opt opt.opt %{__make} world.opt %install ##rm -fr $RPM_BUILD_ROOT ##%make_install %{__rm} -rf %{buildroot} %{__make} install BINDIR="%{buildroot}%{_bindir}" LIBDIR="%{buildroot}%{_libdir}/ocaml" MANDIR="%{buildroot}%{_mandir}" %{__perl} -pi.orig -e 's|^%{buildroot}||' %{buildroot}%{_libdir}/ocaml/ld.conf %clean %{__rm} -rf %{buildroot} ##rm -fr $RPM_BUILD_ROOT %pre %post %preun %postun %files %defattr(-, root, root, 0755) %doc Changes INSTALL LICENSE README %doc %{_mandir}/man1/*.1* %doc %{_mandir}/man3/*.3* %{_bindir}/* %{_libdir}/ocaml/