2019-07-02 14:53:05 +00:00
|
|
|
%global pypi_name entrypoints
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 0.3
|
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: Discover and load entry points from installed packages
|
|
|
|
License: MIT
|
|
|
|
URL: https://entrypoints.readthedocs.io/
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
2020-10-26 15:11:32 +00:00
|
|
|
BuildRequires: python3-devel
|
2019-07-02 14:53:05 +00:00
|
|
|
|
|
|
|
%description
|
2020-04-15 14:44:04 +00:00
|
|
|
This package contains one .py module
|
|
|
|
Building this tests the flit build backend.
|
2019-07-02 14:53:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
2020-04-15 14:44:04 +00:00
|
|
|
%{summary}.
|
2019-07-02 14:53:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2019-07-18 09:54:04 +00:00
|
|
|
%pyproject_buildrequires
|
2019-07-02 14:53:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
2020-04-15 14:44:04 +00:00
|
|
|
%pyproject_save_files entrypoints
|
2019-07-02 14:53:05 +00:00
|
|
|
|
|
|
|
|
2020-04-15 14:44:04 +00:00
|
|
|
%check
|
|
|
|
# Internal check: Top level __pycache__ is never owned
|
2020-10-26 16:18:51 +00:00
|
|
|
! grep -E '/__pycache__$' %{pyproject_files}
|
|
|
|
! grep -E '/__pycache__/$' %{pyproject_files}
|
2020-04-15 14:44:04 +00:00
|
|
|
grep -F '/__pycache__/' %{pyproject_files}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
2019-07-02 14:53:05 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|