2015-09-04 11:48:00 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-kiwisolver
|
|
|
|
|
#
|
2018-02-13 19:32:31 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-09-04 11:48:00 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-02-13 19:32:31 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-09-04 11:48:00 +00:00
|
|
|
Name: python-kiwisolver
|
2018-02-13 19:32:31 +00:00
|
|
|
Version: 1.0.1
|
2015-09-04 11:48:00 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A fast implementation of the Cassowary constraint solver
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
Url: https://github.com/nucleic/kiwi
|
2018-03-23 12:05:38 +00:00
|
|
|
Source: https://github.com/nucleic/kiwi/archive/%{version}.tar.gz
|
2018-02-13 19:32:31 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2018-03-23 12:05:38 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-02-13 19:32:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-03-23 12:05:38 +00:00
|
|
|
BuildRequires: dos2unix
|
2018-02-13 19:32:31 +00:00
|
|
|
BuildRequires: fdupes
|
2018-03-23 12:05:38 +00:00
|
|
|
BuildRequires: gcc-c++
|
2018-02-13 19:32:31 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
2015-09-04 11:48:00 +00:00
|
|
|
%description
|
|
|
|
|
Kiwi is an efficient C++ implementation of the Cassowary constraint solving
|
|
|
|
|
algorithm. Kiwi is an implementation of the algorithm based on the seminal
|
|
|
|
|
Cassowary paper. It is *not* a refactoring of the original C++ solver. Kiwi
|
|
|
|
|
has been designed from the ground up to be lightweight and fast. Kiwi ranges
|
|
|
|
|
from 10x to 500x faster than the original Cassowary solver with typical use
|
|
|
|
|
cases gaining a 40x improvement. Memory savings are consistently > 5x.
|
|
|
|
|
|
|
|
|
|
In addition to the C++ solver, Kiwi ships with hand-rolled Python bindings.
|
|
|
|
|
|
|
|
|
|
%prep
|
2018-03-23 12:05:38 +00:00
|
|
|
%setup -q -n kiwi-%{version}
|
2015-09-04 11:48:00 +00:00
|
|
|
# Fix wrong-file-end-of-line-encoding
|
2018-03-23 12:05:38 +00:00
|
|
|
dos2unix COPYING.txt README.rst releasenotes.rst
|
2015-09-04 11:48:00 +00:00
|
|
|
|
|
|
|
|
%build
|
2018-02-13 19:32:31 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
%python_build
|
2015-09-04 11:48:00 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-02-13 19:32:31 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd py
|
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
|
py.test-%{$python_bin_suffix} tests/
|
|
|
|
|
}
|
|
|
|
|
popd
|
2015-09-04 11:48:00 +00:00
|
|
|
|
2018-02-13 19:32:31 +00:00
|
|
|
%files %{python_files}
|
2018-03-23 11:58:16 +00:00
|
|
|
%license COPYING.txt
|
|
|
|
|
%doc README.rst releasenotes.rst
|
2015-09-04 11:48:00 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|