Files
python-Routes/python-Routes.spec
Dirk Mueller 58e89017e9 Accepting request 399996 from home:tbechtold:branches:devel:languages:python
- update to 2.3.1:
  * Backwards compatability fix - connect should work with mandatory
    routename and optional path. Patch by Davanum Srinivas (PR #65).
  * Fix sub_domain equivalence check. Patch by Nikita Uvarov
  * Add support for protocol-relative URLs generation (i.e. starting with double
    slash ``//``). PR #60. Patch by Sviatoslav Sydorenko.
  * Add support for the ``middleware`` extra requirement, making possible to
    depend on ``webob`` optionally. PR #59. Patch by Sviatoslav Sydorenko.
  * Fix matching of an empty string route, which led to exception in earlier
    versions. PR #58. Patch by Sviatoslav Sydorenko.
  * Add support for the ``requirements`` option when using
    mapper.resource to create routes. PR #57. Patch by Sean Dague.
  * Concatenation fix when using submappers with path prefixes. Multiple
    submappers combined the path prefix inside the controller argument in
    non-obvious ways. The controller argument will now be properly carried
    through when using submappers. PR #28.

OBS-URL: https://build.opensuse.org/request/show/399996
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Routes?expand=0&rev=18
2016-06-06 11:12:51 +00:00

67 lines
2.0 KiB
RPMSpec

#
# spec file for package python-Routes
#
# Copyright (c) 2016 SUSE LINUX 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-Routes
Version: 2.3.1
Release: 0
Url: http://routes.groovie.org/
Summary: Routing Recognition and Generation Tools
License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/R/Routes/Routes-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
# for testing
BuildRequires: python-WebOb
BuildRequires: python-WebTest
BuildRequires: python-coverage
BuildRequires: python-nose
BuildRequires: python-repoze.lru >= 0.3
Requires: python-repoze.lru >= 0.3
Provides: python-routes = %{version}
Obsoletes: python-routes < %{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
A Routing package for Python that matches URL's to dicts and vice versa.
%prep
%setup -q -n Routes-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
%files
%defattr(-,root,root,-)
%doc CHANGELOG.rst LICENSE.txt README.rst
%{python_sitelib}/*
%changelog