[packages/python-FormEncode] - remove bogus version detection, rel 5
baggins
baggins at pld-linux.org
Fri Apr 8 23:50:45 CEST 2022
commit 0b38746a592e5efa48ea99f37d142806c2e20b0c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Apr 8 23:50:14 2022 +0200
- remove bogus version detection, rel 5
python-FormEncode.spec | 4 +++-
versions.patch | 12 ++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/python-FormEncode.spec b/python-FormEncode.spec
index b3b1255..2e8d9e3 100644
--- a/python-FormEncode.spec
+++ b/python-FormEncode.spec
@@ -10,13 +10,14 @@ Summary: HTML form validation, generation, and convertion package
Summary(pl.UTF-8): Moduł do walidacji, tworzenia i konwersji formularzy HTML
Name: python-%{module}
Version: 1.3.1
-Release: 4
+Release: 5
License: PSF
Group: Development/Languages/Python
#Source0Download: https://pypi.org/project/FormEncode/
Source0: https://files.pythonhosted.org/packages/source/F/FormEncode/%{module}-%{version}.tar.gz
# Source0-md5: 16fbefb206064eb93a6719f054a19b3b
Patch0: %{name}-pycountry.patch
+Patch1: versions.patch
URL: http://formencode.org/
%if %{with python2}
BuildRequires: python-modules >= 1:2.6
@@ -84,6 +85,7 @@ Dokumentacja API modułu Pythona FormEncode.
%prep
%setup -q -n %{module}-%{version}
%patch0 -p1
+%patch1 -p1
# uses network to validate domains (with one no longer valid anyway)
%{__rm} formencode/tests/test_email.py
diff --git a/versions.patch b/versions.patch
new file mode 100644
index 0000000..e77d2a4
--- /dev/null
+++ b/versions.patch
@@ -0,0 +1,12 @@
+--- FormEncode-1.3.1/setup.py~ 2016-08-09 04:14:05.000000000 +0200
++++ FormEncode-1.3.1/setup.py 2022-04-08 23:45:49.466208656 +0200
+@@ -11,9 +11,6 @@
+
+ version = '1.3.1'
+
+-if not '2.6' <= sys.version < '3.0' and not '3.2' <= sys.version:
+- raise ImportError('Python version not supported')
+-
+ tests_require = ['nose', 'pycountry',
+ 'dnspython' if sys.version < '3.0' else 'dnspython3']
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-FormEncode.git/commitdiff/0b38746a592e5efa48ea99f37d142806c2e20b0c
More information about the pld-cvs-commit
mailing list