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
79f7b41
Name:           python-%{pkgname}
89524e6
Version:        3.0
281682d
Release:        14%{?dist}
79f7b41
Summary:        %{summary}
79f7b41
89524e6
License:        ASL 2.0
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
de2ebed
BuildRequires:  python-srpm-macros
79f7b41
BuildRequires:  python%{python3_pkgversion}-devel
79f7b41
BuildRequires:  python%{python3_pkgversion}-setuptools
79f7b41
BuildRequires:  python%{python3_pkgversion}-zope-interface
89524e6
BuildRequires:  python%{python3_pkgversion}-atpublic
89524e6
BuildRequires:  python%{python3_pkgversion}-nose2
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
89524e6
BuildRequires:  python%{python3_other_pkgversion}-atpublic
89524e6
BuildRequires:  python%{python3_other_pkgversion}-nose2
79f7b41
%endif
79f7b41
79f7b41
%description %{_description}
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
89524e6
Requires:       python%{python3_pkgversion}-atpublic
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
89524e6
Requires:       python%{python3_other_pkgversion}-atpublic
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
%py3_build
79f7b41
%if 0%{?with_python3_other}
79f7b41
%py3_other_build
79f7b41
%endif
79f7b41
79f7b41
79f7b41
%install
79f7b41
%py3_install
79f7b41
%if 0%{?with_python3_other}
79f7b41
%py3_other_install
79f7b41
%endif
79f7b41
79f7b41
# This will go in %%doc
89524e6
rm -rf %{buildroot}%{_prefix}/lib*/python*/site-packages/flufl/bounce/{*.rst,docs,conf.py}
79f7b41
79f7b41
79f7b41
%check
79f7b41
%{__python3} setup.py test
79f7b41
%if 0%{?with_python3_other}
79f7b41
%{__python3_other} setup.py test
79f7b41
%endif
79f7b41
79f7b41
79f7b41
%files -n python%{python3_pkgversion}-%{pkgname}
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
%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
281682d
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-14
281682d
- Second attempt - Rebuilt for
281682d
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
281682d
c77df29
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0-13
c77df29
- Rebuilt for Python 3.10
c77df29
c79a3d3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-12
c79a3d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c79a3d3
32e7dd2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-11
32e7dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
32e7dd2
0778ba8
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0-10
0778ba8
- Rebuilt for Python 3.9
0778ba8
7ed888a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-9
7ed888a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7ed888a
3b5a1bd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0-8
3b5a1bd
- Rebuilt for Python 3.8.0rc1 (#1748018)
3b5a1bd
03a0ee8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0-7
03a0ee8
- Rebuilt for Python 3.8
03a0ee8
05a5c43
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-6
05a5c43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
05a5c43
8f58030
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-5
8f58030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8f58030
1c896f8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-4
1c896f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1c896f8
4e93742
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0-3
4e93742
- Rebuilt for Python 3.7
4e93742
4d39a4e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-2
4d39a4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4d39a4e
89524e6
* Thu Sep 28 2017 Aurelien Bompard <abompard@fedoraproject.org> - 3.0-1
89524e6
- version 3.0
89524e6
- removed the Python2 subpackage as it is not supported upstream anymore.
89524e6
de2ebed
* Wed Aug 02 2017 Aurelien Bompard <abompard@fedoraproject.org> - 2.3-5
de2ebed
- Fix BuildRequires name
de2ebed
c1f0c04
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4
c1f0c04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c1f0c04
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.