d25e21
%global mod_name wtforms
Praveen 4ee03f
Praveen 4ee03f
Name:           python-wtforms
d25e21
Version:        2.2.1
5e55e8
Release:        4%{?dist}
Praveen 4ee03f
Summary:        Forms validation and rendering library for python
Praveen 4ee03f
Praveen 4ee03f
License:        BSD
Praveen 4ee03f
URL:            http://wtforms.simplecodes.com/
d25e21
Source0:        http://pypi.python.org/packages/source/W/%{mod_name}/%{mod_name}-%{version}.tar.gz
e7d322
Praveen 4ee03f
BuildArch:      noarch
de486b
BuildRequires:  python2-devel
de486b
BuildRequires:  python2-setuptools
a45aab
a45aab
BuildRequires:  python%{python3_pkgversion}-devel
a45aab
BuildRequires:  python%{python3_pkgversion}-setuptools
Praveen 4ee03f
55128a
%global _description\
55128a
With wtforms, your form field HTML can be generated for you.\
55128a
This allows you to maintain separation of code and presentation,\
Praveen 4ee03f
and keep those messy parameters out of your python code.
Praveen 4ee03f
55128a
%description %_description
55128a
55128a
%package -n python2-wtforms
55128a
Summary: %summary
55128a
%{?python_provide:%python_provide python2-wtforms}
55128a
55128a
%description -n python2-wtforms %_description
55128a
a45aab
%package -n python%{python3_pkgversion}-wtforms
Praveen Kumar adfb41
Summary:        Forms validation and rendering library for python
Praveen Kumar adfb41
a45aab
%description -n python%{python3_pkgversion}-wtforms
Praveen Kumar adfb41
With wtforms, your form field HTML can be generated for you. 
Praveen Kumar adfb41
This allows you to maintain separation of code and presentation, 
Praveen Kumar adfb41
and keep those messy parameters out of your python code.
Praveen Kumar adfb41
Praveen 4ee03f
Praveen 4ee03f
%prep
Praveen 4ee03f
%setup -q -n %{mod_name}-%{version}
Praveen 4ee03f
sed -i "s|\r||g" docs/Makefile
06e143
sed -i "s|\r||g" CHANGES.rst
Praveen 4ee03f
Praveen Kumar adfb41
rm -rf %{py3dir}
Praveen Kumar adfb41
cp -a . %{py3dir}
Praveen Kumar adfb41
Praveen 4ee03f
%build
d25e21
rm wtforms/locale/README.md
Praveen Kumar adfb41
%{__python2} setup.py build
Praveen 4ee03f
Praveen Kumar adfb41
pushd %{py3dir}
Praveen Kumar adfb41
%{__python3} setup.py build
Praveen Kumar adfb41
popd
Praveen 4ee03f
Praveen 4ee03f
%install
d25e21
d25e21
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
Praveen 4ee03f
06e143
#mkdir -p %{buildroot}/%{_datadir}
06e143
#mv %{buildroot}/%{python_sitelib}/wtforms/locale %{buildroot}%{_datadir}
06e143
#find %{buildroot}%{_datadir}/locale -name '*.po*' -delete
e7d322
Praveen Kumar adfb41
pushd %{py3dir}
d25e21
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
06e143
# rm -rf %{buildroot}/%{python3_sitelib}/wtforms/locale
Praveen Kumar adfb41
popd
Praveen Kumar adfb41
d25e21
#% find_lang wtforms
Praveen Kumar adfb41
d25e21
%files -n python2-wtforms
d25e21
# -f wtforms.lang
d25e21
%doc docs/ README.rst AUTHORS.rst  CHANGES.rst
d25e21
%license LICENSE.rst
06e143
%{python2_sitelib}/WTForms-%{version}-py*.egg-info
06e143
%{python2_sitelib}/wtforms/
Praveen 4ee03f
d25e21
%files -n python%{python3_pkgversion}-wtforms
d25e21
# -f wtforms.lang
d25e21
%doc docs/ README.rst AUTHORS.rst  CHANGES.rst
d25e21
%license LICENSE.rst
06e143
%{python3_sitelib}/WTForms-%{version}-py*.egg-info
e7d322
%{python3_sitelib}/wtforms/
Praveen 4ee03f
Praveen 4ee03f
%changelog
5e55e8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
5e55e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5e55e8
d6d841
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-3
d6d841
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d6d841
06e143
* Sun Jul 08 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.2.1-2
06e143
- update some macros
06e143
d25e21
* Sat Jun 30 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.2.1-1
d25e21
- new version 2.2.1
d25e21
cc2bf4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0-15
cc2bf4
- Rebuilt for Python 3.7
cc2bf4
a45aab
* Fri Feb 16 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.0-14
a45aab
- make spec file compatible with epel7
a45aab
- remove conditionals, always build for python 3
a45aab
de486b
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0-13
de486b
- Update Python 2 dependency declarations to new packaging standards
de486b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
de486b
b023cb
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-12
b023cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b023cb
55128a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0-11
55128a
- Python 2 binary package renamed to python2-wtforms
55128a
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
55128a
e7ae4d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-10
e7ae4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e7ae4d
33c43f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-9
33c43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
33c43f
96af57
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0-8
96af57
- Rebuild for Python 3.6
96af57
9867f3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-7
9867f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9867f3
b2536d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
b2536d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b2536d
fd5e39
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-5
fd5e39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fd5e39
e7d322
* Mon Dec 01 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.0-4
e7d322
- Move the locale files into /usr/share/locale we will still have the same files
e7d322
  present in both the py2 and py3 but a) they are completely identical so no
e7d322
  conflicts from RPM and b) they are now in the proper place, system-wise
e7d322
e7d322
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fdoraproject.org> - 2.0-3
3f7379
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3f7379
3f5b30
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.0-2
3f5b30
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
3f5b30
Praveen Kumar adfb41
* Sat May 24 2014 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> 2.0-1
Praveen Kumar adfb41
- Upgrade to upstream version
Praveen Kumar adfb41
- Add python3 support
Praveen Kumar adfb41
eb7e98
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
eb7e98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eb7e98
de688a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
de688a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
de688a
Praveen Kumar adfb41
* Thu Aug 09 2012 Tim Flink <tflink@fedoraproject.org> - 1.0.2-1
d740c4
- Upgraded to upstream 1.0.2
d740c4
79415b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
79415b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
79415b
46141d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
46141d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
46141d
Praveen 4ee03f
* Thu Jul 21 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.6.3-1
Praveen 4ee03f
- Initial RPM release