|
 |
79f7b41 |
%global srcname flufl.bounce
|
|
 |
79f7b41 |
%global pkgname flufl-bounce
|
|
 |
79f7b41 |
%global summary Email bounce detectors
|
|
 |
79f7b41 |
%global _description \
|
|
 |
79f7b41 |
The flufl.bounce library provides a set of heuristics and an API for \
|
|
 |
79f7b41 |
detecting the original bouncing email addresses from a bounce message. Many \
|
|
 |
79f7b41 |
formats found in the wild are supported, as are VERP and RFC 3464 (DSN).
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
# EPEL7 support: default Python is Python 2, and Python2 packages prefix
|
|
 |
79f7b41 |
# is unversioned.
|
|
 |
79f7b41 |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
 |
79f7b41 |
%global py2_namespace python
|
|
 |
79f7b41 |
%else
|
|
 |
79f7b41 |
%global py2_namespace python2
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
Name: python-%{pkgname}
|
|
 |
79f7b41 |
Version: 2.3
|
|
 |
0ff9320 |
Release: 3%{?dist}
|
|
 |
79f7b41 |
Summary: %{summary}
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
License: LGPLv3+
|
|
 |
79f7b41 |
URL: https://gitlab.com/warsaw/flufl.bounce
|
|
 |
79f7b41 |
Source0: https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
 |
79f7b41 |
BuildArch: noarch
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
BuildRequires: %{py2_namespace}-devel
|
|
 |
79f7b41 |
BuildRequires: %{py2_namespace}-setuptools
|
|
 |
79f7b41 |
BuildRequires: %{py2_namespace}-zope-interface
|
|
 |
79f7b41 |
BuildRequires: python-enum34
|
|
 |
79f7b41 |
# Python3
|
|
 |
79f7b41 |
BuildRequires: python3-pkgversion-macros
|
|
 |
79f7b41 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
 |
79f7b41 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
 |
79f7b41 |
BuildRequires: python%{python3_pkgversion}-zope-interface
|
|
 |
79f7b41 |
%if 0%{?with_python3_other}
|
|
 |
79f7b41 |
BuildRequires: python%{python3_other_pkgversion}-devel
|
|
 |
79f7b41 |
BuildRequires: python%{python3_other_pkgversion}-setuptools
|
|
 |
79f7b41 |
BuildRequires: python%{python3_other_pkgversion}-zope-interface
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%description %{_description}
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%if %{py2_namespace} != python
|
|
 |
79f7b41 |
%package -n %{py2_namespace}-%{pkgname}
|
|
 |
79f7b41 |
Summary: %{summary}
|
|
 |
79f7b41 |
%{?python_provide:%python_provide %{py2_namespace}-%{pkgname}}
|
|
 |
79f7b41 |
Requires: %{py2_namespace}-setuptools
|
|
 |
79f7b41 |
Requires: %{py2_namespace}-zope-interface
|
|
 |
79f7b41 |
Requires: python-enum34
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%description -n %{py2_namespace}-%{pkgname} %{_description}
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%package -n python%{python3_pkgversion}-%{pkgname}
|
|
 |
79f7b41 |
Summary: %{summary}
|
|
 |
79f7b41 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
|
 |
79f7b41 |
Requires: python%{python3_pkgversion}-setuptools
|
|
 |
79f7b41 |
Requires: python%{python3_pkgversion}-zope-interface
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%if 0%{?with_python3_other}
|
|
 |
79f7b41 |
%package -n python%{python3_other_pkgversion}-%{pkgname}
|
|
 |
79f7b41 |
Summary: %{summary}
|
|
 |
79f7b41 |
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}}
|
|
 |
79f7b41 |
Requires: python%{python3_other_pkgversion}-setuptools
|
|
 |
79f7b41 |
Requires: python%{python3_other_pkgversion}-zope-interface
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%description -n python%{python3_other_pkgversion}-%{pkgname} %{_description}
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%prep
|
|
 |
79f7b41 |
%autosetup -n %{srcname}-%{version}
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%build
|
|
 |
79f7b41 |
%py2_build
|
|
 |
79f7b41 |
%py3_build
|
|
 |
79f7b41 |
%if 0%{?with_python3_other}
|
|
 |
79f7b41 |
%py3_other_build
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%install
|
|
 |
79f7b41 |
%py2_install
|
|
 |
79f7b41 |
%py3_install
|
|
 |
79f7b41 |
%if 0%{?with_python3_other}
|
|
 |
79f7b41 |
%py3_other_install
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
# This will go in %%doc
|
|
 |
79f7b41 |
rm -rf %{buildroot}%{_prefix}/lib/python*/site-packages/flufl/bounce/{*.rst,docs,conf.py}
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%check
|
|
 |
79f7b41 |
%{__python2} setup.py test
|
|
 |
79f7b41 |
%{__python3} setup.py test
|
|
 |
79f7b41 |
%if 0%{?with_python3_other}
|
|
 |
79f7b41 |
%{__python3_other} setup.py test
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%files -n %{py2_namespace}-%{pkgname}
|
|
 |
79f7b41 |
%license COPYING.LESSER
|
|
 |
79f7b41 |
%doc flufl/bounce/README.rst flufl/bounce/NEWS.rst flufl/bounce/docs/using.rst
|
|
 |
79f7b41 |
%{python2_sitelib}/flufl/
|
|
 |
79f7b41 |
%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}.egg-info/
|
|
 |
79f7b41 |
%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}-nspkg.pth
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%files -n python%{python3_pkgversion}-%{pkgname}
|
|
 |
79f7b41 |
%license COPYING.LESSER
|
|
 |
79f7b41 |
%doc flufl/bounce/README.rst flufl/bounce/NEWS.rst flufl/bounce/docs/using.rst
|
|
 |
79f7b41 |
%{python3_sitelib}/flufl/
|
|
 |
79f7b41 |
%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
|
|
 |
79f7b41 |
%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%if 0%{?with_python3_other}
|
|
 |
79f7b41 |
%files -n python%{python3_other_pkgversion}-%{pkgname}
|
|
 |
79f7b41 |
%license COPYING.LESSER
|
|
 |
79f7b41 |
%doc flufl/bounce/README.rst flufl/bounce/NEWS.rst flufl/bounce/docs/using.rst
|
|
 |
79f7b41 |
%{python3_other_sitelib}/flufl/
|
|
 |
e130ae7 |
%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/
|
|
 |
79f7b41 |
%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth
|
|
 |
79f7b41 |
%endif
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
|
|
 |
79f7b41 |
%changelog
|
|
 |
0ff9320 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
|
|
 |
0ff9320 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
0ff9320 |
|
|
 |
6db825a |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 2.3-2
|
|
 |
6db825a |
- Rebuild for Python 3.6
|
|
 |
6db825a |
|
|
 |
79f7b41 |
* Wed Sep 14 2016 Aurelien Bompard <abompard@fedoraproject.org> - 2.3-1
|
|
 |
79f7b41 |
- Initial package.
|