2011-09-01 12:53:25 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-Routes
|
|
|
|
|
#
|
2024-06-10 21:14:26 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-09-01 12:53:25 +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.
|
2011-12-12 09:06:50 +00:00
|
|
|
|
2018-12-04 14:00:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 12:53:25 +00:00
|
|
|
#
|
|
|
|
|
|
2011-12-12 09:06:50 +00:00
|
|
|
|
2011-09-01 12:53:25 +00:00
|
|
|
Name: python-Routes
|
2020-11-26 09:14:18 +00:00
|
|
|
Version: 2.5.1
|
2011-09-01 12:53:25 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Routing Recognition and Generation Tools
|
2011-09-01 13:16:29 +00:00
|
|
|
License: BSD-3-Clause
|
2021-11-08 10:28:22 +00:00
|
|
|
URL: https://routes.readthedocs.io/
|
2017-06-30 07:45:05 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/R/Routes/Routes-%{version}.tar.gz
|
2024-06-10 21:14:26 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/bbangert/routes/pull/113 remove python2 support
|
|
|
|
|
Patch: remove-six.patch
|
2015-04-22 09:19:25 +00:00
|
|
|
# for testing
|
2017-06-30 07:45:05 +00:00
|
|
|
BuildRequires: %{python_module WebOb}
|
|
|
|
|
BuildRequires: %{python_module WebTest}
|
2020-06-17 17:27:18 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-06-30 07:45:05 +00:00
|
|
|
BuildRequires: %{python_module repoze.lru}
|
2018-12-04 17:21:51 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-08-19 06:44:19 +00:00
|
|
|
BuildRequires: fdupes
|
2018-12-04 17:21:51 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-04-22 09:19:25 +00:00
|
|
|
Requires: python-repoze.lru >= 0.3
|
2022-08-19 06:44:19 +00:00
|
|
|
Provides: python-routes = %{version}-%{release}
|
|
|
|
|
Obsoletes: python-routes < %{version}-%{release}
|
2012-03-14 13:53:47 +00:00
|
|
|
BuildArch: noarch
|
2017-06-30 07:45:05 +00:00
|
|
|
%python_subpackages
|
2011-09-01 12:53:25 +00:00
|
|
|
|
|
|
|
|
%description
|
2011-09-01 12:59:56 +00:00
|
|
|
A Routing package for Python that matches URL's to dicts and vice versa.
|
2011-09-01 12:53:25 +00:00
|
|
|
|
|
|
|
|
%prep
|
2024-06-10 21:14:26 +00:00
|
|
|
%autosetup -p1 -n Routes-%{version}
|
2011-09-01 12:53:25 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-06-30 07:45:05 +00:00
|
|
|
%python_build
|
2011-09-01 12:53:25 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-06-30 07:45:05 +00:00
|
|
|
%python_install
|
2022-08-19 06:44:19 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-09-01 12:53:25 +00:00
|
|
|
|
2015-04-22 09:19:25 +00:00
|
|
|
%check
|
2020-06-17 17:27:18 +00:00
|
|
|
%pytest --doctest-modules routes
|
2015-04-22 09:19:25 +00:00
|
|
|
|
2017-06-30 07:45:05 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:21:51 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc CHANGELOG.rst README.rst
|
2022-08-19 06:44:19 +00:00
|
|
|
%{python_sitelib}/routes
|
|
|
|
|
%{python_sitelib}/Routes-%{version}*-info
|
2011-09-01 12:53:25 +00:00
|
|
|
|
|
|
|
|
%changelog
|