Blame SPECS/python-email-validator.spec

5747d8
%global pypi_name email-validator
5747d8
5747d8
Name:           python-%{pypi_name}
5747d8
Version:        1.1.1
5747d8
Release:        3%{?dist}
5747d8
Summary:        A robust email syntax and deliverability validation library
5747d8
5747d8
License:        CC0
5747d8
URL:            https://github.com/JoshData/python-email-validator
5747d8
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
5747d8
BuildArch:      noarch
5747d8
5747d8
%description
5747d8
This library validates that address are of the form x@y.com. This is the sort
5747d8
of validation you would want for a login form on a website.
5747d8
5747d8
Key features:
5747d8
5747d8
- Good for validating email addresses used for logins/identity.
5747d8
- Friendly error messages when validation fails (appropriate to show to end
5747d8
  users).
5747d8
- (optionally) Checks deliverability: Does the domain name resolve?
5747d8
- Supports internationalized domain names and (optionally) internationalized
5747d8
  local parts.
5747d8
- Normalizes email addresses (important for internationalized addresses!).
5747d8
5747d8
%package -n     python3-%{pypi_name}
5747d8
Summary:        %{summary}
5747d8
5747d8
BuildRequires:  python3-devel
5747d8
BuildRequires:  python3-setuptools
5747d8
BuildRequires:  python3-dns
5747d8
BuildRequires:  python3-idna
5747d8
BuildRequires:  python3-coverage
5747d8
BuildRequires:  python3-pytest
5747d8
BuildRequires:  python3-pytest-cov
5747d8
%{?python_provide:%python_provide python3-%{pypi_name}}
5747d8
5747d8
%description -n python3-%{pypi_name}
5747d8
This library validates that address are of the form x@y.com. This is the sort
5747d8
of validation you would want for a login form on a website.
5747d8
5747d8
Key features:
5747d8
5747d8
- Good for validating email addresses used for logins/identity.
5747d8
- Friendly error messages when validation fails (appropriate to show to end
5747d8
  users).
5747d8
- (optionally) Checks deliverability: Does the domain name resolve?
5747d8
- Supports internationalized domain names and (optionally) internationalized
5747d8
  local parts.
5747d8
- Normalizes email addresses (important for internationalized addresses!).
5747d8
5747d8
%prep
5747d8
%autosetup -n python-%{pypi_name}-%{version}
5747d8
rm -rf %{pypi_name}.egg-info
5747d8
5747d8
%build
5747d8
%py3_build
5747d8
5747d8
%install
5747d8
%py3_install
5747d8
5747d8
%check
5747d8
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
5747d8
  -k "not test_deliverability"
5747d8
5747d8
%files -n python3-%{pypi_name}
5747d8
%license LICENSE
5747d8
%doc CONTRIBUTING.md README.md
5747d8
%{_bindir}/email_validator
5747d8
%{python3_sitelib}/email_validator/
5747d8
%{python3_sitelib}/email_validator-%{version}-py*.egg-info
5747d8
5747d8
%changelog
5747d8
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
5747d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5747d8
5747d8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
5747d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5747d8
5747d8
* Wed Jun 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.1-1
5747d8
- Enable tests
5747d8
- Update to new upstream release 1.1.1
5747d8
5747d8
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.0.5-4
5747d8
- Rebuilt for Python 3.9
5747d8
5747d8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
5747d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5747d8
5747d8
* Tue Jan 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.0.5-2
5747d8
- Implement changes from rhbz#1787419 to match rhbz#1733683
5747d8
5747d8
* Mon Jan 06 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.0.5-1
5747d8
- Update to 1.0.5.
5747d8
- Review fixes.
5747d8
5747d8
* Sat Jul 27 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.0.4-1
5747d8
- Initial package.