From 2e1cf8c34f620dab9699202c3af1c823679a1146c68281b04ea367bed8cdf2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 Aug 2018 11:31:35 +0000 Subject: [PATCH] - Sort out a bit with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-voluptuous?expand=0&rev=11 --- python-voluptuous.changes | 5 +++++ python-voluptuous.spec | 21 +++++++-------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/python-voluptuous.changes b/python-voluptuous.changes index fcd8905..4cbdbdd 100644 --- a/python-voluptuous.changes +++ b/python-voluptuous.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 7 11:31:24 UTC 2018 - tchvatal@suse.com + +- Sort out a bit with spec-cleaner + ------------------------------------------------------------------- Fri Mar 23 15:05:35 UTC 2018 - tbechtold@suse.com diff --git a/python-voluptuous.spec b/python-voluptuous.spec index dbcfa26..45f7ca9 100644 --- a/python-voluptuous.spec +++ b/python-voluptuous.spec @@ -23,15 +23,13 @@ Release: 0 Summary: Voluptuous is a Python data validation library License: BSD-3-Clause Group: Development/Languages/Python -Url: http://github.com/alecthomas/voluptuous -Source: https://pypi.io/packages/source/v/voluptuous/voluptuous-%{version}.tar.gz -BuildRequires: %{python_module devel} +URL: http://github.com/alecthomas/voluptuous +Source: https://files.pythonhosted.org/packages/source/v/voluptuous/voluptuous-%{version}.tar.gz BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -39,12 +37,6 @@ Voluptuous, *despite* the name, is a Python data validation library. It is primarily intended for validating data coming into Python as JSON, YAML, etc. -It has three goals: - -1. Simplicity. -2. Support for complex data structures. -3. Provide useful error messages. - %prep %setup -q -n voluptuous-%{version} @@ -53,13 +45,14 @@ It has three goals: %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec %{_bindir}/nosetests +%python_exec %{_bindir}/nosetests -v %files %{python_files} -%defattr(-,root,root,-) -%doc COPYING README.md README.rst +%license COPYING +%doc README.md README.rst %{python_sitelib}/* %changelog