fc73918
%global srcname kiwisolver
fc73918
fc73918
Name:           python-%{srcname}
e40e4eb
Version:        1.3.1
85fd34f
Release:        %autorelease
fc73918
Summary:        A fast implementation of the Cassowary constraint solver
fc73918
fc73918
License:        BSD
fc73918
URL:            https://github.com/nucleic/kiwi
fc73918
Source0:        https://github.com/nucleic/kiwi/archive/%{version}/%{srcname}-%{version}.tar.gz
fc73918
fc73918
%global _description \
fc73918
Kiwi is an efficient C++ implementation of the Cassowary constraint solving \
fc73918
algorithm. Kiwi is an implementation of the algorithm based on the seminal \
fc73918
Cassowary paper. It is *not* a refactoring of the original C++ solver. Kiwi has \
fc73918
been designed from the ground up to be lightweight and fast.
fc73918
3bd87bb
BuildRequires:  gcc-c++
277692b
BuildRequires:  python3-devel
277692b
BuildRequires:  python3dist(pytest)
3bd87bb
fc73918
%description %{_description}
fc73918
fc73918
%package -n     python3-%{srcname}
fc73918
Summary:        %{summary}
fc73918
fc73918
%description -n python3-%{srcname} %{_description}
fc73918
fc73918
%prep
fc73918
%autosetup -n kiwi-%{version}
fc73918
277692b
%generate_buildrequires
277692b
%pyproject_buildrequires
fc73918
fc73918
%build
277692b
%pyproject_wheel
fc73918
fc73918
%install
277692b
%pyproject_install
277692b
%pyproject_save_files %{srcname}
fc73918
fc73918
%check
0d58055
%{pytest} py/tests/
fc73918
277692b
%files -n python3-%{srcname} -f %{pyproject_files}
fc73918
%doc README.rst
90479f5
%license LICENSE
fc73918
fc73918
%changelog
85fd34f
%autochangelog