15
0

- Switch to github tarball to run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=27
This commit is contained in:
Tomáš Chvátal
2019-03-05 19:16:40 +00:00
committed by Git OBS Bridge
parent 607d8835f1
commit 755ef139da
4 changed files with 20 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PasteDeploy
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -21,27 +21,25 @@
Name: python-PasteDeploy
Version: 2.0.1
Release: 0
Url: http://pythonpaste.org/deploy/
Summary: Tool to load, configure, and compose WSGI applications and servers
License: MIT
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: https://github.com/Pylons/pastedeploy
Source: https://github.com/Pylons/pastedeploy/archive/%{version}.tar.gz
BuildRequires: %{python_module Paste}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Paste
Requires: python-setuptools
Provides: python-pastedeploy = %{version}
Obsoletes: python-pastedeploy < %{version}
BuildArch: noarch
%ifpython2
Obsoletes: %{oldpython}-pastedeploy < %{version}
Provides: %{oldpython}-pastedeploy = %{version}
%endif
%ifpython3
Provides: python3-pastedeploy = %{version}
Obsoletes: python3-pastedeploy < %{version}
%endif
BuildArch: noarch
%python_subpackages
%description
@@ -50,7 +48,7 @@ URIs can refer to Python Eggs for INI-style configuration files. Paste Script
provides commands to serve applications based on this configuration file.
%prep
%setup -q -n PasteDeploy-%{version}
%setup -q -n pastedeploy-%{version}
%build
%python_build
@@ -59,9 +57,12 @@ provides commands to serve applications based on this configuration file.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license license.txt
%{python_sitelib}/*
%changelog