| |
@@ -1,64 +1,63 @@
|
| |
%global srcname WTForms
|
| |
|
| |
Name: python-wtforms
|
| |
- Version: 2.3.3
|
| |
- Release: 5%{?dist}
|
| |
+ Version: 3.0.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Forms validation and rendering library for python
|
| |
|
| |
License: BSD
|
| |
URL: https://wtforms.simplecodes.com/
|
| |
Source0: %{pypi_source}
|
| |
-
|
| |
BuildArch: noarch
|
| |
|
| |
- Requires: python%{python3_pkgversion}-email-validator
|
| |
+ BuildRequires: python3-devel
|
| |
|
| |
- BuildRequires: python%{python3_pkgversion}-devel
|
| |
- BuildRequires: python%{python3_pkgversion}-setuptools
|
| |
|
| |
- %global _description\
|
| |
- With wtforms, your form field HTML can be generated for you.\
|
| |
- This allows you to maintain separation of code and presentation,\
|
| |
+ %description
|
| |
+ With wtforms, your form field HTML can be generated for you.
|
| |
+ This allows you to maintain separation of code and presentation,
|
| |
and keep those messy parameters out of your python code.
|
| |
|
| |
- %description %_description
|
| |
|
| |
- %package -n python%{python3_pkgversion}-wtforms
|
| |
+ %package -n python3-wtforms
|
| |
Summary: Forms validation and rendering library for python
|
| |
- %{?python_provide:%python_provide python3-wtforms}
|
| |
|
| |
- %description -n python%{python3_pkgversion}-wtforms
|
| |
+ %description -n python3-wtforms
|
| |
With wtforms, your form field HTML can be generated for you.
|
| |
This allows you to maintain separation of code and presentation,
|
| |
and keep those messy parameters out of your python code.
|
| |
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires -r
|
| |
+
|
| |
+
|
| |
%prep
|
| |
- %setup -q -n %{srcname}-%{version}
|
| |
- sed -i "s|\r||g" docs/Makefile
|
| |
- sed -i "s|\r||g" CHANGES.rst
|
| |
- rm wtforms/locale/README.md
|
| |
+ %autosetup -p1 -n %{srcname}-%{version}
|
| |
+
|
| |
|
| |
%build
|
| |
- %py3_build
|
| |
+ %pyproject_wheel
|
| |
+
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
- # rm -rf %%{buildroot}/%{python3_sitelib}/wtforms/locale
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files wtforms
|
| |
+
|
| |
|
| |
- #% find_lang wtforms
|
| |
+ %check
|
| |
+ %py3_check_import wtforms
|
| |
|
| |
- # add the check section after the upgrade to the python-wtforms 3.x
|
| |
- # tests in 2.3.3 are a mess...
|
| |
|
| |
- %files -n python%{python3_pkgversion}-wtforms
|
| |
- # -f wtforms.lang
|
| |
+ %files -n python3-wtforms -f %{pyproject_files}
|
| |
%doc docs/ README.rst CHANGES.rst
|
| |
%license LICENSE.rst
|
| |
- %{python3_sitelib}/WTForms-%{version}-py*.egg-info
|
| |
- %{python3_sitelib}/wtforms/
|
| |
+
|
| |
|
| |
%changelog
|
| |
+ * Thu Dec 09 2021 Sandro Mani <manisandro@gmail.com> - 3.0.0-1
|
| |
+ - Update to 3.0.0
|
| |
+
|
| |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-5
|
| |
- Second attempt - Rebuilt for
|
| |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=79756974