public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-flufl-bounce] epel10: Initial import (#1375999).
@ 2026-11-03 18:29
0 siblings, 0 replies; only message in thread
From: @ 2026-11-03 18:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-flufl-bounce
Branch : epel10
Commit : 79f7b416256349ae748422dedc26dd3226cf6577
Author : Aurélien Bompard <aurelien@bompard.org>
Date : 2016-10-13T16:30:17+02:00
Stats : +136/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-flufl-bounce/c/79f7b416256349ae748422dedc26dd3226cf6577?branch=epel10
Log:
Initial import (#1375999).
---
diff --git a/.gitignore b/.gitignore
index e69de29..d211b09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/flufl.bounce-2.3.tar.gz
diff --git a/python-flufl-bounce.spec b/python-flufl-bounce.spec
new file mode 100644
index 0000000..1658d08
--- /dev/null
+++ b/python-flufl-bounce.spec
@@ -0,0 +1,134 @@
+%global srcname flufl.bounce
+%global pkgname flufl-bounce
+%global summary Email bounce detectors
+%global _description \
+The flufl.bounce library provides a set of heuristics and an API for \
+detecting the original bouncing email addresses from a bounce message. Many \
+formats found in the wild are supported, as are VERP and RFC 3464 (DSN).
+
+# EPEL7 support: default Python is Python 2, and Python2 packages prefix
+# is unversioned.
+%if 0%{?rhel} && 0%{?rhel} <= 7
+%global py2_namespace python
+%else
+%global py2_namespace python2
+%endif
+
+Name: python-%{pkgname}
+Version: 2.3
+Release: 1%{?dist}
+Summary: %{summary}
+
+License: LGPLv3+
+URL: https://gitlab.com/warsaw/flufl.bounce
+Source0: https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: %{py2_namespace}-devel
+BuildRequires: %{py2_namespace}-setuptools
+BuildRequires: %{py2_namespace}-zope-interface
+BuildRequires: python-enum34
+# Python3
+BuildRequires: python3-pkgversion-macros
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+BuildRequires: python%{python3_pkgversion}-zope-interface
+%if 0%{?with_python3_other}
+BuildRequires: python%{python3_other_pkgversion}-devel
+BuildRequires: python%{python3_other_pkgversion}-setuptools
+BuildRequires: python%{python3_other_pkgversion}-zope-interface
+%endif
+
+%description %{_description}
+
+
+%if %{py2_namespace} != python
+%package -n %{py2_namespace}-%{pkgname}
+Summary: %{summary}
+%{?python_provide:%python_provide %{py2_namespace}-%{pkgname}}
+Requires: %{py2_namespace}-setuptools
+Requires: %{py2_namespace}-zope-interface
+Requires: python-enum34
+
+%description -n %{py2_namespace}-%{pkgname} %{_description}
+%endif
+
+
+%package -n python%{python3_pkgversion}-%{pkgname}
+Summary: %{summary}
+%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
+Requires: python%{python3_pkgversion}-setuptools
+Requires: python%{python3_pkgversion}-zope-interface
+
+%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
+
+
+%if 0%{?with_python3_other}
+%package -n python%{python3_other_pkgversion}-%{pkgname}
+Summary: %{summary}
+%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}}
+Requires: python%{python3_other_pkgversion}-setuptools
+Requires: python%{python3_other_pkgversion}-zope-interface
+
+%description -n python%{python3_other_pkgversion}-%{pkgname} %{_description}
+%endif
+
+
+%prep
+%autosetup -n %{srcname}-%{version}
+
+
+%build
+%py2_build
+%py3_build
+%if 0%{?with_python3_other}
+%py3_other_build
+%endif
+
+
+%install
+%py2_install
+%py3_install
+%if 0%{?with_python3_other}
+%py3_other_install
+%endif
+
+# This will go in %%doc
+rm -rf %{buildroot}%{_prefix}/lib/python*/site-packages/flufl/bounce/{*.rst,docs,conf.py}
+
+
+%check
+%{__python2} setup.py test
+%{__python3} setup.py test
+%if 0%{?with_python3_other}
+%{__python3_other} setup.py test
+%endif
+
+
+%files -n %{py2_namespace}-%{pkgname}
+%license COPYING.LESSER
+%doc flufl/bounce/README.rst flufl/bounce/NEWS.rst flufl/bounce/docs/using.rst
+%{python2_sitelib}/flufl/
+%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}.egg-info/
+%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}-nspkg.pth
+
+%files -n python%{python3_pkgversion}-%{pkgname}
+%license COPYING.LESSER
+%doc flufl/bounce/README.rst flufl/bounce/NEWS.rst flufl/bounce/docs/using.rst
+%{python3_sitelib}/flufl/
+%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
+%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth
+
+%if 0%{?with_python3_other}
+%files -n python%{python3_other_pkgversion}-%{pkgname}
+%license COPYING.LESSER
+%doc flufl/bounce/README.rst flufl/bounce/NEWS.rst flufl/bounce/docs/using.rst
+%{python3_other_sitelib}/flufl/
+%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
+%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth
+%endif
+
+
+%changelog
+* Wed Sep 14 2016 Aurelien Bompard <abompard@fedoraproject.org> - 2.3-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..1fc93ab 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6a782aa7a508e8126105411935249139 flufl.bounce-2.3.tar.gz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 18:29 [rpms/python-flufl-bounce] epel10: Initial import (#1375999)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox