File python-Pylons.spec of Package python-Pylons
#
# spec file for package python-Pylons
#
# Copyright (c) 2013 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-Pylons
Version: 1.0.1
Release: 0
Summary: Pylons Web Framework
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://www.pylonshq.com/
Source: http://pypi.python.org/packages/source/P/Pylons/Pylons-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-Beaker
BuildRequires: python-FormEncode
BuildRequires: python-Genshi
BuildRequires: python-Jinja2 >= 2.2.1
BuildRequires: python-Mako
BuildRequires: python-MarkupSafe
BuildRequires: python-Paste
BuildRequires: python-PasteDeploy
BuildRequires: python-PasteScript
BuildRequires: python-Routes
BuildRequires: python-Tempita
BuildRequires: python-WebError
BuildRequires: python-WebHelpers
BuildRequires: python-WebOb
BuildRequires: python-WebTest
BuildRequires: python-coverage >= 2.85
BuildRequires: python-decorator
BuildRequires: python-devel
BuildRequires: python-distribute
BuildRequires: python-nose
BuildRequires: python-simplejson
Requires: python-Beaker >= 1.5.4
Requires: python-FormEncode >= 1.2.4
Requires: python-Mako >= 0.5.0
Requires: python-MarkupSafe >= 0.15
Requires: python-Paste >= 1.7.5.1
Requires: python-PasteDeploy >= 1.5.0
Requires: python-PasteScript >= 1.7.4.2
Requires: python-Routes >= 1.12.3
Requires: python-Tempita >= 0.5.1
Requires: python-WebError >= 0.10.3
Requires: python-WebHelpers >= 0.6.4
Requires: python-WebOb >= 1.1.1
Requires: python-WebTest >= 1.3.1
Requires: python-decorator >= 3.3.2
Requires: python-nose >= 1.1.2
Requires: python-simplejson >= 2.2.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: python-pylons = %{version}
Obsoletes: python-pylons < %{version}
%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
BuildArch: noarch
%endif
%description
The Pylons web framework is aimed at making webapps and large programmatic
website development in Python easy. Several key points:
* A framework to make writing web applications in Python easy
* Utilizes a minimalist, component-based philosophy that makes it easy to
expand on
* Harness existing knowledge about Python
%prep
%setup -q -n Pylons-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitelib}/test_files # Remove junk
rm %{buildroot}%{python_sitelib}/pylons/docs/en/.gitignore
%fdupes %{buildroot}%{_prefix}
%check
nosetests -e test_network_failed_validation_non_ascii
%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README.txt UPGRADING
%{python_sitelib}/*
%changelog