From 6b9a685a3b665aa4222b0978857095496d17dbb1e51fb3123d85423a18ad915d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:15:15 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WTForms?expand=0&rev=12 --- python-WTForms.changes | 5 +++++ python-WTForms.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-WTForms.changes b/python-WTForms.changes index f361f84..fe99cc5 100644 --- a/python-WTForms.changes +++ b/python-WTForms.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:56:14 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Sat Sep 2 16:47:57 UTC 2017 - jengelh@inai.de diff --git a/python-WTForms.spec b/python-WTForms.spec index 43155ad..d2c7a59 100644 --- a/python-WTForms.spec +++ b/python-WTForms.spec @@ -1,7 +1,7 @@ # # spec file for package python-WTForms # -# 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,7 @@ # 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/ # @@ -26,7 +26,6 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: http://wtforms.simplecodes.com/ Source: https://files.pythonhosted.org/packages/source/W/WTForms/WTForms-%{version}.zip -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From 0a023d5a86e9596f66e87957c069c9b73ec603004ee6162fc8755c0320166fa4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:26:12 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WTForms?expand=0&rev=13 --- python-WTForms.spec | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/python-WTForms.spec b/python-WTForms.spec index d2c7a59..79224da 100644 --- a/python-WTForms.spec +++ b/python-WTForms.spec @@ -24,23 +24,23 @@ Release: 0 Summary: A flexible forms validation and rendering library for Python web development License: BSD-3-Clause Group: Development/Languages/Python -Url: http://wtforms.simplecodes.com/ +URL: http://wtforms.simplecodes.com/ Source: https://files.pythonhosted.org/packages/source/W/WTForms/WTForms-%{version}.zip BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip +Recommends: python-Babel +Recommends: python-Django +Recommends: python-SQLAlchemy +Recommends: python-python-dateutil +BuildArch: noarch %if %{with test} BuildRequires: python3-Babel BuildRequires: python3-Django BuildRequires: python3-SQLAlchemy BuildRequires: python3-python-dateutil %endif -Recommends: python-Babel -Recommends: python-Django -Recommends: python-SQLAlchemy -Recommends: python-python-dateutil -BuildArch: noarch %python_subpackages %description @@ -58,6 +58,7 @@ Requires: %{name} = %{version} Documentation for WTForms, which is a forms validation and rendering library for Python web development. %package lang +# FIXME: consider using %%lang_package macro Summary: Languages for package %{name} Group: System/Localization Requires: %{name} = %{version} @@ -87,24 +88,21 @@ rm -rf docs/html/.buildinfo # Remove junk %endif %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS.txt CHANGES.rst LICENSE.txt README.md +%license LICENSE.txt +%doc AUTHORS.txt CHANGES.rst README.md %{python_sitelib}/* %exclude %{python_sitelib}/wtforms/locale %files -n %{name}-doc -%defattr(-,root,root,-) %doc docs/html -%if %have_python2 && ! 0%{?skip_python2} +%if %{have_python2} && ! 0%{?skip_python2} %files -n %{python2_prefix}-WTForms-lang -f wtforms_%{python2_bin_suffix}.lang -%defattr(-,root,root,-) %{python2_sitelib}/wtforms/locale %endif -%if %have_python2 && ! 0%{?skip_python3} +%if %{have_python2} && ! 0%{?skip_python3} %files -n %{python3_prefix}-WTForms-lang -f wtforms_%{python3_bin_suffix}.lang -%defattr(-,root,root,-) %{python3_sitelib}/wtforms/locale %endif