diff --git a/SPECS/python-jsonschema-specifications/python-jsonschema-specifications.spec b/SPECS/python-jsonschema-specifications/python-jsonschema-specifications.spec new file mode 100644 index 000000000..3e4deb24b --- /dev/null +++ b/SPECS/python-jsonschema-specifications/python-jsonschema-specifications.spec @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: Suyun +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname jsonschema-specifications +%global modname jsonschema_specifications + +Name: python-%{srcname} +Version: 2025.9.1 +Release: %autorelease +Summary: The JSON Schema meta-schemas and vocabularies, exposed as a Registry +License: MIT +URL: https://github.com/python-jsonschema/jsonschema-specifications +#!RemoteAsset: sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d +Source0: https://files.pythonhosted.org/packages/source/j/%{srcname}/jsonschema_specifications-%{version}.tar.gz +BuildArch: noarch +BuildSystem: pyproject + +BuildOption(install): -l %{modname} + +BuildRequires: pyproject-rpm-macros +BuildRequires: pkgconfig(python3) +BuildRequires: python3dist(pytest) + +Provides: python3-%{srcname} +%python_provide python3-%{srcname} + +%description +%{summary}. + +%prep +%autosetup -n jsonschema_specifications-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%files -f %{pyproject_files} +%license COPYING +%doc README.rst + +%changelog +%autochangelog diff --git a/SPECS/python-referencing/python-referencing.spec b/SPECS/python-referencing/python-referencing.spec new file mode 100644 index 000000000..c8cc948c8 --- /dev/null +++ b/SPECS/python-referencing/python-referencing.spec @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: Suyun +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname referencing + +Name: python-%{srcname} +Version: 0.37.0 +Release: %autorelease +Summary: JSON Referencing + Python +License: MIT +URL: https://github.com/python-jsonschema/referencing +#!RemoteAsset: sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8 +Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch +BuildSystem: pyproject + +BuildOption(install): -l %{srcname} +BuildOption(check): -e 'referencing.tests.test_referencing_suite' + +BuildRequires: pyproject-rpm-macros +BuildRequires: pkgconfig(python3) +BuildRequires: python3dist(pytest) + +Provides: python3-%{srcname} +%python_provide python3-%{srcname} + +%description +%{summary}. + +%prep +%autosetup -n %{srcname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%files -f %{pyproject_files} +%license COPYING +%doc README.rst + +%changelog +%autochangelog diff --git a/SPECS/python-rpds-py/python-rpds-py.spec b/SPECS/python-rpds-py/python-rpds-py.spec new file mode 100644 index 000000000..71e579426 --- /dev/null +++ b/SPECS/python-rpds-py/python-rpds-py.spec @@ -0,0 +1,52 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: Suyun +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname rpds_py + +Name: python-rpds-py +Version: 0.30.0 +Release: %autorelease +Summary: Python bindings to Rust's persistent data structures (rpds) +License: MIT +URL: https://github.com/crate-py/rpds +#!RemoteAsset: sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84 +Source0: https://files.pythonhosted.org/packages/source/r/rpds-py/%{srcname}-%{version}.tar.gz +#!RemoteAsset: sha256:ff35e1f1a51cad0757feadb534e1ff3b9bfe2c308f2b10328eba7b7733774f66 +Source1: https://github.com/software-vendor/python-rpds-py-vendor/releases/download/vendor-%{version}/rpds_py-%{version}-vendor.tar.bz2 +BuildSystem: pyproject + +BuildOption(prep): -a1 +BuildOption(install): -l rpds + +BuildRequires: pyproject-rpm-macros +BuildRequires: pkgconfig(python3) +BuildRequires: rust +BuildRequires: python3dist(maturin) + +Provides: python3-rpds-py +%python_provide python3-rpds-py + +%description +%{summary}. + +%prep -a +mkdir -p .cargo +cat > .cargo/config.toml <<'EOF' +[source.crates-io] +replace-with = "vendored-sources" +[source.vendored-sources] +directory = "vendor" +EOF + +%generate_buildrequires +%pyproject_buildrequires + +%files -f %{pyproject_files} +%doc README.rst +%license LICENSE + +%changelog +%autochangelog