update to 2.0.1

(cherry picked from commit a5b351095740fb82af3d01eb435d81ff4f9fe706)
This commit is contained in:
caodongxia 2022-08-08 19:48:32 +08:00 committed by openeuler-sync-bot
parent 00b32a3ae6
commit f850eea0ba
3 changed files with 9 additions and 6 deletions

Binary file not shown.

BIN
FormEncode-2.0.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,13 @@
%global srcname FormEncode %global srcname FormEncode
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.0.0 Version: 2.0.1
Release: 1 Release: 1
Summary: HTML form validation, generation, and convertion package Summary: HTML form validation, generation, and convertion package
License: MIT and Python License: MIT and Python
URL: http://formencode.org/ URL: http://formencode.org/
Source0: https://github.com/formencode/formencode/archive/refs/tags/2.0.0.tar.gz Source0: https://files.pythonhosted.org/packages/source/F/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-pip BuildRequires: python3-pip
%description %description
FormEncode validates and converts nested structures. It allows for a FormEncode validates and converts nested structures. It allows for a
declarative form of defining the validation, and decoupled processes declarative form of defining the validation, and decoupled processes
@ -16,6 +16,7 @@ for filling and generating forms.
%package -n python3-formencode %package -n python3-formencode
Summary: HTML form validation, generation, and convertion package Summary: HTML form validation, generation, and convertion package
BuildRequires: python3-devel python3-setuptools python3-docutils BuildRequires: python3-devel python3-setuptools python3-docutils
BuildRequires: python3-setuptools_scm
Requires: python3-setuptools python-formencode-langpacks Requires: python3-setuptools python-formencode-langpacks
%{?python_provide:%python_provide python3-formencode} %{?python_provide:%python_provide python3-formencode}
%description -n python3-formencode %description -n python3-formencode
@ -32,10 +33,10 @@ contains the locale files for localizing the message strings in code within the
library. library.
%prep %prep
%setup -q -n formencode-%{version} %autosetup -n %{srcname}-%{version} -p1
sed -i 's/use_scm_version=True,/use_scm_version=False,/g' setup.py
%build %build
sed -i "s|'setuptools_scm_git_archive',||" setup.py
%py3_build %py3_build
%install %install
@ -54,7 +55,6 @@ for file in $RPM_BUILD_ROOT%{python3_sitelib}/formencode/i18n/* ; do
fi fi
done done
rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/formencode/i18n rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/formencode/i18n
mv $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}-0.0.0-py%{python3_version}.egg-info $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
rm -rf $RPM_BUILD_ROOT/usr/LICENSE.txt rm -rf $RPM_BUILD_ROOT/usr/LICENSE.txt
%find_lang %{srcname} %find_lang %{srcname}
@ -66,5 +66,8 @@ rm -rf $RPM_BUILD_ROOT/usr/LICENSE.txt
%files -n python-formencode-langpacks -f %{srcname}.lang %files -n python-formencode-langpacks -f %{srcname}.lang
%changelog %changelog
* Mon Aug 8 2022 caodongxia <caodongxia@h-partners.com> - 2.0.1-1
- Update to 2.0.1
* Wed May 26 2021 Ge Wang <wangge20@huawei.com> - 2.0.0-1 * Wed May 26 2021 Ge Wang <wangge20@huawei.com> - 2.0.0-1
- Package init - Package init