Init package with version 2.1.1
(cherry picked from commit b46059368641b70c78e71c64ed944b1325435ac1)
This commit is contained in:
parent
5e544c7acb
commit
d2e1f0ceb0
BIN
email_validator-2.1.1.tar.gz
Normal file
BIN
email_validator-2.1.1.tar.gz
Normal file
Binary file not shown.
72
python-email-validator.spec
Executable file
72
python-email-validator.spec
Executable file
@ -0,0 +1,72 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-email-validator
|
||||
Version: 2.1.1
|
||||
Release: 1
|
||||
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
|
||||
%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}
|
||||
|
||||
%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
|
||||
%dir %{python3_sitearch}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 23 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2.1.1-1
|
||||
- Init package
|
||||
Loading…
x
Reference in New Issue
Block a user