commit 98511c15ef3e06000404674ad59b8c8a14930aa651b3f7a9079363ae6efad896 Author: Todd R Date: Fri Sep 4 11:48:00 2015 +0000 - Initial version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kiwisolver?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/kiwisolver-0.1.3.zip b/kiwisolver-0.1.3.zip new file mode 100644 index 0000000..a7a5ea1 --- /dev/null +++ b/kiwisolver-0.1.3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbcd6470dd8518ec8d2d0daec96551291e2e17f0e910ec2502a2ecc1c7c98b44 +size 48696 diff --git a/python-kiwisolver.changes b/python-kiwisolver.changes new file mode 100644 index 0000000..9507128 --- /dev/null +++ b/python-kiwisolver.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Sep 4 10:51:30 UTC 2015 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-kiwisolver.spec b/python-kiwisolver.spec new file mode 100644 index 0000000..c32d180 --- /dev/null +++ b/python-kiwisolver.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-kiwisolver +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +Name: python-kiwisolver +Version: 0.1.3 +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 +Source: https://pypi.python.org/packages/source/k/kiwisolver/kiwisolver-%{version}.zip +BuildRequires: gcc-c++ +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: unzip +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif + +%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 +%setup -q -n kiwisolver-%{version} +# Fix wrong-file-end-of-line-encoding +sed -i 's/\r$//' COPYING.txt +sed -i 's/\r$//' README.rst +sed -i 's/\r$//' releasenotes.rst + +%build +CFLAGS="%{optflags}" python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc COPYING.txt README.rst releasenotes.rst +%{python_sitearch}/* + +%changelog