From f6d7d0fed13810768071ea85f0e4ecd56956073b9c4e61da71cbc7e7fe936db9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 30 Jun 2017 07:45:05 +0000 Subject: [PATCH] Accepting request 507133 from home:tbechtold:branches:devel:languages:python - update to 2.4.1: * Release as a universal wheel. PR #75. * Convert readthedocs links for their .org -> .io migration for hosted projects. - convert to singlespec - Fix Source url OBS-URL: https://build.opensuse.org/request/show/507133 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Routes?expand=0&rev=20 --- Routes-2.3.1.tar.gz | 3 --- Routes-2.4.1.tar.gz | 3 +++ python-Routes.changes | 9 +++++++++ python-Routes.spec | 37 ++++++++++++++++++------------------- 4 files changed, 30 insertions(+), 22 deletions(-) delete mode 100644 Routes-2.3.1.tar.gz create mode 100644 Routes-2.4.1.tar.gz diff --git a/Routes-2.3.1.tar.gz b/Routes-2.3.1.tar.gz deleted file mode 100644 index f09a5a0..0000000 --- a/Routes-2.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98c380b5dc1190b873463be07383728ada18f66d2615531963004b9d6fb90351 -size 181694 diff --git a/Routes-2.4.1.tar.gz b/Routes-2.4.1.tar.gz new file mode 100644 index 0000000..aa2b8cf --- /dev/null +++ b/Routes-2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26ee43340fca5a32769ffe0c58edcb396ccce6bc1dfa689ddf844d50877355fd +size 182403 diff --git a/python-Routes.changes b/python-Routes.changes index ac7d4c1..f9c5dbd 100644 --- a/python-Routes.changes +++ b/python-Routes.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jun 29 16:20:01 UTC 2017 - tbechtold@suse.com + +- update to 2.4.1: + * Release as a universal wheel. PR #75. + * Convert readthedocs links for their .org -> .io migration for hosted projects. +- convert to singlespec +- Fix Source url + ------------------------------------------------------------------- Fri Jun 3 15:51:22 UTC 2016 - tbechtold@suse.com diff --git a/python-Routes.spec b/python-Routes.spec index 5ffa6a8..ff4d611 100644 --- a/python-Routes.spec +++ b/python-Routes.spec @@ -1,7 +1,7 @@ # # spec file for package python-Routes # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,32 +16,31 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Routes -Version: 2.3.1 +Version: 2.4.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 +Source: https://files.pythonhosted.org/packages/source/R/Routes/Routes-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # for testing -BuildRequires: python-WebOb -BuildRequires: python-WebTest -BuildRequires: python-coverage -BuildRequires: python-nose -BuildRequires: python-repoze.lru >= 0.3 - +BuildRequires: %{python_module WebOb} +BuildRequires: %{python_module WebTest} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module repoze.lru} 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 + +%python_subpackages %description A Routing package for Python that matches URL's to dicts and vice versa. @@ -50,15 +49,15 @@ A Routing package for Python that matches URL's to dicts and vice versa. %setup -q -n Routes-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -nosetests +%python_exec %{_bindir}/nosetests -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGELOG.rst LICENSE.txt README.rst %{python_sitelib}/*