[packages/python-validate_email] - new
qboosh
qboosh at pld-linux.org
Sat Dec 13 20:43:53 CET 2025
commit 473af7f8903313c8efc3660247dec1aa0522b747
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 13 20:44:05 2025 +0100
- new
python-validate_email.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 98 insertions(+)
---
diff --git a/python-validate_email.spec b/python-validate_email.spec
new file mode 100644
index 0000000..aaca37f
--- /dev/null
+++ b/python-validate_email.spec
@@ -0,0 +1,98 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Verify if an email address is valid and really exists
+Summary(pl.UTF-8): Sprawdzanie, czy adres e-mail jest poprawny i naprawdę istnieje
+Name: python-validate_email
+Version: 1.3
+Release: 1
+License: LGPL v3.0+
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/validate_email/
+Source0: https://files.pythonhosted.org/packages/source/v/validate-email/validate_email-%{version}.tar.gz
+# Source0-md5: 5a664f9c80af17a23cfce8c2553c23c2
+URL: https://pypi.org/project/validate_email/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.5
+Requires: python-pydns
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Validate_email is a package for Python that check if an email is
+valid, properly formatted and really exists.
+
+%description -l pl.UTF-8
+Validate_email to pakiet Pythona sprawdzający, czy dany adres e-mail
+jest poprawny, właściwie sformatowany i naprawdę istnieje.
+
+%package -n python3-validate_email
+Summary: Verify if an email address is valid and really exists
+Summary(pl.UTF-8): Sprawdzanie, czy adres e-mail jest poprawny i naprawdę istnieje
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+Requires: python3-py3dns
+
+%description -n python3-validate_email
+Validate_email is a package for Python that check if an email is
+valid, properly formatted and really exists.
+
+%description -n python3-validate_email -l pl.UTF-8
+Validate_email to pakiet Pythona sprawdzający, czy dany adres e-mail
+jest poprawny, właściwie sformatowany i naprawdę istnieje.
+
+%prep
+%setup -q -n validate_email-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS LICENSE README.rst
+%{py_sitescriptdir}/validate_email.py[co]
+%{py_sitescriptdir}/validate_email-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-validate_email
+%defattr(644,root,root,755)
+%doc AUTHORS LICENSE README.rst
+%{py3_sitescriptdir}/validate_email.py
+%{py3_sitescriptdir}/__pycache__/validate_email.cpython-*.py[co]
+%{py3_sitescriptdir}/validate_email-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-validate_email.git/commitdiff/473af7f8903313c8efc3660247dec1aa0522b747
More information about the pld-cvs-commit
mailing list