python-referencing/python-referencing.spec

66 lines
1.9 KiB
RPMSpec
Raw Normal View History

2023-11-02 11:46:31 +08:00
%global _empty_manifest_terminate_build 0
Name: python-referencing
Version: 0.30.2
Release: 1
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 help
Summary: Development documents and examples for referencing
Provides: python3-referencing-doc
%description help
Development documents and examples for referencing.
%prep
%autosetup -n referencing-%{version}
%build
%pyproject_build
%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 help
%{_docdir}/*
%changelog
* Thu Nov 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.30.2-1
- Init package