forked from pool/python-sure
Accepting request 497351 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version. - Fix source URL. - Update to version 1.4.6 OBS-URL: https://build.opensuse.org/request/show/497351 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sure?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sure
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@@ -16,29 +16,31 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without test
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sure
|
||||
Version: 1.2.24
|
||||
Version: 1.4.6
|
||||
Release: 0
|
||||
Summary: Utility belt for automated testing in python for python
|
||||
License: GPL-3.0+
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/requests/sure
|
||||
Source: https://pypi.python.org/packages/source/s/sure/sure-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-rednose
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
Requires: python-mock
|
||||
Requires: python-six
|
||||
%py_requires
|
||||
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()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module mock >= 2.0.0}
|
||||
BuildRequires: %{python_module six >= 1.10.0}
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
Requires: python-mock >= 2.0.0
|
||||
Requires: python-six >= 1.10.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A testing library for python with powerful and flexible assertions. Sure is
|
||||
@@ -49,17 +51,20 @@ heavily inspired by should.js
|
||||
sed -i '/^#!/d' sure/*.py
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
python setup.py test
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md
|
||||
%doc COPYING README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user