From fc7391816afa755f394930a2eb020add7004adf5 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Feb 07 2018 01:30:09 +0000 Subject: Initial import (#1541587). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..081dc67 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/kiwisolver-1.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 7534d3f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-kiwisolver - -The python-kiwisolver package \ No newline at end of file diff --git a/python-kiwisolver.spec b/python-kiwisolver.spec new file mode 100644 index 0000000..f3339cb --- /dev/null +++ b/python-kiwisolver.spec @@ -0,0 +1,83 @@ +%global srcname kiwisolver + +Name: python-%{srcname} +Version: 1.0.1 +Release: 1%{?dist} +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}/%{srcname}-%{version}.tar.gz + +%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} + + +%prep +%autosetup -n kiwi-%{version} + +# Remove bundled egg-info +rm -rf %{srcname}.egg-info + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%check +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 +%{python2_sitearch}/%{srcname}.so +%{python2_sitearch}/%{srcname}-%{version}-py?.?.egg-info + + +%files -n python3-%{srcname} +%doc README.rst +%license COPYING.txt +%{python3_sitearch}/%{srcname}.cpython-*.so +%{python3_sitearch}/%{srcname}-%{version}-py?.?.egg-info + + +%changelog +* Sat Feb 03 2018 Elliott Sales de Andrade - 1.0.1-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..d3362b6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (kiwisolver-1.0.1.tar.gz) = 01002ae1dbf6482ed68c49ad3da80b772db84ec221c4b111c42f1b493f19299e0ddb187e43e64b380eb2ddc292d5848d6e09a5a1dbfaf68950a65423a913ec18