forked from pool/python-WTForms
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WTForms?expand=0&rev=13
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user