From 3e9ad5976f9723dfc619da28ce846c81b561af827a3cead66d1266184dc14a7d Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 17 Jul 2017 12:40:30 +0000 Subject: [PATCH] Wrap specfile conditionals to fix quilt setup OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-cppo?expand=0&rev=33 --- ocaml-cppo.changes | 5 +++++ ocaml-cppo.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ocaml-cppo.changes b/ocaml-cppo.changes index 50fec18..095fac5 100644 --- a/ocaml-cppo.changes +++ b/ocaml-cppo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de + +- Wrap specfile conditionals to fix quilt setup + ------------------------------------------------------------------- Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de diff --git a/ocaml-cppo.spec b/ocaml-cppo.spec index 1f47b89..e827375 100644 --- a/ocaml-cppo.spec +++ b/ocaml-cppo.spec @@ -20,7 +20,9 @@ Name: ocaml-cppo Version: 1.5.0 Release: 0 +%if %{defined ocaml_preserve_bytecode} %{ocaml_preserve_bytecode} +%endif Summary: The C preprocessor written in OCaml License: BSD-3-Clause Group: Development/Libraries/Other @@ -118,7 +120,7 @@ _EOF_ %{_bindir}/* %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* -%if %{ocaml_native_compiler} +%if %{defined ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmxs %endif @@ -127,7 +129,7 @@ _EOF_ %{oasis_docdir_html} %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* -%if %{ocaml_native_compiler} +%if %{defined ocaml_native_compiler} %{_libdir}/ocaml/*/*.a %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmxa