python-email-validator/python-email-validator.spec

82 lines
2.4 KiB
RPMSpec
Raw Normal View History

%global _empty_manifest_terminate_build 0
Name: python-email-validator
Version: 2.1.1
Release: 3
Summary: A robust email address syntax and deliverability validation library.
License: Unlicense
URL: https://github.com/JoshData/python-email-validator
Source0: https://files.pythonhosted.org/packages/63/82/2914bff80ebee8c027802a664ad4b4caad502cd594e358f76aff395b5e56/email_validator-2.1.1.tar.gz
Patch0: 0001-Add-a-deliverability-test-for-a-MX-fallback-A-record.patch
2024-04-27 20:34:09 +08:00
BuildArch: noarch
%description
A robust email address syntax and deliverability validation library.
%package -n python3-email-validator
Summary: Python Git Library
Provides: python-email-validator
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%description -n python3-email-validator
A robust email address syntax and deliverability validation library.
%package help
Summary: Development documents and examples for email-validator
Provides: python3-email-validator-doc
%description help
A robust email address syntax and deliverability validation library.
%prep
%autosetup -n email_validator-%{version} -p1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-email-validator -f filelist.lst
2024-04-27 20:34:09 +08:00
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu May 09 2024 wangxiaomeng <wangxiaomeng@kylinos.cn> - 2.1.1-3
- Backport one upstream patch:Add a deliverability test for a MX-fallback A record
2024-04-27 20:34:09 +08:00
* Tue May 07 2024 wangshuo <wangshuo@kylinos.cn> - 2.1.1-2
- fix build error
* Tue Apr 23 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2.1.1-1
- Init package