2011-09-27 19:04:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyramid
|
|
|
|
#
|
2017-07-16 16:30:25 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (c) 2015 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
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-03-06 18:45:47 +00:00
|
|
|
|
2017-07-16 16:30:25 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-27 19:04:38 +00:00
|
|
|
Name: python-pyramid
|
2017-07-16 16:30:25 +00:00
|
|
|
Version: 1.9.1
|
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
|
2013-03-06 18:45:47 +00:00
|
|
|
License: BSD-4-Clause and ZPL-2.1 and MIT
|
2011-09-27 19:04:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-07-16 16:30:25 +00:00
|
|
|
Url: http://pylonsproject.org
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module PasteDeploy} >= 1.5.0
|
|
|
|
BuildRequires: %{python_module WebOb} >= 1.7.0
|
|
|
|
BuildRequires: %{python_module repoze.lru} >= 0.4
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
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
|
|
|
|
# SECTION documentation requirements
|
|
|
|
BuildRequires: python3-Sphinx >= 1.3.5
|
|
|
|
BuildRequires: python3-docutils
|
|
|
|
BuildRequires: python3-pylons-sphinx-themes
|
|
|
|
BuildRequires: python3-repoze.sphinx.autointerface
|
|
|
|
BuildRequires: python3-sphinxcontrib-autoprogram
|
|
|
|
# /SECTION
|
|
|
|
# SECTION testing requirements
|
|
|
|
BuildRequires: %{python_module WebTest} >= 1.3.1
|
|
|
|
BuildRequires: %{python_module coverage}
|
|
|
|
BuildRequires: %{python_module hupper}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module plaster-pastedeploy}
|
|
|
|
BuildRequires: %{python_module plaster}
|
|
|
|
BuildRequires: %{python_module zope.component} >= 4.0
|
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2013-07-31 06:25:58 +00:00
|
|
|
Requires: python-PasteDeploy >= 1.5.0
|
2017-07-16 16:30:25 +00:00
|
|
|
Requires: python-WebOb >= 1.7.0
|
2013-07-31 06:25:58 +00:00
|
|
|
Requires: python-repoze.lru >= 0.4
|
|
|
|
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
|
2017-07-16 16:30:25 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2013-07-31 06:25:58 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-27 19:04:38 +00:00
|
|
|
BuildArch: noarch
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_subpackages
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pyramid is a small, fast, down-to-earth, open source Python web application
|
|
|
|
development framework. It makes real-world web application development and
|
|
|
|
deployment more fun, more predictable, and more productive.
|
|
|
|
|
|
|
|
Pyramid is the newest web framework produced by the Pylons Project
|
|
|
|
(http://pylonsproject.org).
|
|
|
|
|
|
|
|
Pyramid was previously known as repoze.bfg (http://bfg.repoze.org).
|
|
|
|
|
2017-07-16 16:30:25 +00:00
|
|
|
%package -n %{name}-doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
2013-07-31 06:25:58 +00:00
|
|
|
Requires: %{name} = %{version}
|
2017-07-16 16:30:25 +00:00
|
|
|
Provides: %{python_module pyramid-doc = %{version}}
|
2013-07-31 06:25:58 +00:00
|
|
|
|
2017-07-16 16:30:25 +00:00
|
|
|
%description -n %{name}-doc
|
2013-07-31 06:25:58 +00:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n pyramid-%{version}
|
2017-07-16 16:30:25 +00:00
|
|
|
# fix inconsistent mtime error
|
|
|
|
touch -r pyramid/__init__.py pyramid/scaffolds/alchemy/+package+/scripts/__init__.py \
|
|
|
|
pyramid/scripts/__init__.py
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_build
|
|
|
|
%{_python_use_flavor python3}
|
|
|
|
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_install
|
|
|
|
%{python_expand rm -rf %{buildroot}%{$python_sitelib}/pyramid/tests
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
|
|
|
|
|
|
|
for p in pcreate pdistreport prequest proutes pserve pshell ptweens pviews; do
|
|
|
|
%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
|
|
|
|
%python_expand $python setup.py nosetests --with-coverage -vvv
|
2013-07-31 06:25:58 +00:00
|
|
|
|
2015-02-03 18:42:51 +00:00
|
|
|
%post
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_install_alternative pcreate pdistreport prequest proutes pserve pshell ptweens pviews
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pcreate
|
|
|
|
|
|
|
|
%files %{python_files}
|
2011-09-27 19:04:38 +00:00
|
|
|
%defattr(-,root,root,-)
|
2013-07-31 06:25:58 +00:00
|
|
|
%doc *.txt *.rst
|
2017-07-16 16:30:25 +00:00
|
|
|
%python_alternative %{_bindir}/pcreate
|
|
|
|
%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}/*
|
|
|
|
|
2017-07-16 16:30:25 +00:00
|
|
|
%files -n %{name}-doc
|
2013-07-31 06:25:58 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc build/sphinx/html
|
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
%changelog
|