2011-09-27 19:04:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyramid
|
|
|
|
#
|
2013-03-06 18:45:47 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-07-31 06:25:58 +00:00
|
|
|
# Copyright (c) 2013 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
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
Name: python-pyramid
|
2013-07-31 06:25:58 +00:00
|
|
|
Version: 1.4.3
|
2011-09-27 19:04:38 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://pylonsproject.org
|
|
|
|
Summary: The Pyramid web application development framework, a Pylons project
|
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
|
|
|
|
Source: http://pypi.python.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz
|
2013-07-31 06:25:58 +00:00
|
|
|
Source1: pylons_theme_support.py
|
|
|
|
Requires: python-Chameleon >= 1.2.3
|
|
|
|
Requires: python-Mako >= 0.3.6
|
|
|
|
Requires: python-PasteDeploy >= 1.5.0
|
|
|
|
Requires: python-WebOb >= 1.2b3
|
|
|
|
Requires: python-repoze.lru >= 0.4
|
|
|
|
Requires: python-translationstring >= 0.4
|
|
|
|
Requires: python-venusian >= 1.0a3
|
|
|
|
Requires: python-zope.deprecation >= 3.5.0
|
|
|
|
Requires: python-zope.interface >= 3.8.0
|
2012-02-01 10:09:47 +00:00
|
|
|
BuildRequires: fdupes
|
2013-07-31 06:25:58 +00:00
|
|
|
BuildRequires: python-Chameleon >= 1.2.3
|
|
|
|
BuildRequires: python-Mako >= 0.3.6
|
|
|
|
BuildRequires: python-PasteDeploy >= 1.5.0
|
|
|
|
BuildRequires: python-WebOb >= 1.2b3
|
2012-02-01 10:09:47 +00:00
|
|
|
BuildRequires: python-distribute
|
2013-07-31 06:25:58 +00:00
|
|
|
BuildRequires: python-repoze.lru >= 0.4
|
|
|
|
BuildRequires: python-translationstring >= 0.4
|
|
|
|
BuildRequires: python-venusian >= 1.0a3
|
|
|
|
BuildRequires: python-zope.deprecation >= 3.5.0
|
|
|
|
BuildRequires: python-zope.interface >= 3.8.0
|
|
|
|
# Documentation requirements:
|
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
BuildRequires: python-docutils
|
|
|
|
BuildRequires: python-pylons_sphinx_theme
|
|
|
|
BuildRequires: python-repoze.sphinx.autointerface
|
|
|
|
# Testing requirements:
|
|
|
|
BuildRequires: python-WebTest >= 1.3.1
|
|
|
|
BuildRequires: python-coverage
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-zope.component >= 3.11.0
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2012-02-01 10:09:47 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2011-09-27 19:04:38 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%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).
|
|
|
|
|
2013-07-31 06:25:58 +00:00
|
|
|
%package doc
|
|
|
|
Summary: The Pyramid web application development framework, a Pylons project
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n pyramid-%{version}
|
2013-07-31 06:25:58 +00:00
|
|
|
cp %{SOURCE1} .
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%build
|
2012-02-01 10:09:47 +00:00
|
|
|
python setup.py build
|
2013-07-31 06:25:58 +00:00
|
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-09-27 19:04:38 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2012-02-01 10:09:47 +00:00
|
|
|
rm -rf %{buildroot}%{python_sitelib}/pyramid/tests # Big, hidden files, fdupes -> don't package
|
|
|
|
%fdupes %{buildroot}%{python_sitelib}
|
2011-09-27 19:04:38 +00:00
|
|
|
|
2013-07-31 06:25:58 +00:00
|
|
|
%check
|
|
|
|
#python setup.py test
|
|
|
|
python setup.py nosetests --with-coverage
|
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-07-31 06:25:58 +00:00
|
|
|
%doc *.txt *.rst
|
2012-02-01 10:09:47 +00:00
|
|
|
%{_bindir}/bfg2pyramid
|
|
|
|
%{_bindir}/pcreate
|
|
|
|
%{_bindir}/prequest
|
|
|
|
%{_bindir}/proutes
|
|
|
|
%{_bindir}/pserve
|
|
|
|
%{_bindir}/pshell
|
|
|
|
%{_bindir}/ptweens
|
|
|
|
%{_bindir}/pviews
|
2011-09-27 19:04:38 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2013-07-31 06:25:58 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc build/sphinx/html
|
|
|
|
|
2011-09-27 19:04:38 +00:00
|
|
|
%changelog
|