diff --git a/2.0.0.tar.gz b/2.0.0.tar.gz deleted file mode 100644 index 439c709..0000000 Binary files a/2.0.0.tar.gz and /dev/null differ diff --git a/FormEncode-2.0.1.tar.gz b/FormEncode-2.0.1.tar.gz new file mode 100644 index 0000000..62e4cd7 Binary files /dev/null and b/FormEncode-2.0.1.tar.gz differ diff --git a/python-formencode.spec b/python-formencode.spec index 456e777..2c2288b 100644 --- a/python-formencode.spec +++ b/python-formencode.spec @@ -1,13 +1,13 @@ %global srcname FormEncode Name: python-%{srcname} -Version: 2.0.0 +Version: 2.0.1 Release: 1 Summary: HTML form validation, generation, and convertion package License: MIT and Python 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 -BuildRequires: python3-pip +BuildRequires: python3-pip %description FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes @@ -16,6 +16,7 @@ for filling and generating forms. %package -n python3-formencode Summary: HTML form validation, generation, and convertion package BuildRequires: python3-devel python3-setuptools python3-docutils +BuildRequires: python3-setuptools_scm Requires: python3-setuptools python-formencode-langpacks %{?python_provide:%python_provide python3-formencode} %description -n python3-formencode @@ -32,10 +33,10 @@ contains the locale files for localizing the message strings in code within the library. %prep -%setup -q -n formencode-%{version} -sed -i 's/use_scm_version=True,/use_scm_version=False,/g' setup.py +%autosetup -n %{srcname}-%{version} -p1 %build +sed -i "s|'setuptools_scm_git_archive',||" setup.py %py3_build %install @@ -54,7 +55,6 @@ for file in $RPM_BUILD_ROOT%{python3_sitelib}/formencode/i18n/* ; do fi done 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 %find_lang %{srcname} @@ -66,5 +66,8 @@ rm -rf $RPM_BUILD_ROOT/usr/LICENSE.txt %files -n python-formencode-langpacks -f %{srcname}.lang %changelog +* Mon Aug 8 2022 caodongxia - 2.0.1-1 +- Update to 2.0.1 + * Wed May 26 2021 Ge Wang - 2.0.0-1 - Package init