From 147af2c45567c253cce824f720dfb28cf79ec2371f5eaef95170c424e502166b Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 17 Jul 2017 12:41:58 +0000 Subject: [PATCH] Wrap specfile conditionals to fix quilt setup OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-libvirt?expand=0&rev=17 --- ocaml-libvirt.changes | 5 +++++ ocaml-libvirt.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ocaml-libvirt.changes b/ocaml-libvirt.changes index 61a67c1..c1c63be 100644 --- a/ocaml-libvirt.changes +++ b/ocaml-libvirt.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-libvirt.spec b/ocaml-libvirt.spec index b475ba5..938b144 100644 --- a/ocaml-libvirt.spec +++ b/ocaml-libvirt.spec @@ -19,7 +19,9 @@ Name: ocaml-libvirt Version: 0.6.1.4.20160205.8853f5a Release: 0 +%if %{defined ocaml_preserve_bytecode} %{ocaml_preserve_bytecode} +%endif Summary: OCaml binding for libvirt License: LGPL-2.0+ Group: Development/Libraries/Other @@ -155,7 +157,7 @@ _EOF_ %{_bindir}/* %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* -%if %{ocaml_native_compiler} +%if %{defined ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmxs %endif %{_libdir}/ocaml/*/*.so @@ -167,7 +169,7 @@ _EOF_ %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %{_libdir}/ocaml/*/*.a -%if %{ocaml_native_compiler} +%if %{defined ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmxa %endif