X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcamlp5.git;a=blobdiff_plain;f=camlp5.spec;h=3f73e966023f262be3fd9b000c093ecb0af6f8e0;hp=13f4000209974866665c5f07c0600e1df38e64fc;hb=6930534c3d4908a3fe61970b416109365c77df79;hpb=d4aacc8e65498312e1ce54787a73c5fa4848d1e3 diff --git a/camlp5.spec b/camlp5.spec index 13f4000..3f73e96 100644 --- a/camlp5.spec +++ b/camlp5.spec @@ -10,18 +10,20 @@ %if %{without ocaml_opt} %define _enable_debug_packages 0 %endif +%define _debugsource_packages 0 Summary: Objective Caml Preprocessor Summary(pl.UTF-8): Preprocesor OCamla Name: camlp5 Version: 8.00.02 -Release: 1 +Release: 2 License: distributable Group: Development/Languages #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 +Patch1: %{name}-flags.patch URL: https://camlp5.github.io/ BuildRequires: db-devel >= 4.1 BuildRequires: ocaml @@ -84,10 +86,13 @@ Preprocesor OCamla - dokumentacja w formacie PDF. %prep %setup -q -n %{name}-rel%{version} %patch0 -p1 +%patch1 -p1 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \ etc/mkcamlp5.pl +%{__sed} -i -e 's/DEBUG=/&-ccopt "%{rpmcflags}" -cclib "%{rpmldflags}"/' config/Makefile.tpl + %build ./configure \ -prefix %{_prefix} \ @@ -96,6 +101,7 @@ Preprocesor OCamla - dokumentacja w formacie PDF. -mandir %{_mandir}/man1 %{__make} -j1 world%{?with_ocaml_opt:.opt} + %{__make} -j1 -C doc/htmlp pdf %install