X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcamlp5.git;a=blobdiff_plain;f=camlp5.spec;h=064a07995e733c6eb4591147fbd8765b6fb764de;hp=ba467d70c4efc4afe69a2969462ac616f0e30d82;hb=7772940771ea38755a989b426c7767ec45185235;hpb=6b574e5a4fb5724d1891518fe08a2d859119fde3 diff --git a/camlp5.spec b/camlp5.spec index ba467d7..064a079 100644 --- a/camlp5.spec +++ b/camlp5.spec @@ -1,45 +1,59 @@ +# +# Conditional build: +%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) + +# not yet available on x32 (ocaml 4.02.1), update when upstream will support it +%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 +%undefine with_ocaml_opt +%endif + Summary: Objective Caml Preprocessor Summary(pl.UTF-8): Preprocesor OCamla Name: camlp5 -Version: 5.11 -Release: 0.1 +Version: 6.17 +%define gitver rel617 +Release: 1 License: distributable Group: Development/Languages -Source0: http://pauillac.inria.fr/~ddr/camlp5/distrib/src/%{name}-%{version}.tgz -# Source0-md5: 26d69abd669c5fda43dbf35074debc81 -Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-%{version}.pdf -# Source1-md5: 57cf4eb162568d9b755e8120a1b82d43 +#Source0: http://camlp5.gforge.inria.fr/distrib/src/%{name}-%{version}.tgz +Source0: https://github.com/camlp5/camlp5/archive/%{gitver}/%{name}-%{version}.tar.gz +# Source0-md5: 572e0fa053715e40a40415ea3ca5d4ea +Source1: http://camlp5.gforge.inria.fr/doc/pdf/%{name}-6.00.pdf +# Source1-md5: b241eabfeb48f22b0fbd3e497198a76a URL: http://caml.inria.fr/ BuildRequires: db-devel >= 4.1 +BuildRequires: ocaml +BuildRequires: ocaml-ocamlbuild +%requires_eq ocaml-runtime Requires: %{name} = %{epoch}:%{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers +Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers tools for syntax (grammars) and the ability to modify the concrete syntax of the language (quotations, syntax extensions). -Camlp4 can parse normal Ocaml concrete syntax or any other +Camlp5 can parse normal Ocaml concrete syntax or any other user-definable syntax. As an example, an alternative syntax is provided, named revised, because it tries to fix some small problems of the normal syntax. -Camlp4 can pretty print the normal Ocaml concrete syntax or the +Camlp5 can pretty print the normal Ocaml concrete syntax or the revised one. It is therefore always possible to have a version of your sources compilable by the Objective Caml compiler without preprocessing. %description -l pl.UTF-8 -Camlp4 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania +Camlp5 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania składnią (gramatyki) oraz możliwość modyfikowania oryginalnej składni języka (cytowania, rozszerzenia). -Camlp4 może sparsować oryginalną składnię Ocamla lub dowolną inną +Camlp5 może sparsować oryginalną składnię Ocamla lub dowolną inną definiowalną przez użytkownika. Jako przykład podana jest alternatywna składnia (revised syntax), która próbuje poprawić drobne problemy występujące w składni oryginalnej. -Camlp4 umie ładnie formatować źródła zarówno w oryginalnej jak i +Camlp5 umie ładnie formatować źródła zarówno w oryginalnej jak i poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej składni na drugą. @@ -55,7 +69,8 @@ Objective Caml Preprocessor - HTML documentation. Preprocesor OCamla - dokumentacja HTML. %prep -%setup -q +%setup -q -n %{name}-%{gitver} + cp %{SOURCE1} doc/camlp4.pdf %build @@ -65,7 +80,7 @@ cp %{SOURCE1} doc/camlp4.pdf -mandir %{_mandir}/man1 \ -transitional -%{__make} -j1 world.opt +%{__make} -j1 world%{?with_ocaml_opt:.opt} %{__make} -j1 -C doc/htmlp %install @@ -77,9 +92,9 @@ rm -rf $RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir} # broken build system -for f in camlp5o.opt.1 camlp5r.opt.1 mkcamlp5.1 ocpp5.1 \ - camlp5o.1 camlp5r.1 camlp5sch.1 mkcamlp5.opt.1 ; do - rm -f $RPM_BUILD_ROOT%{_mandir}/man1/$f +for f in mkcamlp5.1 ocpp5.1 camlp5o.1 camlp5r.1 camlp5sch.1 \ + %{?with_ocaml_opt:camlp5o.opt.1 camlp5r.opt.1 mkcamlp5.opt.1} ; do + %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/$f echo '.so camlp5.1' >$RPM_BUILD_ROOT%{_mandir}/man1/$f done @@ -88,9 +103,14 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/* +%doc CHANGES DEVEL ICHANGES MODE README UPGRADING doc/camlp4.pdf +%attr(755,root,root) %{_bindir}/camlp5* +%attr(755,root,root) %{_bindir}/mkcamlp5* +%attr(755,root,root) %{_bindir}/ocpp5 %{_libdir}/ocaml/%{name} -%{_mandir}/man1/* +%{_mandir}/man1/camlp5*.1* +%{_mandir}/man1/mkcamlp5*.1* +%{_mandir}/man1/ocpp5.1* %files doc-html %defattr(644,root,root,755)