From 35db5d8f4ab38a5b8418e7c979f307b78cfb027c07c9f339f392acb651ab78fc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:59:26 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-cache?expand=0&rev=3 --- python-requests-cache.changes | 5 +++++ python-requests-cache.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-requests-cache.changes b/python-requests-cache.changes index 549b11c..8c6c005 100644 --- a/python-requests-cache.changes +++ b/python-requests-cache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:53:42 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Tue Mar 28 17:27:40 UTC 2017 - alarrosa@suse.com diff --git a/python-requests-cache.spec b/python-requests-cache.spec index 61a1fd5..849c13f 100644 --- a/python-requests-cache.spec +++ b/python-requests-cache.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-cache # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -12,7 +12,8 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,14 +21,13 @@ Name: python-requests-cache Version: 0.4.13 Release: 0 -License: BSD-2-Clause Summary: Persistent cache for requests library -Url: https://github.com/reclosedev/requests-cache +License: BSD-2-Clause Group: Development/Languages/Python +Url: https://github.com/reclosedev/requests-cache Source: https://files.pythonhosted.org/packages/source/r/requests-cache/requests-cache-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module requests >= 1.1.0} +BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires: python-requests >= 1.1.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build From 079a87471cd365c4ed45c353d37d55da2cb2cf42724e3262fd75dd05351d9612 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:21:03 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-cache?expand=0&rev=4 --- python-requests-cache.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/python-requests-cache.spec b/python-requests-cache.spec index 849c13f..c889cd6 100644 --- a/python-requests-cache.spec +++ b/python-requests-cache.spec @@ -17,27 +17,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} - Name: python-requests-cache Version: 0.4.13 Release: 0 Summary: Persistent cache for requests library License: BSD-2-Clause Group: Development/Languages/Python -Url: https://github.com/reclosedev/requests-cache +URL: https://github.com/reclosedev/requests-cache Source: https://files.pythonhosted.org/packages/source/r/requests-cache/requests-cache-%{version}.tar.gz BuildRequires: %{python_module requests >= 1.1.0} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires: python-requests >= 1.1.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description Requests-cache is a transparent persistent cache for requests_ (version >= 1.1.0) library. - + It can be useful when you are creating some simple data scraper with constantly changing parsing logic or data format, and don't want to redownload pages or write complex error handling and persistence. @@ -53,17 +50,17 @@ take a look at `httpcache `_ and %setup -q -n requests-cache-%{version} %build -%{python_build} +%python_build %install -%{python_install} +%python_install %check %python_exec setup.py test %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst LICENSE +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog