Blob Blame History Raw
%global srcname kiwisolver

Name:           python-%{srcname}
Version:        1.0.1
Release:        1%{?dist}
Summary:        A fast implementation of the Cassowary constraint solver

License:        BSD

%global _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.

%description %{_description}

%package -n     python2-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{srcname}}

BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
BuildRequires:  python2-pytest

%description -n python2-%{srcname} %{_description}

%package -n     python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description -n python3-%{srcname} %{_description}

%autosetup -n kiwi-%{version}

# Remove bundled egg-info
rm -rf %{srcname}.egg-info



PYTHONPATH="%{buildroot}%{python3_sitearch}" \
    py.test-3 py/tests/
PYTHONPATH="%{buildroot}%{python2_sitearch}" \
    py.test-2 py/tests/

%files -n python2-%{srcname}
%doc README.rst
%license COPYING.txt

%files -n python3-%{srcname}
%doc README.rst
%license COPYING.txt

* Sat Feb 03 2018 Elliott Sales de Andrade <> - 1.0.1-1
- Initial package.