Sync from SUSE:SLFO:Main ocaml-pyml revision 9f8f03ca30aa043b35c5f72270135212

This commit is contained in:
Adrian Schröter 2024-05-03 17:22:46 +02:00
commit 1bf0f21b86
6 changed files with 181 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-pyml</param>
<param name="revision">e33f4c49cc97e7bc6f8e5faaa64cce994470642e</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/thierry-martinez/pyml.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-pyml-20220905.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

38
ocaml-pyml.changes Normal file
View File

@ -0,0 +1,38 @@
-------------------------------------------------------------------
Sun Jan 1 01:01:01 UTC 2023 - ohering@suse.de
- Update to version 20220905
use _multibuild for testsuite
-------------------------------------------------------------------
Wed Jun 22 22:22:22 UTC 2022 - ohering@suse.de
- Update to version 20220615
-------------------------------------------------------------------
Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de
- Update to version 20220325
-------------------------------------------------------------------
Sat Sep 25 20:58:01 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Don't use python(abi) construct it is not reliably supported in
openSUSE. Related to bsc#1187262
-------------------------------------------------------------------
Sat Sep 11 12:34:56 UTC 2021 - ohering@suse.de
- Update to version 20210924
build with dune
-------------------------------------------------------------------
Tue Jun 15 15:15:15 UTC 2021 - ohering@suse.de
- Select any python flavor via python(abi)
-------------------------------------------------------------------
Fri Apr 9 09:09:09 UTC 2021 - ohering@suse.de
- Initial version 20210226

97
ocaml-pyml.spec Normal file
View File

@ -0,0 +1,97 @@
#
# spec file for package ocaml-pyml
#
# 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_pyml_testsuite
%define build_flavor @BUILD_FLAVOR@%nil
%if "%build_flavor" == "testsuite"
%if %{without ocaml_pyml_testsuite}
ExclusiveArch: do-not-build
%endif
%define nsuffix -testsuite
%else
%define nsuffix %nil
%endif
%define pkg ocaml-pyml
Name: %pkg%nsuffix
Version: 20220905
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Stdcompat: compatibility module for OCaml standard library
License: BSD-2-Clause
Group: Development/Languages/OCaml
URL: https://opam.ocaml.org/packages/pyml
Source0: %pkg-%version.tar.xz
BuildRequires: ocaml
BuildRequires: ocaml-dune >= 2.8
BuildRequires: ocaml-rpm-macros >= 20230101
BuildRequires: ocamlfind(bigarray)
BuildRequires: ocamlfind(stdcompat)
BuildRequires: ocamlfind(unix)
%if "%build_flavor" == "testsuite"
BuildRequires: ocamlfind(pyml)
%if 0%{?suse_version} > 1315
BuildRequires: python3-numpy
%else
BuildRequires: python-numpy
%endif
BuildRequires: which
%endif
%description
Stdcompat is a compatibility layer allowing programs to use some recent additions to the OCaml standard library while preserving the ability to be compiled on former versions of OCaml.
%package devel
Summary: Development files for %name
Group: Development/Languages/OCaml
Requires: %name = %version
Requires: which
%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='pyml'
%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
%ocaml_dune_test
%endif
%if "%build_flavor" == ""
%files -f %name.files
%files devel -f %name.files.devel
%endif
%changelog