Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3
python-FormEncode
python-FormEncode.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-FormEncode.spec of Package python-FormEncode
# # spec file for package python-FormEncode # # Copyright (c) 2019 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-FormEncode Version: 1.3.1 Release: 0 Summary: HTML form validation, generation, and conversion package License: Python-2.0 Group: Development/Languages/Python URL: http://formencode.org Source: https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz Patch0: remove-online-tests.patch Patch1: new-pycountry.patch Patch2: six.patch BuildRequires: %{python_module dnspython} BuildRequires: %{python_module nose} BuildRequires: %{python_module pycountry} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-dnspython Requires: python-pycountry Requires: python-six BuildArch: noarch %ifpython2 Provides: %{oldpython}-formencode = %{version} Obsoletes: %{oldpython}-formencode < %{version} %endif %python_subpackages %description FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. %prep %setup -q -n FormEncode-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 dos2unix README.rst %build %python_build %install %python_install # remove misplaced documentation %python_expand rm -r %{buildroot}%{$python_sitelib}/docs %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF-8 # excluded tests poll dns %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v -e '(test_cyrillic_email|test_unicode_ascii_subgroup)' formencode/tests %files %{python_files} %doc README.rst %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor