2014-12-08 09:36:25 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-calendar
|
|
|
|
#
|
2017-07-17 13:01:14 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-12-08 09:36:25 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-11-01 23:39:13 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-12-08 09:36:25 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-02-21 14:40:18 +01:00
|
|
|
%bcond_with ocaml_alcotest
|
2014-12-08 09:36:25 +01:00
|
|
|
Name: ocaml-calendar
|
|
|
|
Version: 2.04
|
|
|
|
Release: 0
|
2017-07-25 10:40:01 +02:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2014-12-08 09:36:25 +01:00
|
|
|
Summary: Objective Caml library for managing dates and times
|
|
|
|
License: LGPL-2.0
|
2017-07-25 15:21:13 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2019-11-01 23:39:13 +01:00
|
|
|
Url: https://github.com/ocaml-community/calendar
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-dune
|
2020-02-21 14:40:18 +01:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20200220
|
2019-11-01 23:39:13 +01:00
|
|
|
BuildRequires: ocamlfind(re)
|
|
|
|
BuildRequires: ocamlfind(unix)
|
2020-02-21 14:40:18 +01:00
|
|
|
%if %{with ocaml_alcotest}
|
2019-11-13 15:57:41 +01:00
|
|
|
BuildRequires: ocamlfind(alcotest)
|
|
|
|
%endif
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Objective Caml library for managing dates and times.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2017-07-25 15:21:13 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2016-06-16 12:29:33 +02:00
|
|
|
Requires: %{name} = %{version}
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2019-11-01 23:39:13 +01:00
|
|
|
%autosetup -p1
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%build
|
2019-11-03 11:23:06 +01:00
|
|
|
sed -i~ '/system date/d' src/dune
|
|
|
|
diff -u "$_"~ "$_" && exit 1
|
2019-11-01 23:39:13 +01:00
|
|
|
dune_release_pkgs='calendar'
|
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%install
|
2019-11-01 23:39:13 +01:00
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
|
|
|
|
|
|
|
%check
|
2020-02-21 14:56:23 +01:00
|
|
|
dune_test_tolerate_fail='dune_test_tolerate_fail'
|
2019-11-01 23:39:13 +01:00
|
|
|
%ocaml_dune_test
|
2014-12-08 09:36:25 +01:00
|
|
|
|
2019-11-01 23:39:13 +01:00
|
|
|
%files -f %{name}.files
|
2014-12-08 09:36:25 +01:00
|
|
|
|
2019-11-01 23:39:13 +01:00
|
|
|
%files devel -f %{name}.files.devel
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%changelog
|