2011-09-01 11:04:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-PasteDeploy
|
|
|
|
#
|
2022-05-16 17:46:47 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-09-01 11:04:27 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2011-12-12 10:04:42 +01:00
|
|
|
|
2018-12-04 14:45:26 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 11:04:27 +02:00
|
|
|
#
|
|
|
|
|
2011-12-12 10:04:42 +01:00
|
|
|
|
2017-04-19 07:57:22 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-05-06 06:27:34 +02:00
|
|
|
%define oldpython python
|
2011-09-01 11:04:27 +02:00
|
|
|
Name: python-PasteDeploy
|
2022-05-16 17:46:47 +02:00
|
|
|
Version: 2.1.1+git.1652668078.0f0697d
|
2011-09-01 11:04:27 +02:00
|
|
|
Release: 0
|
2018-12-18 20:30:53 +01:00
|
|
|
Summary: Tool to load, configure, and compose WSGI applications and servers
|
2011-09-01 11:04:27 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-03-05 20:16:40 +01:00
|
|
|
URL: https://github.com/Pylons/pastedeploy
|
2022-05-16 17:46:47 +02:00
|
|
|
# Source: https://github.com/Pylons/pastedeploy/archive/%%{version}.tar.gz
|
|
|
|
Source: pastedeploy-%{version}.tar.gz
|
2019-03-05 20:16:40 +01:00
|
|
|
BuildRequires: %{python_module Paste}
|
2022-05-16 17:46:47 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-03-14 16:44:27 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-19 07:57:22 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-05-16 17:46:47 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-20 07:38:39 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-01 11:04:27 +02:00
|
|
|
Requires: python-Paste
|
2013-10-24 13:09:50 +02:00
|
|
|
Requires: python-setuptools
|
2019-03-05 20:16:40 +01:00
|
|
|
Provides: python-pastedeploy = %{version}
|
|
|
|
Obsoletes: python-pastedeploy < %{version}
|
|
|
|
BuildArch: noarch
|
2017-05-06 06:27:34 +02:00
|
|
|
%ifpython2
|
|
|
|
Obsoletes: %{oldpython}-pastedeploy < %{version}
|
|
|
|
Provides: %{oldpython}-pastedeploy = %{version}
|
|
|
|
%endif
|
2017-04-19 07:57:22 +02:00
|
|
|
%python_subpackages
|
2011-09-01 11:04:27 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This tool provides code to load WSGI applications and servers from URIs; these
|
|
|
|
URIs can refer to Python Eggs for INI-style configuration files. Paste Script
|
|
|
|
provides commands to serve applications based on this configuration file.
|
|
|
|
|
|
|
|
%prep
|
2019-03-05 20:16:40 +01:00
|
|
|
%setup -q -n pastedeploy-%{version}
|
2020-06-23 18:26:04 +02:00
|
|
|
%autopatch -p1
|
2011-09-01 11:04:27 +02:00
|
|
|
|
2022-05-16 17:46:47 +02:00
|
|
|
sed -i -e '/^addopts/s/ --cov//' pytest.ini
|
|
|
|
|
2011-09-01 11:04:27 +02:00
|
|
|
%build
|
2022-05-16 17:46:47 +02:00
|
|
|
%pyproject_wheel
|
2011-09-01 11:04:27 +02:00
|
|
|
|
|
|
|
%install
|
2022-05-16 17:46:47 +02:00
|
|
|
%pyproject_install
|
2017-04-19 07:57:22 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-09-01 11:04:27 +02:00
|
|
|
|
2019-03-05 20:16:40 +01:00
|
|
|
%check
|
2020-03-14 16:44:27 +01:00
|
|
|
%pytest
|
2019-03-05 20:16:40 +01:00
|
|
|
|
2017-04-19 07:57:22 +02:00
|
|
|
%files %{python_files}
|
2018-12-17 22:20:17 +01:00
|
|
|
%doc README.rst
|
2019-03-05 20:16:40 +01:00
|
|
|
%license license.txt
|
2022-05-16 17:46:47 +02:00
|
|
|
# %%{python_sitelib}/PasteDeploy-%%{version}*-info
|
|
|
|
%{python_sitelib}/PasteDeploy-2.1.1*-info
|
|
|
|
%{python_sitelib}/PasteDeploy-2.1.1*-nspkg.pth
|
|
|
|
%{python_sitelib}/paste/deploy
|
2011-09-01 11:04:27 +02:00
|
|
|
|
|
|
|
%changelog
|