remove braces from rpmspec macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=29
This commit is contained in:
parent
4425b0ebaa
commit
89331f9920
@ -16,15 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define build_flavor @BUILD_FLAVOR@%{nil}
|
%define build_flavor @BUILD_FLAVOR@%nil
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
%define nsuffix -testsuite
|
%define nsuffix -testsuite
|
||||||
%else
|
%else
|
||||||
%define nsuffix %{nil}
|
%define nsuffix %nil
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define pkg ocaml-calendar
|
%define pkg ocaml-calendar
|
||||||
Name: %{pkg}%{nsuffix}
|
Name: %pkg%nsuffix
|
||||||
Version: 2.04
|
Version: 2.04
|
||||||
Release: 0
|
Release: 0
|
||||||
%{?ocaml_preserve_bytecode}
|
%{?ocaml_preserve_bytecode}
|
||||||
@ -32,7 +32,7 @@ Summary: Objective Caml library for managing dates and times
|
|||||||
License: LGPL-2.0-only
|
License: LGPL-2.0-only
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
URL: https://opam.ocaml.org/packages/calendar
|
URL: https://opam.ocaml.org/packages/calendar
|
||||||
Source0: %{pkg}-%{version}.tar.xz
|
Source0: %pkg-%version.tar.xz
|
||||||
Patch0: ocaml-calendar.patch
|
Patch0: ocaml-calendar.patch
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-dune
|
BuildRequires: ocaml-dune
|
||||||
@ -42,7 +42,7 @@ BuildRequires: ocamlfind(re)
|
|||||||
BuildRequires: ocamlfind(unix)
|
BuildRequires: ocamlfind(unix)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
BuildRequires: ocamlfind(calendar)
|
BuildRequires: ocamlfind(calendar)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -50,40 +50,40 @@ BuildRequires: ocamlfind(calendar)
|
|||||||
Objective Caml library for managing dates and times.
|
Objective Caml library for managing dates and times.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %name
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
Requires: %{name} = %{version}
|
Requires: %name = %version
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and signature files for
|
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}
|
%autosetup -p1 -n %pkg-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
dune_release_pkgs='calendar'
|
dune_release_pkgs='calendar'
|
||||||
%ocaml_dune_setup
|
%ocaml_dune_setup
|
||||||
%if "%{build_flavor}" == ""
|
%if "%build_flavor" == ""
|
||||||
%ocaml_dune_build
|
%ocaml_dune_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if "%{build_flavor}" == ""
|
%if "%build_flavor" == ""
|
||||||
%ocaml_dune_install
|
%ocaml_dune_install
|
||||||
%ocaml_create_file_list
|
%ocaml_create_file_list
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{build_flavor}" == "testsuite"
|
%if "%build_flavor" == "testsuite"
|
||||||
%check
|
%check
|
||||||
dune_test_tolerate_fail='dune_test_tolerate_fail'
|
dune_test_tolerate_fail='dune_test_tolerate_fail'
|
||||||
%ocaml_dune_test
|
%ocaml_dune_test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{build_flavor}" == ""
|
%if "%build_flavor" == ""
|
||||||
%files -f %{name}.files
|
%files -f %name.files
|
||||||
|
|
||||||
%files devel -f %{name}.files.devel
|
%files devel -f %name.files.devel
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user