Blame python-authheaders.spec

bf991c0
# Created by pyp2rpm-3.3.4
bf991c0
%global pypi_name authheaders
bf991c0
bf991c0
Name:           python-%{pypi_name}
bf991c0
Version:        0.13.0
d6482f0
Release:        4%{?dist}
bf991c0
Summary:        A library wrapping email authentication header verification and generation
bf991c0
bf991c0
# Licensing described in LICENSE file
bf991c0
License:        MIT and zlib and ZPLv2.1
bf991c0
URL:            https://github.com/ValiMail/authentication-headers
bf991c0
Source0:        %{pypi_source}
bf991c0
BuildArch:      noarch
bf991c0
bf991c0
BuildRequires:  python3-devel
bf991c0
BuildRequires:  python3dist(authres) >= 1.0.1
bf991c0
BuildRequires:  python3dist(dkimpy) >= 0.7.1
bf991c0
BuildRequires:  python3dist(dnspython)
bf991c0
BuildRequires:  python3dist(publicsuffix2)
bf991c0
BuildRequires:  python3dist(setuptools)
bf991c0
bf991c0
%description
bf991c0
%{summary}.
bf991c0
bf991c0
%package -n     python3-%{pypi_name}
bf991c0
Summary:        %{summary}
bf991c0
%{?python_provide:%python_provide python3-%{pypi_name}}
bf991c0
Requires:       publicsuffix-list
bf991c0
bf991c0
%description -n python3-%{pypi_name}
bf991c0
%{summary}.
bf991c0
bf991c0
bf991c0
%prep
bf991c0
%autosetup -n %{pypi_name}-%{version}
bf991c0
# Remove bundled egg-info
bf991c0
rm -rf %{pypi_name}.egg-info
bf991c0
# Remove bundled publicsuffix data
bf991c0
rm -f %{pypi_name}/public_suffix_list.txt
bf991c0
bf991c0
%build
bf991c0
%py3_build
bf991c0
bf991c0
%install
bf991c0
%py3_install
bf991c0
# Use public suffix data from installed RPM
bf991c0
ln -sr %{buildroot}%{_datadir}/publicsuffix/public_suffix_list.dat %{buildroot}%{python3_sitelib}/%{pypi_name}/public_suffix_list.txt
bf991c0
bf991c0
%files -n python3-%{pypi_name}
bf991c0
%doc README.md
bf991c0
%license COPYING
bf991c0
%{python3_sitelib}/%{pypi_name}/
bf991c0
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
bf991c0
bf991c0
%changelog
d6482f0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
d6482f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d6482f0
c0df444
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.13.0-3
c0df444
- Rebuilt for Python 3.10
c0df444
ab77655
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-2
ab77655
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ab77655
bf991c0
* Thu Oct 15 2020 Neal Gompa <ngompa13@gmail.com> - 0.13.0-1
bf991c0
- Initial package.