i10c-beta
changed/i10c-beta/python-jsonschema-specifications-2023.11.2-5.el10
commit
585fb0b645
@ -0,0 +1 @@
|
|||||||
|
SOURCES/jsonschema_specifications-2023.11.2.tar.gz
|
@ -0,0 +1 @@
|
|||||||
|
2974723664306668ea5c8b58d6d20ea93db9cb4e SOURCES/jsonschema_specifications-2023.11.2.tar.gz
|
@ -0,0 +1,30 @@
|
|||||||
|
From d490ba7bac5ac11fb9416d02ed6c45fde61956be Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Ond=C5=99ej=20Budai?= <ondrej@budai.cz>
|
||||||
|
Date: Wed, 26 Jun 2024 17:12:46 +0200
|
||||||
|
Subject: [PATCH] Remove hatch-vcs
|
||||||
|
|
||||||
|
These apparently have no effect on the built RPM (I checked manually),
|
||||||
|
so let's drop them from pyproject.toml, so we can remove them from RHEL.
|
||||||
|
---
|
||||||
|
pyproject.toml | 5 +----
|
||||||
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index 70132d9..ab839b8 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -1,10 +1,7 @@
|
||||||
|
[build-system]
|
||||||
|
-requires = ["hatchling", "hatch-vcs"]
|
||||||
|
+requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
-[tool.hatch.version]
|
||||||
|
-source = "vcs"
|
||||||
|
-
|
||||||
|
[project]
|
||||||
|
name = "jsonschema-specifications"
|
||||||
|
description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry"
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
@ -0,0 +1,134 @@
|
|||||||
|
%global pypi_name jsonschema-specifications
|
||||||
|
%global pkg_name jsonschema_specifications
|
||||||
|
%global with_tests 1
|
||||||
|
|
||||||
|
# Some documentation reqs are not yet packaged for EPEL
|
||||||
|
%if ! 0%{?rhel}
|
||||||
|
%global with_doc 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global common_description %{expand:
|
||||||
|
JSON support files from the JSON Schema Specifications (metaschemas,
|
||||||
|
vocabularies, etc.), packaged for runtime access from Python as a
|
||||||
|
referencing-based Schema Registry.}
|
||||||
|
|
||||||
|
Name: python-%{pypi_name}
|
||||||
|
Summary: JSON Schema meta-schemas and vocabularies, exposed as a Registry
|
||||||
|
Version: 2023.11.2
|
||||||
|
Release: 5%{?dist}
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/python-jsonschema/jsonschema-specifications
|
||||||
|
Source0: %{pypi_source %{pkg_name}}
|
||||||
|
Patch0: 0001-Remove-hatch-vcs.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
|
%description %{common_description}
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-%{pypi_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
%description -n python3-%{pypi_name} %{common_description}
|
||||||
|
|
||||||
|
%if 0%{?with_tests}
|
||||||
|
%package -n python3-%{pypi_name}-tests
|
||||||
|
Summary: Tests for the JSON Schema specifications
|
||||||
|
Requires: python3-%{pypi_name} = %{version}-%{release}
|
||||||
|
|
||||||
|
BuildRequires: python3dist(pytest)
|
||||||
|
Requires: python3dist(pytest)
|
||||||
|
|
||||||
|
%description -n python3-%{pypi_name}-tests
|
||||||
|
Tests for the JSON Schema specifications
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%package -n python3-%{pypi_name}-doc
|
||||||
|
Summary: Documentation for the JSON Schema specifications
|
||||||
|
Group: Documentation
|
||||||
|
|
||||||
|
BuildRequires: python3dist(sphinx)
|
||||||
|
BuildRequires: python3dist(sphinx-copybutton)
|
||||||
|
BuildRequires: python3dist(sphinxext-opengraph)
|
||||||
|
BuildRequires: python3dist(sphinxcontrib-spelling)
|
||||||
|
|
||||||
|
%description -n python3-%{pypi_name}-doc
|
||||||
|
Documentation for the JSON Schema specifications
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{pkg_name}-%{version} -p1
|
||||||
|
|
||||||
|
sed -i "/^file:.*/d" docs/requirements.in
|
||||||
|
sed -i "/^pygments-github-lexers/d" docs/requirements.in
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%pyproject_buildrequires -w docs/requirements.in
|
||||||
|
%else
|
||||||
|
%pyproject_buildrequires -w
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%pyproject_save_files %{pkg_name}
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
# generate html docs
|
||||||
|
export PYTHONPATH="%{buildroot}/%{python3_sitelib}"
|
||||||
|
sphinx-build-3 -b html docs docs/build/html
|
||||||
|
# remove the sphinx-build-3 leftovers
|
||||||
|
rm -rf docs/build/html/.{doctrees,buildinfo}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_tests}
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||||
|
%license COPYING
|
||||||
|
%doc README.rst
|
||||||
|
%exclude %{python3_sitelib}/%{pkg_name}/tests
|
||||||
|
|
||||||
|
%if 0%{?with_tests}
|
||||||
|
%files -n python3-%{pypi_name}-tests
|
||||||
|
%license COPYING
|
||||||
|
%{python3_sitelib}/%{pkg_name}/tests
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%files -n python3-%{pypi_name}-doc
|
||||||
|
%doc docs/build/html
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2023.11.2-5
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
* Wed Jun 26 2024 Ondřej Budai <obudai@redhat.com> - 2023.11.2-5
|
||||||
|
- Drop unneeded build dependencies
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2023.11.2-4
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2023.11.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2023.11.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 30 2023 Joel Capitao <jcapitao@redhat.com> - 2023.11.2-1
|
||||||
|
- Update to 2023.11.2 (rhbz#2252278)
|
||||||
|
|
||||||
|
* Mon Nov 20 2023 Joel Capitao <jcapitao@redhat.com> - 2023.11.1-1
|
||||||
|
- Update to 2023.11.1 (rhbz#2249692)
|
||||||
|
|
||||||
|
* Mon Aug 07 2023 Joel Capitao <jcapitao@redhat.com> - 2023.7.1-1
|
||||||
|
- Initial package.
|
||||||
|
|
Loading…
Reference in new issue