2020-10-14 23:43:13 +00:00
|
|
|
%global pypi_name clikit
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 0.3.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Builds beautiful and testable command line interfaces
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/sdispater/clikit
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
2021-02-04 13:32:12 +00:00
|
|
|
BuildRequires: python3-devel
|
2020-10-14 23:43:13 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Tests building with the poetry build backend.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
|
2021-02-04 13:32:12 +00:00
|
|
|
%check
|
|
|
|
# Internal check that the RECORD and REQUESTED files are
|
|
|
|
# always removed in %%pyproject_wheel
|
|
|
|
test ! $(find %{buildroot}%{python3_sitelib}/ | grep -E "\.dist-info/RECORD$")
|
|
|
|
test ! $(find %{buildroot}%{python3_sitelib}/ | grep -E "\.dist-info/REQUESTED$")
|
2020-10-14 23:43:13 +00:00
|
|
|
|
2021-02-04 13:32:12 +00:00
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
2020-10-14 23:43:13 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2021-02-04 13:32:12 +00:00
|
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|