14
0

Accepting request 229669 from home:aboe76:branches:devel:languages:python

Updated to wtforms 1.0.5
fixed most rpmlint issues.

OBS-URL: https://build.opensuse.org/request/show/229669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WTForms?expand=0&rev=5
This commit is contained in:
Denisart Benjamin
2014-04-12 17:57:08 +00:00
committed by Git OBS Bridge
parent 8f3858c7c2
commit 86f1c89721
4 changed files with 62 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36420eb1ff3005f147cd081a7914d4d6cdbd5ea1d58cd32addf07fd2e659a727
size 326398

3
WTForms-1.0.5.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b36b06e230403927c5e679ba84834053e9df380a0c0414bf70bca4ba1f672227
size 355186

View File

@@ -1,4 +1,19 @@
-------------------------------------------------------------------
Thu Apr 10 19:40:40 UTC 2014 - aboe76@gmail.com
- Updated to version 1.0.5:
+ Fix a bug in validators which causes translations to happen once then clobber any future translations.
+ ext.sqlalchemy / ext.appengine: minor cleanups / deprecation.
+ Allow blank string and the string 'false' to be considered false values for BooleanField (configurable). This is technically a breaking change, but it is not likey to affect the majority of users adversely.
+ ext.i18n form allows passing LANGUAGES to the constructor.
- from version 1.0.4:
+ Add widgets and field implementations for HTML5 specialty input types.
+ ext.appengine: Add NDB support.
+ Add translations: Korean, Traditional Chinese
- cleaned up spec file:
+ created a doc package
+ rpmlint lang warnings script taken from python-wxWidgets
-------------------------------------------------------------------
Thu Oct 24 11:17:32 UTC 2013 - speilicke@suse.com
- Require python-setuptools instead of distribute (upstreams merged)

View File

@@ -17,7 +17,7 @@
Name: python-WTForms
Version: 1.0.3
Version: 1.0.5
Release: 0
Url: http://wtforms.simplecodes.com/
Summary: A flexible forms validation and rendering library for Python web development
@@ -27,22 +27,42 @@ Source: http://pypi.python.org/packages/source/W/WTForms/WTForms-%{versi
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: fdupes
BuildRequires: unzip
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Recommends: python-django
Recommends: python-google-appengine
Recommends: python-SQLAlchemy
%if 0%{?suse_version} > 1110
%else
BuildArch: noarch
%endif
%endif
Provides: python-wtforms = %{version}
Obsoletes: python-wtforms < %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
WTForms is a forms validation and rendering library for Python web development.
With WTForms, your form field HTML can be generated for you, but we let you customize it in your templates.
This allows you to maintain separation of code and presentation, and keep those messy parameters out of your python code.
Because we strive for loose coupling, you should be able to do that in any templating engine you like, as well.
%package doc
Summary: Documentation for WTForms
Group: Documentation/HTML
Requires: %{name} = %{version}
%description doc
Documentation of WTForms is a forms validation and rendering library for Python web development.
%package lang
# We cannot use %%lang_package here. wtforms translations use noarch incompatible path.
Summary: Languages for package %{name}
Group: System/Localization
Requires: %{name} = %{version}
Provides: %{name}-lang-all = %{version}
Supplements: packageand(bundle-lang-other:%{name})
%description lang
Provides translations to the package %{name}
%prep
%setup -q -n WTForms-%{version}
@@ -55,9 +75,24 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Create %%lang tags for mo files in non-standard path:
echo "%%defattr(-, root, root)" >wtforms.lang
for LNG_DIR in $RPM_BUILD_ROOT%{python_sitelib}/wtforms/ext/i18n/messages/* ; do
LNG=${LNG_DIR##*/}
echo "%%lang($LNG) %%{python_sitelib}${LNG_DIR#$RPM_BUILD_ROOT%{python_sitelib}}" >>wtforms.lang
done
%fdupes %{buildroot}%{_prefix}
%files doc
%defattr(-,root,root,-)
%doc docs/html
%files lang -f wtforms.lang
%files
%defattr(-,root,root,-)
%doc AUTHORS.txt CHANGES.txt LICENSE.txt README.txt docs/html
%exclude %{python_sitelib}/wtforms/ext/i18n/messages/*
%{python_sitelib}/*
%doc AUTHORS.txt CHANGES.txt LICENSE.txt README.txt
%changelog