add: jschon (#6546) (#6559)

This commit is contained in:
Raboneko
2025-09-28 10:22:48 -07:00
committed by GitHub
parent 3d09ab9b93
commit 3d464f5c60
3 changed files with 65 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "jschon.spec"
}
}
+58
View File
@@ -0,0 +1,58 @@
%global pypi_name jschon
%global _desc An object-oriented JSON Schema implementation for Python.
Name: python-%{pypi_name}
Version: 0.11.1
Release: 1%?dist
Summary: An object-oriented JSON Schema implementation for Python
License: MIT
URL: https://github.com/marksparkza/jschon
Source0: %url/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-build
BuildRequires: python3-wheel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-pip
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
Requires: python3-requests
Requires: python3-rfc3986
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
Provides: jschon
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -n jschon-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files jschon
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst CONTRIBUTING.rst CHANGELOG.rst TESTING.rst
%license LICENSE
%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc
%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc
%python3_sitelib/jschon-%version.dist-info/*
%changelog
* Sun Sep 28 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("marksparkza/jschon"));