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
This commit is contained in:
parent
9213f0a243
commit
85e31680fd
@ -16,8 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_with ocaml_csexp_testsuite
|
||||||
%define build_flavor @BUILD_FLAVOR@%{nil}
|
%define build_flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%{build_flavor}" == "testsuite"
|
||||||
|
%if %{without ocaml_csexp_testsuite}
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define nsuffix -testsuite
|
%define nsuffix -testsuite
|
||||||
%else
|
%else
|
||||||
%define nsuffix %{nil}
|
%define nsuffix %{nil}
|
||||||
@ -31,11 +35,12 @@ Release: 0
|
|||||||
Summary: Parsing and printing of S-expressions in Canonical form
|
Summary: Parsing and printing of S-expressions in Canonical form
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
|
BuildRoot: %_tmppath/%name-%version-build
|
||||||
URL: https://opam.ocaml.org/packages/csexp
|
URL: https://opam.ocaml.org/packages/csexp
|
||||||
Source0: %{pkg}-%{version}.tar.xz
|
Source0: %{pkg}-%{version}.tar.xz
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-dune
|
BuildRequires: ocaml-dune
|
||||||
BuildRequires: ocaml-rpm-macros >= 20210121
|
BuildRequires: ocaml-rpm-macros >= 20210409
|
||||||
|
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%{build_flavor}" == "testsuite"
|
||||||
BuildRequires: ocamlfind(csexp)
|
BuildRequires: ocamlfind(csexp)
|
||||||
@ -59,7 +64,7 @@ The %{name}-devel package contains libraries and signature files for
|
|||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pkg}-%{version}
|
%setup -q -n %{pkg}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
dune_release_pkgs='csexp'
|
dune_release_pkgs='csexp'
|
||||||
@ -81,8 +86,10 @@ dune_release_pkgs='csexp'
|
|||||||
|
|
||||||
%if "%{build_flavor}" == ""
|
%if "%{build_flavor}" == ""
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%files devel -f %{name}.files.devel
|
%files devel -f %{name}.files.devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user