 |
ocaml.spec |
|
%define majorminor %(echo %version | cut -d. -f 1-2)
Name: ocaml
Version: 3.12.1
Release: 3mamba
Summary: The Objective Caml compiler and programming environment
Group: Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@...>
URL: http://caml.inria.fr
Source0: http://caml.inria.fr/pub/distrib/ocaml-%{majorminor}/ocaml-%{version}.tar.bz2
Source1: http://caml.inria.fr/distrib/ocaml-%{majorminor}/ocaml-%{majorminor}-refman.pdf
License: LGPL
BuildRequires: emacs-nox
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libtcl85-devel
BuildRequires: libtk85-devel
BuildRequires: libX11-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Caml is a general-purpose programming language, designed with program safety and reliability in mind.
It is very expressive, yet easy to learn and use.
Caml supports functional, imperative, and object-oriented programming styles.
It has been developed and distributed by INRIA, France's national research institute for computer science, since 1985.
%package manual
Group: Documentation
Summary: Documentation for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description manual
This package includes the documentation in pdf format for %{name}.
%prep
%setup -q
cp %{S:1} refman.pdf
%build
./configure \
-cc "gcc ${RPM_OPT_FLAGS/-fomit-frame-pointer/}" \
-prefix %{_prefix} \
-mandir %{_mandir}
%make -j1 world opt opt.opt
%make -j1 -C emacs ocamltags
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
PREFIX=%{buildroot}%{_prefix} \
MANDIR=%{buildroot}%{_mandir}
cd emacs
%makeinstall \
PREFIX=%{buildroot}%{_prefix} \
EMACSDIR=%{buildroot}%{_datadir}/emacs/site-lisp
make install-ocamltags BINDIR=%{buildroot}%{_bindir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/camlp4*
%{_bindir}/labltk
%{_bindir}/mkcamlp4
%{_bindir}/ocam*
%{_mandir}/man1/ocaml*.*
%{_mandir}/man3/*
%{_libdir}/ocaml
%{_datadir}/emacs/site-lisp/*
%doc LICENSE README Changes
%files manual
%defattr(-,root,root)
%doc refman.pdf
%changelog
* Wed Nov 30 2011 Automatic Build System <autodist@...> 3.12.1-3mamba
- automatic update by autodist
* Mon Nov 28 2011 Automatic Build System <autodist@...> 3.12.1-2mamba
- automatic update by autodist
* Tue Jul 19 2011 Automatic Build System <autodist@...> 3.12.1-1mamba
- automatic update by autodist
* Sun Dec 26 2010 Automatic Build System <autodist@...> 3.12.0-2mamba
- automatic update by autodist
* Fri Dec 17 2010 Silvan Calarco <silvan.calarco@...> 3.12.0-1mamba
- update to 3.12.0
* Tue Feb 09 2010 Automatic Build System <autodist@...> 3.11.2-1mamba
- automatic update by autodist
* Fri Nov 13 2009 Davide Madrisan <davide.madrisan@...> 3.11.1-2mamba
- fix compilation issues
- build ocamlopt
* Fri Jun 26 2009 Automatic Build System <autodist@...> 3.11.1-1mamba
- automatic update by autodist
* Mon Dec 08 2008 Silvan Calarco <silvan.calarco@...> 3.11.0-1mamba
- update to 3.11.0
* Mon Dec 08 2008 Silvan Calarco <silvan.calarco@...> 3.10.2-1mamba
- automatic update by autodist
* Mon Nov 05 2007 Aleph0 <aleph0@...> 3.10.0-3mamba
- rebuild
* Sat Sep 29 2007 Aleph0 <aleph0@...> 3.10.0-2mamba
- add official reference manual
* Fri Sep 28 2007 Aleph0 <aleph0@...> 3.10.0-1mamba
- update to 3.10.0
* Fri Mar 02 2007 Aleph0 <aleph0@...> 3.09.3-1qilnx
- package created by autospec
|
|
|