forked from pool/python-pyramid
- Match up all the deps to the reality
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=37
This commit is contained in:
committed by
Git OBS Bridge
parent
1d577d6167
commit
a3ab42bdcf
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 17 10:42:38 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Match up all the deps to the reality
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 15 19:47:10 UTC 2020 - Bruno Friedmann <bruno@ioda-net.ch>
|
Sun Mar 15 19:47:10 UTC 2020 - Bruno Friedmann <bruno@ioda-net.ch>
|
||||||
|
|
||||||
|
@@ -18,41 +18,40 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
%if %{?suse_version} > 1500
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
|
%bcond_with python2
|
||||||
|
%else
|
||||||
|
%bcond_without python2
|
||||||
|
%endif
|
||||||
|
%bcond_without python2
|
||||||
Name: python-pyramid
|
Name: python-pyramid
|
||||||
Version: 1.10.4
|
Version: 1.10.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The Pyramid web application development framework
|
Summary: The Pyramid web application development framework
|
||||||
License: BSD-4-Clause AND ZPL-2.1 AND MIT
|
License: BSD-4-Clause AND ZPL-2.1 AND MIT
|
||||||
Group: Development/Languages/Python
|
URL: https://pylonsproject.org
|
||||||
URL: http://pylonsproject.org
|
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module PasteDeploy} >= 1.5.0
|
BuildRequires: %{python_module PasteDeploy >= 1.5.0}
|
||||||
BuildRequires: %{python_module WebOb} >= 1.7.0
|
BuildRequires: %{python_module WebOb >= 1.8.3}
|
||||||
BuildRequires: %{python_module repoze.lru} >= 0.4
|
BuildRequires: %{python_module WebTest >= 1.3.1}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module hupper >= 1.5}
|
||||||
BuildRequires: %{python_module translationstring} >= 0.4
|
|
||||||
BuildRequires: %{python_module venusian} >= 1.0
|
|
||||||
BuildRequires: %{python_module zope.deprecation} >= 3.5.0
|
|
||||||
BuildRequires: %{python_module zope.interface} >= 3.8.0
|
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: %{python_module WebTest} >= 1.3.1
|
|
||||||
BuildRequires: %{python_module coverage}
|
|
||||||
BuildRequires: %{python_module hupper}
|
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module plaster-pastedeploy}
|
BuildRequires: %{python_module plaster-pastedeploy}
|
||||||
BuildRequires: %{python_module plaster}
|
BuildRequires: %{python_module plaster}
|
||||||
BuildRequires: %{python_module zope.component} >= 4.0
|
BuildRequires: %{python_module setuptools}
|
||||||
%endif
|
BuildRequires: %{python_module translationstring >= 0.4}
|
||||||
|
BuildRequires: %{python_module venusian >= 1.0}
|
||||||
|
BuildRequires: %{python_module zope.component >= 4.0}
|
||||||
|
BuildRequires: %{python_module zope.deprecation >= 3.5.0}
|
||||||
|
BuildRequires: %{python_module zope.interface >= 3.8.0}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-PasteDeploy >= 1.5.0
|
Requires: python-PasteDeploy >= 1.5.0
|
||||||
Requires: python-WebOb >= 1.7.0
|
Requires: python-WebOb >= 1.8.3
|
||||||
Requires: python-hupper
|
Requires: python-hupper >= 1.5
|
||||||
Requires: python-plaster
|
Requires: python-plaster
|
||||||
Requires: python-plaster-pastedeploy
|
Requires: python-plaster-pastedeploy
|
||||||
Requires: python-repoze.lru >= 0.4
|
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-translationstring >= 0.4
|
Requires: python-translationstring >= 0.4
|
||||||
Requires: python-venusian >= 1.0
|
Requires: python-venusian >= 1.0
|
||||||
@@ -60,8 +59,13 @@ Requires: python-zope.deprecation >= 3.5.0
|
|||||||
Requires: python-zope.interface >= 3.8.0
|
Requires: python-zope.interface >= 3.8.0
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-repoze.lru >= 0.4
|
||||||
|
%endif
|
||||||
|
%ifpython2
|
||||||
|
Requires: python-repoze.lru >= 0.4
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -77,25 +81,18 @@ It was previously known as repoze.bfg (http://bfg.repoze.org).
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
%{_python_use_flavor python3}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%{python_expand rm -rf %{buildroot}%{$python_sitelib}/pyramid/tests
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
|
||||||
}
|
|
||||||
|
|
||||||
for p in pcreate pdistreport prequest proutes pserve pshell ptweens pviews; do
|
for p in pcreate pdistreport prequest proutes pserve pshell ptweens pviews; do
|
||||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
|
||||||
$python setup.py nosetests --with-coverage -vvv
|
|
||||||
}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative pcreate pdistreport prequest proutes pserve pshell ptweens pviews
|
%python_install_alternative pcreate pdistreport prequest proutes pserve pshell ptweens pviews
|
||||||
@@ -104,8 +101,8 @@ export LANG=en_US.UTF-8
|
|||||||
%python_uninstall_alternative pcreate
|
%python_uninstall_alternative pcreate
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.txt
|
||||||
%doc *.txt *.rst
|
%doc *.rst
|
||||||
%python_alternative %{_bindir}/pcreate
|
%python_alternative %{_bindir}/pcreate
|
||||||
%python_alternative %{_bindir}/pdistreport
|
%python_alternative %{_bindir}/pdistreport
|
||||||
%python_alternative %{_bindir}/prequest
|
%python_alternative %{_bindir}/prequest
|
||||||
|
Reference in New Issue
Block a user