|
|
fc73918 |
%global srcname kiwisolver
|
|
|
fc73918 |
|
|
|
fc73918 |
Name: python-%{srcname}
|
|
|
8cd920f |
Version: 1.4.5
|
|
|
85fd34f |
Release: %autorelease
|
|
|
fc73918 |
Summary: A fast implementation of the Cassowary constraint solver
|
|
|
fc73918 |
|
|
|
847aa19 |
# The entire source is BSD-3-Clause, except:
|
|
|
847aa19 |
# - kiwi/AssocVector.h is HPND-sell-variant
|
|
|
847aa19 |
# (https://gitlab.com/fedora/legal/fedora-license-data/-/issues/96)
|
|
|
847aa19 |
#
|
|
|
847aa19 |
# Additionally, the following do not contribute to the binary RPMs:
|
|
|
847aa19 |
# - benchmarks/nanobench.h is MIT
|
|
|
847aa19 |
License: BSD-3-Clause AND HPND-sell-variant
|
|
|
fc73918 |
URL: https://github.com/nucleic/kiwi
|
|
|
edf030f |
Source0: %{pypi_source %{srcname}}
|
|
|
fc73918 |
|
|
|
3b6e250 |
%global _description %{expand:
|
|
|
3b6e250 |
Kiwi is an efficient C++ implementation of the Cassowary constraint solving
|
|
|
3b6e250 |
algorithm. Kiwi is an implementation of the algorithm based on the seminal
|
|
|
3b6e250 |
Cassowary paper. It is *not* a refactoring of the original C++ solver. Kiwi has
|
|
|
3b6e250 |
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 |
|
|
|
24c11fe |
# The file kiwi/AssocVector.h is derived from Loki
|
|
|
24c11fe |
# (https://sourceforge.net/projects/loki-lib/,
|
|
|
24c11fe |
# https://src.fedoraproject.org/rpms/loki-lib [retired]).
|
|
|
24c11fe |
#
|
|
|
24c11fe |
# Because this file has been modified from the original, and because Loki
|
|
|
24c11fe |
# upstream is no longer active, it cannot be unbundled. It is not
|
|
|
24c11fe |
# straightforward to determine which version of Loki was used for the fork.
|
|
|
24c11fe |
Provides: bundled(loki-lib)
|
|
|
24c11fe |
|
|
|
fc73918 |
%description -n python3-%{srcname} %{_description}
|
|
|
fc73918 |
|
|
|
fc73918 |
%prep
|
|
|
e8ad8f3 |
%autosetup -p1 -n %{srcname}-%{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
|
|
|
fc73918 |
|
|
|
fc73918 |
%changelog
|
|
|
85fd34f |
%autochangelog
|