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}
|
||||
%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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user