diff --git a/python-referencing.spec b/python-referencing.spec new file mode 100644 index 0000000000000000000000000000000000000000..4b5066753d62933e762df57da0ef9cf05c0c3400 --- /dev/null +++ b/python-referencing.spec @@ -0,0 +1,66 @@ +%define anolis_release 1 + +Name: python-referencing +Version: 0.30.2 +Release: %{anolis_release}%{?dist} +Summary: An implementation-agnostic implementation of JSON reference resolution. +License: MIT +URL: https://github.com/python-jsonschema/referencing +Source0: https://files.pythonhosted.org/packages/e1/43/d3f6cf3e1ec9003520c5fb31dc363ee488c517f09402abd2a1c90df63bbb/referencing-0.30.2.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-vcs +BuildRequires: python3-jsonschema + +%description +An implementation-agnostic implementation of JSON reference resolution. + +%package -n python3-referencing +Summary: An implementation-agnostic implementation of JSON reference resolution. +Provides: python-referencing +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-referencing +An implementation-agnostic implementation of JSON reference resolution. + +%package -n python3-referencing-doc +Summary: Development documents and examples for referencing +Provides: python3-referencing-doc + +%description -n python3-referencing-doc +Development documents and examples for referencing. + +%prep +%autosetup -n referencing-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi + +%files -n python3-referencing +%doc README.rst +%license COPYING +%{python3_sitelib}/referencing +%{python3_sitelib}/referencing*.dist-info/ + + +%files -n python3-referencing-doc +%{_docdir}/* + +%changelog +* Tue Aug 12 2025 wenxin - 0.30.2-1 +- Init package diff --git a/referencing-0.30.2.tar.gz b/referencing-0.30.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9282df827da5547144be2e069ecec655ebf2e31f Binary files /dev/null and b/referencing-0.30.2.tar.gz differ