forked from pool/python-email-validator
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
bbb0eee201 | |||
1b6ec08e25 |
@@ -1,18 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 14 13:04:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 13:11:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 23 01:30:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 29 16:02:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-email-validator
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,11 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-email-validator
|
||||
Version: 2.2.0
|
||||
@@ -35,24 +30,18 @@ Patch0: ignore-urllib3-pyopenssl-warning.patch
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module dnspython >= 1.15.0}
|
||||
BuildRequires: %{python_module idna >= 2.0.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 5.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-dnspython >= 1.15.0
|
||||
Requires: python-idna >= 2.0.0
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: python-email_validator = %{version}-%{release}
|
||||
Obsoletes: python-email_validator < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -74,10 +63,10 @@ Key features:
|
||||
%autosetup -p1 -n python-email-validator-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/email_validator
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -88,9 +77,6 @@ export RESOLV_FILE=$PWD/resolv.conf
|
||||
donttest="test_caching_dns_resolver"
|
||||
%pytest tests -k "not ($donttest)"
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative email_validator
|
||||
|
||||
%post
|
||||
%python_install_alternative email_validator
|
||||
|
||||
@@ -102,6 +88,6 @@ donttest="test_caching_dns_resolver"
|
||||
%doc README.md
|
||||
%python_alternative %{_bindir}/email_validator
|
||||
%{python_sitelib}/email_validator
|
||||
%{python_sitelib}/email_validator-%{version}.dist-info
|
||||
%{python_sitelib}/email_validator-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user