Package init
This commit is contained in:
commit
532ee52806
BIN
kiwisolver-1.1.0.tar.gz
Normal file
BIN
kiwisolver-1.1.0.tar.gz
Normal file
Binary file not shown.
58
python-kiwisolver.spec
Normal file
58
python-kiwisolver.spec
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
%global _name kiwisolver
|
||||||
|
|
||||||
|
Name: python-%{_name}
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A fast implementation of the Cassowary constraint solver
|
||||||
|
License: BSD
|
||||||
|
URL: https://github.com/nucleic/kiwi
|
||||||
|
Source0: https://github.com/nucleic/kiwi/archive/%{version}/%{_name}-%{version}.tar.gz
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-%{_name}
|
||||||
|
Summary: Kiwisolver for Python 3 Package
|
||||||
|
%{?python_provide:%python_provide python3-%{_name}}
|
||||||
|
BuildRequires: python3-devel python3-setuptools python3-pytest
|
||||||
|
|
||||||
|
%description -n python3-%{_name}
|
||||||
|
Kiwisolver for Python 3 Package.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{_name}-%{version}
|
||||||
|
|
||||||
|
rm -rf %{_name}.egg-info
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
PYTHONPATH="%{buildroot}%{python3_sitearch}" py.test-3 py/tests/
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-%{_name}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitearch}/%{_name}.cpython-*.so
|
||||||
|
%{python3_sitearch}/%{_name}-%{version}-*.egg-info
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Nov 05 2019 openEuler Buildteam<buildteam@openeuler.org> - 1.1.0-1
|
||||||
|
- Type:NA
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Package Init
|
||||||
Loading…
x
Reference in New Issue
Block a user