# # spec file for package python-funcsigs # # Copyright (c) 2016 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-funcsigs Version: 1.0.2 Release: 2.1 Summary: Python function signatures from PEP362 License: Apache-2.0 Group: Development/Languages/Python Url: http://funcsigs.readthedocs.org Source: https://pypi.io/packages/source/f/funcsigs/funcsigs-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-unittest2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: python-ordereddict %else BuildArch: noarch %endif %description funcsigs is a backport of the PEP 362 function signature features from Python 3.3's inspect module. The backport is compatible with Python 2.6, 2.7 as well as 3.2 and up. %prep %setup -q -n funcsigs-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check python setup.py test %files %defattr(-,root,root,-) %doc CHANGELOG LICENSE README.rst %{python_sitelib}/* %changelog * Thu Jun 16 2016 aloisio@gmx.com - Fixed SLE11 build * Thu Jun 2 2016 tbechtold@suse.com - update to 1.0.2: No changelog provided. - use pypi.io as Source url * Tue Mar 3 2015 toddrme2178@gmail.com - Initial version