diff --git a/python-PasteDeploy.changes b/python-PasteDeploy.changes index dd02960..a18ee84 100644 --- a/python-PasteDeploy.changes +++ b/python-PasteDeploy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 19 02:26:16 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + ------------------------------------------------------------------- Fri Feb 6 10:54:44 UTC 2015 - hpj@urpla.net diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec index 3a600ad..fb821e1 100644 --- a/python-PasteDeploy.spec +++ b/python-PasteDeploy.spec @@ -1,7 +1,7 @@ # # spec file for package python-PasteDeploy # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PasteDeploy Version: 1.5.2 Release: 0 @@ -23,21 +24,18 @@ Url: http://pythonpaste.org/deploy/ Summary: Load, configure, and compose WSGI applications and servers License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz +Source: http://files.pythonhosted.org/packages/source/P/PasteDeploy/PasteDeploy-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} Requires: python-Paste Requires: python-setuptools -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch -%endif -%endif Provides: python-pastedeploy = %{version} Obsoletes: python-pastedeploy < %{version} -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +BuildArch: noarch +%python_subpackages %description This tool provides code to load WSGI applications and servers from URIs; these @@ -48,14 +46,15 @@ provides commands to serve applications based on this configuration file. %setup -q -n PasteDeploy-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) -%doc docs/* +%doc README docs/license.txt docs/news.txt docs/index.txt %{python_sitelib}/* %changelog