2011-09-01 10:46:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-FormEncode
|
|
|
|
#
|
2019-03-04 17:26:44 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-01 10:46:49 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2013-06-13 10:56:46 +02:00
|
|
|
|
2018-12-04 14:28:22 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-01 10:46:49 +02:00
|
|
|
#
|
|
|
|
|
2013-06-13 10:56:46 +02:00
|
|
|
|
2017-09-05 13:55:26 +02:00
|
|
|
%define oldpython python
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-01 10:46:49 +02:00
|
|
|
Name: python-FormEncode
|
2019-03-04 17:26:44 +01:00
|
|
|
Version: 1.3.1
|
2011-09-01 10:46:49 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: HTML form validation, generation, and conversion package
|
2012-03-14 14:44:41 +01:00
|
|
|
License: Python-2.0
|
2011-09-01 10:46:49 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-03-04 17:26:44 +01:00
|
|
|
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
|
2019-03-07 12:09:56 +01:00
|
|
|
Patch2: six.patch
|
|
|
|
BuildRequires: %{python_module dnspython}
|
2019-03-04 17:26:44 +01:00
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module pycountry}
|
2017-09-05 13:55:26 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-07 12:09:56 +01:00
|
|
|
BuildRequires: %{python_module six}
|
2019-03-04 17:26:44 +01:00
|
|
|
BuildRequires: dos2unix
|
2015-05-07 13:54:26 +02:00
|
|
|
BuildRequires: fdupes
|
2017-09-05 13:55:26 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-07 12:09:56 +01:00
|
|
|
Requires: python-dnspython
|
|
|
|
Requires: python-pycountry
|
|
|
|
Requires: python-six
|
2012-03-14 14:44:41 +01:00
|
|
|
BuildArch: noarch
|
2017-09-05 13:55:26 +02:00
|
|
|
%ifpython2
|
|
|
|
Provides: %{oldpython}-formencode = %{version}
|
|
|
|
Obsoletes: %{oldpython}-formencode < %{version}
|
2012-03-14 14:44:41 +01:00
|
|
|
%endif
|
2017-09-05 13:55:26 +02:00
|
|
|
%python_subpackages
|
2011-09-01 10:46:49 +02:00
|
|
|
|
|
|
|
%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
|
2019-03-04 17:26:44 +01:00
|
|
|
%setup -q -n FormEncode-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2019-03-07 12:09:56 +01:00
|
|
|
%patch2 -p1
|
2019-03-04 17:26:44 +01:00
|
|
|
dos2unix README.rst
|
2011-09-01 10:46:49 +02:00
|
|
|
|
|
|
|
%build
|
2017-09-05 13:55:26 +02:00
|
|
|
%python_build
|
2011-09-01 10:46:49 +02:00
|
|
|
|
|
|
|
%install
|
2017-09-05 13:55:26 +02:00
|
|
|
%python_install
|
2015-05-07 13:54:26 +02:00
|
|
|
|
2019-03-04 17:26:44 +01:00
|
|
|
# remove misplaced documentation
|
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/docs
|
2015-05-07 13:54:26 +02:00
|
|
|
|
2019-03-04 17:26:44 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
# excluded tests poll dns
|
2019-03-07 12:09:56 +01:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v -e '(test_cyrillic_email|test_unicode_ascii_subgroup)' formencode/tests
|
2011-09-01 10:46:49 +02:00
|
|
|
|
2017-09-05 13:55:26 +02:00
|
|
|
%files %{python_files}
|
2017-09-07 17:45:01 +02:00
|
|
|
%doc README.rst
|
2011-09-01 10:46:49 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|