# # spec file for package python-falcon # # Copyright (c) 2013 SUSE LINUX Products 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-falcon Version: 0.1.6.post3 Release: 0 License: Apache-2.0 Summary: A supersonic micro-framework for building cloud APIs Url: http://falconframework.org Group: Development/Languages/Python Source: https://pypi.python.org/packages/source/f/falcon/falcon-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-Cython # Test requirements: BuildRequires: python-nose %if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: python-ordereddict %endif BuildRequires: python-six BuildRequires: python-testtools Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-ordereddict %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif %description Falcon is a ghigh-performance Python framework for building cloud APIs. It encourages the REST architectural style, and tries to do as little as possible while remaining ghighly effective. %prep %setup -q -n falcon-%{version} %build CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check python setup.py test %files %defattr(-,root,root,-) %doc AUTHORS CHANGES.md LICENSE README.md README.rst %{_bindir}/falcon-bench %{python_sitearch}/* %changelog