forked from pool/python-FormEncode
Accepting request 1099155 from devel:languages:python
- Clean up Python 2 leftovers. - Switch to pyproject macros. - Drop BuildRequires on setuptools_scm_git_archive OBS-URL: https://build.opensuse.org/request/show/1099155 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-FormEncode?expand=0&rev=18
This commit is contained in:
commit
95abac05e2
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 18 02:48:07 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Clean up Python 2 leftovers.
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Drop BuildRequires on setuptools_scm_git_archive
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 21 12:20:37 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 21 12:20:37 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define oldpython python
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%bcond_without python2
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-FormEncode
|
Name: python-FormEncode
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
@ -29,20 +26,17 @@ Group: Development/Languages/Python
|
|||||||
URL: http://formencode.org
|
URL: http://formencode.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module dnspython}
|
BuildRequires: %{python_module dnspython}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pycountry}
|
BuildRequires: %{python_module pycountry}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm_git_archive}
|
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
|
||||||
Provides: %{oldpython}-formencode = %{version}
|
|
||||||
Obsoletes: %{oldpython}-formencode < %{version}
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -54,10 +48,10 @@ for filling and generating forms.
|
|||||||
%setup -q -n FormEncode-%{version}
|
%setup -q -n FormEncode-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
rm %{buildroot}%{_prefix}/LICENSE.txt
|
rm %{buildroot}%{_prefix}/LICENSE.txt
|
||||||
# trick find-lang.sh into finding the translation files
|
# trick find-lang.sh into finding the translation files
|
||||||
%python_expand mv %{buildroot}%{$python_sitelib}/formencode/{i18n,locale}
|
%python_expand mv %{buildroot}%{$python_sitelib}/formencode/{i18n,locale}
|
||||||
|
Loading…
Reference in New Issue
Block a user