1
0
Matej Cepl 2018-12-04 17:25:22 +00:00 committed by Git OBS Bridge
parent da6ce7d6ee
commit 9af7d9789a

View File

@ -16,27 +16,25 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests require a network connection # Tests require a network connection
%bcond_with tests %bcond_with tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-waitress Name: python-waitress
Version: 1.1.0 Version: 1.1.0
Release: 0 Release: 0
Summary: Waitress WSGI server Summary: Waitress WSGI server
License: ZPL-2.1 License: ZPL-2.1
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/Pylons/waitress URL: https://github.com/Pylons/waitress
Source: https://files.pythonhosted.org/packages/source/w/waitress/waitress-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/w/waitress/waitress-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with tests} %if %{with tests}
# Test requirements: # Test requirements:
BuildRequires: %{python_module nose} BuildRequires: %{python_module nose}
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@ -65,8 +63,8 @@ http://docs.pylonsproject.org/projects/waitress/en/latest/ .
%endif %endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE.txt
%doc COPYRIGHT.txt LICENSE.txt README.rst %doc COPYRIGHT.txt README.rst
%python3_only %{_bindir}/waitress-serve %python3_only %{_bindir}/waitress-serve
%{python_sitelib}/* %{python_sitelib}/*