From 0a023d5a86e9596f66e87957c069c9b73ec603004ee6162fc8755c0320166fa4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:26:12 +0000 Subject: [PATCH] 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