]> git.pld-linux.org Git - packages/ocaml.git/blobdiff - ocaml.spec
- some cosmetics,
[packages/ocaml.git] / ocaml.spec
index 8c214a04da8304b4f7c9efded0731da4554710eb..c103bc5377a0dedfcde7978690adef6337c200de 100644 (file)
@@ -1,18 +1,18 @@
 Summary:       The Objective Caml compiler and programming environment
 Summary(pl):   Kompilator Objektowego Caml oraz ¶rodowisko programistyczne
 Name:          ocaml
-Version:       2.04
+Version:       3.01
 Release:       1
-URL:           http://pauillac.inria.fr/caml/
+License:       Distributable
 Vendor:                Group of implementors <caml-light@inria.fr>
-Source0:       ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}.tar.gz
-Source1:       ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.html.tar.gz
-Patch0:                %{name}-ext_prof.patch
-Patch1:                %{name}-opt.patch
-Copyright:     Distributable
 Group:         Development/Languages
 Group(de):     Entwicklung/Sprachen
 Group(pl):     Programowanie/Jêzyki
+Source0:       ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}.tar.gz
+Source1:       ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.html.tar.gz
+URL:           http://pauillac.inria.fr/caml/
+BuildRequires: tcl-devel
+BuildRequires: tk-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -52,26 +52,27 @@ Pliki trybu Emacsa dla j
 %prep
 %setup -q -T -b 0
 %setup -q -T -D -a 1
-%patch0 -p0
-%patch1 -p1
 
 %build
 ./configure \
-       -cc "%{__cc} %{rpmcflags}" \
+       -cc "%{__cc}" \
        -bindir %{_bindir} \
        -libdir %{_libdir}/%{name} \
        -mandir %{_mandir}/man1 \
        -host %{_host_alias} \
        -with-pthread
 
-%{__make} world bootstrap opt ocamlc.opt ocamlopt.opt
+%{__make} world bootstrap opt ocamlc.opt ocamlopt.opt \
+       BYTECCCOMPOPTS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 umask 022
+
 echo   BINDIR=$RPM_BUILD_ROOT%{_bindir} >> config/Makefile
 echo   LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name} >> config/Makefile
 echo   MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 >> config/Makefile
+
 make   install 
 %{__make} -C emacs install \
        EMACS="`if [ -x %{_bindir}/emacs ]; then echo emacs; \
@@ -80,14 +81,13 @@ make        install
 cp -p {parsing/{location,longident,parsetree},typing/typecore}.{cm,ml}i \
        $RPM_BUILD_ROOT%{_libdir}/%{name}
                        
-gzip -9nf LICENSE Changes README
+mv -f $RPM_BUILD_ROOT%{_bindir}/ocamlc $RPM_BUILD_ROOT%{_bindir}/ocamlc.byte
+mv -f $RPM_BUILD_ROOT%{_bindir}/ocamlc.opt $RPM_BUILD_ROOT%{_bindir}/ocamlc
+mv -f $RPM_BUILD_ROOT%{_bindir}/ocamlopt $RPM_BUILD_ROOT%{_bindir}/ocamlopt.byte
+mv -f $RPM_BUILD_ROOT%{_bindir}/ocamlopt.opt $RPM_BUILD_ROOT%{_bindir}/ocamlopt
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
 
-cd $RPM_BUILD_ROOT%{_bindir}
-mv -f ocamlc           $RPM_BUILD_ROOT%{_bindir}/ocamlc.byte
-mv -f ocamlc.opt       $RPM_BUILD_ROOT%{_bindir}/ocamlc
-mv -f ocamlopt         $RPM_BUILD_ROOT%{_bindir}/ocamlopt.byte
-mv -f ocamlopt.opt     $RPM_BUILD_ROOT%{_bindir}/ocamlopt
-rm -f                  $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
+gzip -9nf LICENSE Changes README
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.049067 seconds and 4 git commands to generate.