2011-09-27 19:04:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyramid
|
|
|
|
#
|
2024-01-02 21:18:37 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-10-10 12:46:00 +00:00
|
|
|
# Copyright (c) 2014-2017 LISA GmbH, Bingen, Germany.
|
2011-09-27 19:04:38 +00: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.
|
2012-03-20 14:50:08 +00:00
|
|
|
|
2019-06-21 11:28:33 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-27 19:04:38 +00:00
|
|
|
#
|
|
|
|
|
2013-03-06 18:45:47 +00:00
|
|
|
|
2023-06-11 11:33:54 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-27 19:04:38 +00:00
|
|
|
Name: python-pyramid
|
2024-01-02 21:18:37 +00:00
|
|
|
Version: 2.0.2
|
2011-09-27 19:04:38 +00:00
|
|
|
Release: 0
|
2015-08-03 12:34:16 +00:00
|
|
|
Summary: The Pyramid web application development framework
|
2019-06-21 11:28:33 +00:00
|
|
|
License: BSD-4-Clause AND ZPL-2.1 AND MIT
|
2020-03-17 10:54:33 +00:00
|
|
|
URL: https://pylonsproject.org
|
2017-07-16 16:30:25 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz
|
2020-03-17 10:54:33 +00:00
|
|
|
BuildRequires: %{python_module PasteDeploy >= 1.5.0}
|
|
|
|
BuildRequires: %{python_module WebOb >= 1.8.3}
|
|
|
|
BuildRequires: %{python_module WebTest >= 1.3.1}
|
|
|
|
BuildRequires: %{python_module hupper >= 1.5}
|
2017-07-16 16:30:25 +00:00
|
|
|
BuildRequires: %{python_module plaster-pastedeploy}
|
|
|
|
BuildRequires: %{python_module plaster}
|
2020-07-02 09:12:44 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-03-17 10:54:33 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
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
|
2013-07-31 06:25:58 +00:00
|
|
|
Requires: python-PasteDeploy >= 1.5.0
|
2020-03-17 10:54:33 +00:00
|
|
|
Requires: python-WebOb >= 1.8.3
|
|
|
|
Requires: python-hupper >= 1.5
|
2017-10-10 12:46:00 +00:00
|
|
|
Requires: python-plaster
|
|
|
|
Requires: python-plaster-pastedeploy
|
2019-06-21 11:28:33 +00:00
|
|
|
Requires: python-setuptools
|
2013-07-31 06:25:58 +00:00
|
|
|
Requires: python-translationstring >= 0.4
|
2015-02-06 16:50:05 +00:00
|
|
|
Requires: python-venusian >= 1.0
|
2013-07-31 06:25:58 +00:00
|
|
|
Requires: python-zope.deprecation >= 3.5.0
|
|
|
|
Requires: python-zope.interface >= 3.8.0
|
2020-03-17 10:54:33 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-08-03 10:07:47 +00:00
|
|
|
Requires(postun):update-alternatives
|
2011-09-27 19:04:38 +00:00
|
|
|
BuildArch: noarch
|
2020-03-17 10:54:33 +00:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-repoze.lru >= 0.4
|
|
|
|
%endif
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-repoze.lru >= 0.4
|
|
|
|
%endif
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_subpackages
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%description
|
2017-08-08 16:00:57 +00:00
|
|
|
Pyramid is a Python web application development framework
|
|
|
|
produced by the Pylons Project (http://pylonsproject.org).
|
|
|
|
It was previously known as repoze.bfg (http://bfg.repoze.org).
|
2011-09-27 19:04:38 +00:00
|
|
|
|
2023-02-20 05:47:16 +00:00
|
|
|
|
|
|
|
|
2024-01-02 21:18:37 +00:00
|
|
|
|
|
|
|
|
2017-09-11 15:45:22 +00:00
|
|
|
# NOTE: The documentation in the docs/ directory is under a
|
|
|
|
# non-free license (CC-BY-NC-SA-3.0). Do not package it.
|
2013-07-31 06:25:58 +00:00
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n pyramid-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_build
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_install
|
2020-03-17 10:54:33 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-07-16 16:30:25 +00:00
|
|
|
|
2021-08-03 10:07:47 +00:00
|
|
|
for p in pdistreport prequest proutes pserve pshell ptweens pviews; do
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
|
|
|
done
|
2015-02-03 18:42:51 +00:00
|
|
|
|
2013-07-31 06:25:58 +00:00
|
|
|
%check
|
2017-07-16 16:30:25 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2020-07-02 09:12:44 +00:00
|
|
|
%pytest tests/
|
2013-07-31 06:25:58 +00:00
|
|
|
|
2015-02-03 18:42:51 +00:00
|
|
|
%post
|
2021-08-03 10:07:47 +00:00
|
|
|
%python_install_alternative pdistreport prequest proutes pserve pshell ptweens pviews
|
2017-07-16 16:30:25 +00:00
|
|
|
|
|
|
|
%postun
|
2021-08-03 10:07:47 +00:00
|
|
|
%python_uninstall_alternative pdistreport
|
2017-07-16 16:30:25 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2020-03-17 10:54:33 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc *.rst
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_alternative %{_bindir}/pdistreport
|
|
|
|
%python_alternative %{_bindir}/prequest
|
|
|
|
%python_alternative %{_bindir}/proutes
|
|
|
|
%python_alternative %{_bindir}/pserve
|
|
|
|
%python_alternative %{_bindir}/pshell
|
|
|
|
%python_alternative %{_bindir}/ptweens
|
|
|
|
%python_alternative %{_bindir}/pviews
|
2011-09-27 19:04:38 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|