]> git.pld-linux.org Git - packages/camlp5.git/blobdiff - camlp5.spec
- updated to 8.00.02
[packages/camlp5.git] / camlp5.spec
index 8f164cb4d745d2f6a0e2bfb463f97fd707fe4a06..13f4000209974866665c5f07c0600e1df38e64fc 100644 (file)
@@ -7,20 +7,22 @@
 %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.17
-%define                gitver  rel617
-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:       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/
+#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
@@ -80,19 +82,21 @@ Objective Caml Preprocessor - PDF documentation.
 Preprocesor OCamla - dokumentacja w formacie PDF.
 
 %prep
-%setup -q -n %{name}-%{gitver}
+%setup -q -n %{name}-rel%{version}
+%patch0 -p1
 
-cp %{SOURCE1} doc/camlp5.pdf
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
+      etc/mkcamlp5.pl
 
 %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
@@ -114,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES DEVEL ICHANGES MODE README UPGRADING
+%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
@@ -129,4 +133,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files doc-pdf
 %defattr(644,root,root,755)
-%doc doc/camlp5.pdf
+%doc doc/htmlp/camlp5.pdf
This page took 0.063798 seconds and 4 git commands to generate.