forked from pool/python-dkimpy
Accepting request 752883 from devel:languages:python:mailman
SLE-7686 OBS-URL: https://build.opensuse.org/request/show/752883 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dkimpy?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
19
LICENSE
Normal file
19
LICENSE
Normal file
@@ -0,0 +1,19 @@
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the author be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
Copyright (c) 2008 Greg Hewgill http://hewgill.com
|
||||
See individual files for information about modification to these files and
|
||||
additional copyright information.
|
||||
3
dkimpy-0.9.3.tar.gz
Normal file
3
dkimpy-0.9.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6d7f335e1e901695aba1a2659102147775502ed7d0664f00319357ba4457d6e6
|
||||
size 83607
|
||||
26
no-optional.patch
Normal file
26
no-optional.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: dkimpy-0.9.3/dkim/__init__.py
|
||||
===================================================================
|
||||
--- dkimpy-0.9.3.orig/dkim/__init__.py
|
||||
+++ dkimpy-0.9.3/dkim/__init__.py
|
||||
@@ -38,18 +38,9 @@ import logging
|
||||
import re
|
||||
import time
|
||||
|
||||
-# only needed for arc
|
||||
-try:
|
||||
- from authres import AuthenticationResultsHeader
|
||||
-except ImportError:
|
||||
- pass
|
||||
-
|
||||
-# only needed for ed25519 signing/verification
|
||||
-try:
|
||||
- import nacl.signing
|
||||
- import nacl.encoding
|
||||
-except ImportError:
|
||||
- pass
|
||||
+from authres import AuthenticationResultsHeader
|
||||
+import nacl.signing
|
||||
+import nacl.encoding
|
||||
|
||||
from dkim.canonicalization import (
|
||||
CanonicalizationPolicy,
|
||||
23
python-dkimpy.changes
Normal file
23
python-dkimpy.changes
Normal file
@@ -0,0 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 2 10:47:11 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- call spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 14:24:39 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Drop the pynacl workaround as fix was submitted to the TW
|
||||
integration
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 11:55:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch to not optionaly import stuff, as it hides import
|
||||
errors and we want those to be hard enabled anyway:
|
||||
* no-optional.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 09:07:37 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- initial version 0.9.3, required by pyton-authheaders [SLE-7686]
|
||||
|
||||
77
python-dkimpy.spec
Normal file
77
python-dkimpy.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package python-dkimpy
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 skip_python2 1
|
||||
Name: python-dkimpy
|
||||
Version: 0.9.3
|
||||
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
|
||||
Source99: https://git.launchpad.net/dkimpy/plain/LICENSE
|
||||
Patch0: no-optional.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyNaCl
|
||||
Requires: python-authres
|
||||
Requires: python-dnspython
|
||||
Requires: python-setuptools
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyNaCl}
|
||||
BuildRequires: %{python_module authres}
|
||||
BuildRequires: %{python_module dnspython}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
DKIM (DomainKeys Identified Mail)
|
||||
|
||||
%prep
|
||||
%setup -q -n dkimpy-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
cp %{SOURCE99} .
|
||||
|
||||
%build
|
||||
cp %{SOURCE99} .
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc ChangeLog README
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/arcsign
|
||||
%python3_only %{_bindir}/arcverify
|
||||
%python3_only %{_bindir}/dkimsign
|
||||
%python3_only %{_bindir}/dkimverify
|
||||
%python3_only %{_bindir}/dknewkey
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_mandir}/man1/*.1*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user