forked from pool/python-falcon
Accepting request 305351 from home:benoit_monin:branches:devel:languages:python
- update to version 0.2 - add python-ddt and python-yaml as BuildRequires for the tests - remove unwanted shebang of bench.py - add -fno-strict-aliasing to CFLAGS to avoid compiler warnings - pass -q to test to avoid spamming the build log - remove AUTHORS CHANGES.md LICENSE: no provided anymore - remove README.md: its content is identical to README.rst OBS-URL: https://build.opensuse.org/request/show/305351 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
48acf200fc
commit
74fc0a709a
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-falcon
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -13,20 +13,23 @@
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-falcon
|
||||
Version: 0.1.7
|
||||
Version: 0.2
|
||||
Release: 0
|
||||
License: Apache-2.0
|
||||
Summary: A supersonic micro-framework for building cloud APIs
|
||||
Url: http://falconframework.org
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://falconframework.org
|
||||
Source: https://pypi.python.org/packages/source/f/falcon/falcon-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-Cython
|
||||
BuildRequires: python-devel
|
||||
# Test requirements:
|
||||
BuildRequires: python-ddt
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-yaml
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
BuildRequires: python-ordereddict
|
||||
%endif
|
||||
@@ -47,19 +50,21 @@ as little as possible while remaining highly effective.
|
||||
|
||||
%prep
|
||||
%setup -q -n falcon-%{version}
|
||||
# remove unwanted shebang
|
||||
sed -i '1 { /^#!/ d }' falcon/bench/bench.py
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
python setup.py -q test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES.md LICENSE README.md README.rst
|
||||
%doc README.rst
|
||||
%{_bindir}/falcon-bench
|
||||
%{python_sitearch}/*
|
||||
|
||||
|
Reference in New Issue
Block a user