2024-04-23 17:57:53 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-email-validator
|
|
|
|
|
Version: 2.1.1
|
2024-04-27 20:34:09 +08:00
|
|
|
Release: 2
|
2024-04-23 17:57:53 +08:00
|
|
|
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
|
2024-04-27 20:34:09 +08:00
|
|
|
BuildArch: noarch
|
2024-04-23 17:57:53 +08:00
|
|
|
%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
|
2024-04-27 20:34:09 +08:00
|
|
|
%autosetup -n email_validator-%{version}
|
2024-04-23 17:57:53 +08:00
|
|
|
|
|
|
|
|
%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}/*
|
2024-04-23 17:57:53 +08:00
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-04-27 20:34:09 +08:00
|
|
|
* Tue May 07 2024 wangshuo <wangshuo@kylinos.cn> - 2.1.1-2
|
|
|
|
|
- fix build error
|
|
|
|
|
|
2024-04-23 17:57:53 +08:00
|
|
|
* Tue Apr 23 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2.1.1-1
|
|
|
|
|
- Init package
|