From 85e31680fde47ccc35bfc4f0f872902a7c1c7de35d7e0a203faeaeaf545a8a2e Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 13 Apr 2021 13:37:15 +0000 Subject: [PATCH] Accepting request 884965 from Archiving:unison:buildrequires OBS-URL: https://build.opensuse.org/request/show/884965 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-csexp?expand=0&rev=7 --- ocaml-csexp.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ocaml-csexp.spec b/ocaml-csexp.spec index a6e3c76..6aa51b7 100644 --- a/ocaml-csexp.spec +++ b/ocaml-csexp.spec @@ -16,8 +16,12 @@ # +%bcond_with ocaml_csexp_testsuite %define build_flavor @BUILD_FLAVOR@%{nil} %if "%{build_flavor}" == "testsuite" +%if %{without ocaml_csexp_testsuite} +ExclusiveArch: do-not-build +%endif %define nsuffix -testsuite %else %define nsuffix %{nil} @@ -31,11 +35,12 @@ Release: 0 Summary: Parsing and printing of S-expressions in Canonical form License: MIT Group: Development/Languages/OCaml +BuildRoot: %_tmppath/%name-%version-build URL: https://opam.ocaml.org/packages/csexp Source0: %{pkg}-%{version}.tar.xz BuildRequires: ocaml BuildRequires: ocaml-dune -BuildRequires: ocaml-rpm-macros >= 20210121 +BuildRequires: ocaml-rpm-macros >= 20210409 %if "%{build_flavor}" == "testsuite" BuildRequires: ocamlfind(csexp) @@ -59,7 +64,7 @@ The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep -%autosetup -p1 -n %{pkg}-%{version} +%setup -q -n %{pkg}-%{version} %build dune_release_pkgs='csexp' @@ -81,8 +86,10 @@ dune_release_pkgs='csexp' %if "%{build_flavor}" == "" %files -f %{name}.files +%defattr(-,root,root,-) %files devel -f %{name}.files.devel +%defattr(-,root,root,-) %endif