14
0
forked from pool/python-dkimpy
Files
python-dkimpy/python-dkimpy.spec
Markéta Machová 345a931714 Accepting request 853706 from home:jirislaby:branches:devel:languages:python
- update to 1.0.5
    - Update dnsplug for DNS Python (dns) 2.0 compatibility (LP: #1888583)
    - Fix @param srv_id typos (LP: #1890532)
    - Correct dkim.verify processing to avoid errors when verifying messages
      with no DKIM signatures

OBS-URL: https://build.opensuse.org/request/show/853706
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dkimpy?expand=0&rev=7
2020-12-08 09:58:24 +00:00

95 lines
2.8 KiB
RPMSpec

#
# spec file for package python-dkimpy
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define commands arcsign arcverify dkimsign dkimverify dknewkey
%define skip_python2 1
Name: python-dkimpy
Version: 1.0.5
Release: 0
Summary: DKIM (DomainKeys Identified Mail)
License: BSD-2-Clause
URL: https://launchpad.net/dkimpy
Source: https://files.pythonhosted.org/packages/source/d/dkimpy/dkimpy-%{version}.tar.gz
Patch0: no-optional.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyNaCl
Requires: python-authres
Requires: python-dnspython >= 1.16
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyNaCl}
BuildRequires: %{python_module authres}
BuildRequires: %{python_module dnspython >= 1.16}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
DKIM (DomainKeys Identified Mail)
%prep
%setup -q -n dkimpy-%{version}
%patch0 -p1
%build
%python_build
%install
%python_install
for c in %{commands}; do
%python_clone -a %{buildroot}%{_mandir}/man1/$c.1
%python_clone -a %{buildroot}%{_bindir}/$c
done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
for c in %{commands}; do
%python_install_alternative $c $c.1
done
%postun
for c in %{commands}; do
%python_uninstall_alternative $c
done
%files %{python_files}
%doc ChangeLog README.md
%license LICENSE
%python_alternative %{_bindir}/arcsign
%python_alternative %{_bindir}/arcverify
%python_alternative %{_bindir}/dkimsign
%python_alternative %{_bindir}/dkimverify
%python_alternative %{_bindir}/dknewkey
%python_alternative %{_mandir}/man1/arcsign.1%{?ext_man}
%python_alternative %{_mandir}/man1/arcverify.1%{?ext_man}
%python_alternative %{_mandir}/man1/dkimsign.1%{?ext_man}
%python_alternative %{_mandir}/man1/dkimverify.1%{?ext_man}
%python_alternative %{_mandir}/man1/dknewkey.1%{?ext_man}
%{python_sitelib}/*
%changelog