Sync from SUSE:SLFO:Main ocaml-calendar revision b2c38944c68756145470a50b40b8764f

This commit is contained in:
Adrian Schröter 2024-05-03 17:17:49 +02:00
commit fcfc80e6e3
6 changed files with 209 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>testsuite</package>
</multibuild>

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-calendar</param>
<param name="revision">d2ad63325bca1ec98ff0d292183614924df2668c</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/ocaml-community/calendar.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
ocaml-calendar-3.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

69
ocaml-calendar.changes Normal file
View File

@ -0,0 +1,69 @@
-------------------------------------------------------------------
Sun Jan 1 01:01:01 UTC 2023 - ohering@suse.de
- Update to version 3.0.0
See included CHANGES for details
- Remove obsolete ocaml-calendar.patch
-------------------------------------------------------------------
Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de
- use release revision and ocaml-calendar.patch
-------------------------------------------------------------------
Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de
- Require current ocaml-rpm-macros
- Build conditionally with ocaml-alcotest
-------------------------------------------------------------------
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
- Require current dune macros
- Use _service file
- Remove obsolete calendar-2.04-enable-debug.patch and
ocaml-calendar-buildcompare.patch
-------------------------------------------------------------------
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de
- Use Group: Development/Languages/OCaml
-------------------------------------------------------------------
Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de
- Wrap specfile conditionals to fix quilt setup
-------------------------------------------------------------------
Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de
- Remove autodeps for pre openSUSE 12.1 releases
-------------------------------------------------------------------
Mon May 30 06:39:17 UTC 2016 - ohering@suse.de
- Fix build with ocaml-4.03 (fate#320836)
ocaml-calendar-buildcompare.patch
-------------------------------------------------------------------
Tue Nov 10 10:18:47 UTC 2015 - ohering@suse.de
- Add hardcoded Provides for pre 12.1 repos
-------------------------------------------------------------------
Tue Sep 15 14:06:34 UTC 2015 - mlatimer@suse.com
- Remove calendarFAQ-2.6.txt from -devel package due to licensing
concerns.
-------------------------------------------------------------------
Mon Dec 8 20:18:19 UTC 2014 - mlatimer@suse.com
- Update spec file to use ocaml-rpm-macros, remove ExclusiveArch,
and ensure bytecode is built.
-------------------------------------------------------------------
Fri Dec 5 17:20:02 UTC 2014 - mlatimer@suse.com
- Initial commit using upstream version 2.04.

94
ocaml-calendar.spec Normal file
View File

@ -0,0 +1,94 @@
#
# spec file for package ocaml-calendar
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_with ocaml_calendar_testsuite
%define build_flavor @BUILD_FLAVOR@%nil
%if "%build_flavor" == "testsuite"
%if %{without ocaml_calendar_testsuite}
ExclusiveArch: do-not-build
%endif
%define nsuffix -testsuite
%else
%define nsuffix %nil
%endif
%define pkg ocaml-calendar
Name: %pkg%nsuffix
Version: 3.0.0
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Objective Caml library for managing dates and times
License: LGPL-2.0-only
Group: Development/Languages/OCaml
URL: https://opam.ocaml.org/packages/calendar
Source0: %pkg-%version.tar.xz
BuildRequires: ocaml
BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20230101
%if 1
BuildRequires: ocamlfind(re)
BuildRequires: ocamlfind(unix)
%endif
%if "%build_flavor" == "testsuite"
BuildRequires: ocamlfind(calendar)
BuildRequires: ocamlfind(alcotest)
%endif
%description
Objective Caml library for managing dates and times.
%package devel
Summary: Development files for %name
Group: Development/Languages/OCaml
Requires: %name = %version
%description devel
The %name-devel package contains libraries and signature files for
developing applications that use %name.
%prep
%autosetup -p1 -n %pkg-%version
%build
dune_release_pkgs='calendar'
%ocaml_dune_setup
%if "%build_flavor" == ""
%ocaml_dune_build
%endif
%install
%if "%build_flavor" == ""
%ocaml_dune_install
%ocaml_create_file_list
%endif
%if "%build_flavor" == "testsuite"
%check
dune_test_tolerate_fail='dune_test_tolerate_fail'
%ocaml_dune_test
%endif
%if "%build_flavor" == ""
%files -f %name.files
%files devel -f %name.files.devel
%endif
%changelog