X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcamlp5.git;a=blobdiff_plain;f=camlp5.spec;h=13f4000209974866665c5f07c0600e1df38e64fc;hp=a7f91384fd6e69f1dfb7dd0b2bc6cc135f6168db;hb=d4aacc8;hpb=b3f53cec0722f7187ac92908f446484eb2cc058c diff --git a/camlp5.spec b/camlp5.spec index a7f9138..13f4000 100644 --- a/camlp5.spec +++ b/camlp5.spec @@ -3,24 +3,29 @@ %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 +%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 %undefine with_ocaml_opt %endif +%if %{without ocaml_opt} +%define _enable_debug_packages 0 +%endif + Summary: Objective Caml Preprocessor Summary(pl.UTF-8): Preprocesor OCamla Name: camlp5 -Version: 6.15 -Release: 2 +Version: 8.00.02 +Release: 1 License: distributable Group: Development/Languages -Source0: http://camlp5.gforge.inria.fr/distrib/src/%{name}-%{version}.tgz -# Source0-md5: ad79f4b4384109fbb92b1b3bcb105224 -Source1: http://camlp5.gforge.inria.fr/doc/pdf/%{name}-6.00.pdf -# Source1-md5: b241eabfeb48f22b0fbd3e497198a76a -URL: http://caml.inria.fr/ +#Source0Download: https://github.com/camlp5/camlp5/releases +Source0: https://github.com/camlp5/camlp5/archive/rel%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 096076be4b26034643508511e834ccc2 +Patch0: no-warn-error.patch +URL: https://camlp5.github.io/ 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) @@ -55,8 +60,8 @@ poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej składni na drugą. %package doc-html -Summary: Objective Caml Preprocessor - HTML documentation -Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML +Summary: Objective Caml Preprocessor - HTML documentation +Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML Group: Development/Languages %description doc-html @@ -65,20 +70,33 @@ Objective Caml Preprocessor - HTML documentation. %description doc-html -l pl.UTF-8 Preprocesor OCamla - dokumentacja HTML. +%package doc-pdf +Summary: Objective Caml Preprocessor - PDF documentation +Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja w formacie PDF +Group: Development/Languages + +%description doc-pdf +Objective Caml Preprocessor - PDF documentation. + +%description doc-pdf -l pl.UTF-8 +Preprocesor OCamla - dokumentacja w formacie PDF. + %prep -%setup -q +%setup -q -n %{name}-rel%{version} +%patch0 -p1 -cp %{SOURCE1} doc/camlp4.pdf +%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \ + etc/mkcamlp5.pl -%build +%build ./configure \ + -prefix %{_prefix} \ -bindir %{_bindir} \ -libdir %{_libdir}/ocaml \ - -mandir %{_mandir}/man1 \ - -transitional + -mandir %{_mandir}/man1 %{__make} -j1 world%{?with_ocaml_opt:.opt} -%{__make} -j1 -C doc/htmlp +%{__make} -j1 -C doc/htmlp pdf %install rm -rf $RPM_BUILD_ROOT @@ -100,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc CHANGES DEVEL ICHANGES MODE README UPGRADING doc/camlp4.pdf +%doc CHANGES DEVEL ICHANGES MODE README.md UPGRADING %attr(755,root,root) %{_bindir}/camlp5* %attr(755,root,root) %{_bindir}/mkcamlp5* %attr(755,root,root) %{_bindir}/ocpp5 @@ -112,3 +130,7 @@ rm -rf $RPM_BUILD_ROOT %files doc-html %defattr(644,root,root,755) %doc doc/html/* + +%files doc-pdf +%defattr(644,root,root,755) +%doc doc/htmlp/camlp5.pdf