File python-Pylons.spec of Package python-Pylons
#
# spec file for package python-Pylons
#
# Copyright (c) 2011 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.1rc1
Release: 0
License: BSD-3-Clause
Summary: Pylons Web Framework
Url: http://www.pylonshq.com/
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/P/Pylons/Pylons-%{version}.tar.gz
BuildRequires: python-devel
#BuildRequires: python-FormEncode
#BuildRequires: python-Jinja2
#BuildRequires: python-PasteScript
#BuildRequires: python-coverage
#BuildRequires: python-decorator
BuildRequires: python-distribute
#BuildRequires: python-Genshi
#BuildRequires: python-Mako
#BuildRequires: python-nose
#BuildRequires: python-Tempita
#BuildRequires: python-WebError
#BuildRequires: python-WebHelpers
#BuildRequires: python-WebTest
BuildRequires: fdupes
Requires: python-FormEncode >= 1.2.1
Requires: python-PasteScript >= 1.7.3
Requires: python-Beaker >= 1.3
Requires: python-decorator >= 2.3.2
Requires: python-Mako >= 0.2.4
Requires: python-nose >= 0.10.4
Requires: python-Routes >= 1.12
Requires: python-simplejson >= 2.0.8
Requires: python-Tempita >= 0.2
Requires: python-WebError >= 0.10.1
Requires: python-WebHelpers >= 0.6.4
Requires: python-WebOb >= 0.9.6.1
Requires: python-WebTest >= 1.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
%fdupes %{buildroot}%{_prefix}
#%%check
#nosetests
%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README.txt UPGRADING
%{python_sitelib}/*
%changelog