]> git.pld-linux.org Git - packages/ocaml.git/blobdiff - ocaml.spec
- release 2
[packages/ocaml.git] / ocaml.spec
index 8858acc01a6c9c2fd843516dbd2093b35396f946..a8b3de0520d72b88f1905fe2de917b7ff5aee685 100644 (file)
@@ -1,8 +1,8 @@
 Summary:       The Objective Caml compiler and programming environment
 Summary(pl):   Kompilator Objektowego Caml oraz ¶rodowisko programistyczne
 Name:          ocaml
-Version:       3.01
-Release:       1
+Version:       3.02
+Release:       2
 License:       Distributable
 Vendor:                Group of implementors <caml-light@inria.fr>
 Group:         Development/Languages
@@ -13,9 +13,12 @@ Source1:     ftp://ftp.inria.fr/lang/caml-light/%{name}-%{version}-refman.info.tar.g
 URL:           http://pauillac.inria.fr/caml/
 BuildRequires: tcl-devel
 BuildRequires: tk-devel
-BuildRequires: xemacs
+BuildRequires: xemacs-common
+BuildRequires: xemacs-fsf-compat-pkg
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                no_install_post_strip   1
+
 %description
 Objective Caml is a high-level, strongly-typed, functional and
 object-oriented programming language from the ML family of languages.
@@ -60,7 +63,7 @@ Pliki trybu Emacsa dla j
        -bindir %{_bindir} \
        -libdir %{_libdir}/%{name} \
        -mandir %{_mandir}/man1 \
-       -host %{_host_alias} \
+       -host %{_host} \
        -with-pthread
 
 %{__make} world bootstrap opt ocamlc.opt ocamlopt.opt \
@@ -93,9 +96,9 @@ cp -p {parsing/{location,longident,parsetree},typing/typecore}.{cm,ml}i \
        $RPM_BUILD_ROOT%{_libdir}/%{name}
                        
 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
+ln -sf %{_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
+ln -sf %{_bindir}/ocamlopt.opt $RPM_BUILD_ROOT%{_bindir}/ocamlopt
 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.ml
 
 install -d $RPM_BUILD_ROOT%{_infodir}
@@ -107,17 +110,24 @@ gzip -9nf LICENSE Changes README
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%fix_info_dir
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
-%fix_info_dir
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 
 %files
 %defattr(644,root,root,755)
 %doc *.gz
 %attr(755, root, root) %{_bindir}/*
-%{_libdir}/%{name}
+%{_libdir}/%{name}/caml
+%{_libdir}/%{name}/labltk
+%{_libdir}/%{name}/threads
+%{_libdir}/%{name}/*.*
+%attr(755,root,root) %{_libdir}/%{name}/expunge
+%attr(755,root,root) %{_libdir}/%{name}/extract_crc
+%attr(755,root,root) %{_libdir}/%{name}/camlheader
+%attr(755,root,root) %{_libdir}/%{name}/camlheader_ur
 %{_mandir}/man*/*
 %{_infodir}/*
 
This page took 0.226194 seconds and 4 git commands to generate.