50 lines
1.5 KiB
RPMSpec
50 lines
1.5 KiB
RPMSpec
|
|
%global _empty_manifest_terminate_build 0
|
||
|
|
%global pypi_name pyproject-metadata
|
||
|
|
|
||
|
|
Name: python-%{pypi_name}
|
||
|
|
Version: 0.7.1
|
||
|
|
Release: 1
|
||
|
|
Summary: PEP 621 metadata parsing
|
||
|
|
License: MIT
|
||
|
|
URL: https://pypi.org/project/pyproject-metadata/
|
||
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
BuildRequires: python3-pip
|
||
|
|
BuildRequires: python3-devel
|
||
|
|
BuildRequires: python3-setuptools
|
||
|
|
BuildRequires: python3-setuptools_scm
|
||
|
|
BuildRequires: python3-wheel
|
||
|
|
|
||
|
|
%description
|
||
|
|
This project does not implement the parsing of pyproject.toml containing PEP 621 metadata.
|
||
|
|
Instead, given a Python data structure representing PEP 621 metadata (already parsed), it\
|
||
|
|
will validate this input and generate a PEP 643-compliant metadata file (e.g. PKG-INFO)
|
||
|
|
|
||
|
|
%package -n python3-%{pypi_name}
|
||
|
|
Summary: PEP 621 metadata parsing
|
||
|
|
|
||
|
|
%description -n python3-%{pypi_name}
|
||
|
|
This project does not implement the parsing of pyproject.toml containing PEP 621 metadata.
|
||
|
|
Instead, given a Python data structure representing PEP 621 metadata (already parsed), it\
|
||
|
|
will validate this input and generate a PEP 643-compliant metadata file (e.g. PKG-INFO)
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
||
|
|
|
||
|
|
%build
|
||
|
|
%pyproject_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%pyproject_install
|
||
|
|
|
||
|
|
%files -n python3-%{pypi_name}
|
||
|
|
%doc README.md
|
||
|
|
%license LICENSE
|
||
|
|
%{python3_sitelib}/pyproject_metadata-*.dist-info/
|
||
|
|
%{python3_sitelib}/pyproject_metadata
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Jul 31 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.7.1-1
|
||
|
|
- Package init
|