From a75282ae51344173cbc6030b1fcd2a3ffb4a85b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 20 Oct 2023 14:16:41 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-rpds-py revision 8297e1fe14ad3972cbe96a0855c8bb88 --- .gitattributes | 23 +++++++++++++++ _service | 23 +++++++++++++++ _servicedata | 4 +++ cargo_config | 5 ++++ python-rpds-py.changes | 9 ++++++ python-rpds-py.spec | 65 ++++++++++++++++++++++++++++++++++++++++++ rpds.py-0.7.1.obscpio | 3 ++ rpds.py.obsinfo | 4 +++ vendor.tar.zst | 3 ++ 9 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 cargo_config create mode 100644 python-rpds-py.changes create mode 100644 python-rpds-py.spec create mode 100644 rpds.py-0.7.1.obscpio create mode 100644 rpds.py.obsinfo create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/_service b/_service new file mode 100644 index 0000000..b052085 --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + https://github.com/Julian/rpds.py + git + .git + v0.7.1 + @PARENT_TAG@ + enable + v(.*) + + + + *.tar + gz + + + rpds.py + true + + + rpds.py + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..021dd0e --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/Julian/rpds.py + bb7264c86e006b74b30c10436913ae4616e5cb76 \ No newline at end of file diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..a476f35 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/python-rpds-py.changes b/python-rpds-py.changes new file mode 100644 index 0000000..5fe9cc5 --- /dev/null +++ b/python-rpds-py.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Fri May 5 11:14:59 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Mon Mar 20 14:29:30 UTC 2023 - Johannes Kastl + +- new package python-rpds-py, needed as dependency for jsonschema diff --git a/python-rpds-py.spec b/python-rpds-py.spec new file mode 100644 index 0000000..4c127e6 --- /dev/null +++ b/python-rpds-py.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-rpds-py +# +# 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/ +# + + +%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' +%{?sle15_python_module_pythons} +Name: python-rpds-py +Version: 0.7.1 +Release: 0 +Summary: Python bindings to Rust's persistent data structures (rpds) +License: MIT +URL: https://github.com/Julian/rpds.py +Source: rpds.py-%{version}.tar.gz +Source1: vendor.tar.zst +Source2: cargo_config +BuildRequires: %{python_module maturin} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: cargo +BuildRequires: cargo-packaging +BuildRequires: python-rpm-macros +BuildRequires: rust +BuildRequires: zstd +# Tests +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +%python_subpackages + +%description +Python bindings to Rust's persistent data structures (rpds) + +%prep +%autosetup -a1 -n rpds.py-%{version} +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +export RUSTFLAGS=%{rustflags} +%pyproject_wheel + +%install +export RUSTFLAGS=%{rustflags} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%files %{python_files} +%{python_sitearch}/rpds +%{python_sitearch}/rpds_py-%{version}.dist-info/ + +%changelog diff --git a/rpds.py-0.7.1.obscpio b/rpds.py-0.7.1.obscpio new file mode 100644 index 0000000..bf2950d --- /dev/null +++ b/rpds.py-0.7.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f1945b235ef07463e80dea994be57f9e82974932d74352e56eff299cc01285e +size 58379 diff --git a/rpds.py.obsinfo b/rpds.py.obsinfo new file mode 100644 index 0000000..39e8342 --- /dev/null +++ b/rpds.py.obsinfo @@ -0,0 +1,4 @@ +name: rpds.py +version: 0.7.1 +mtime: 1679340311 +commit: bb7264c86e006b74b30c10436913ae4616e5cb76 diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..beb6a6f --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d9a36333dfccdd1c45a9b232cfa9e0f34d4e34699d919ec100c7340bdea52ec +size 7542665