commit 0265a6bf9d2694d2a3615f83dde0ce99e46b7200b41d447dbbee9729f2760320 Author: Matej Cepl Date: Thu May 27 12:23:51 2021 +0000 Accepting request 895691 from home:jirislaby add python-patatt, required for b4 OBS-URL: https://build.opensuse.org/request/show/895691 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patatt?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/patatt-0.4.3.tar.asc b/patatt-0.4.3.tar.asc new file mode 100644 index 0000000..327be7b --- /dev/null +++ b/patatt-0.4.3.tar.asc @@ -0,0 +1,10 @@ +-----BEGIN PGP SIGNATURE----- +Comment: This signature is for the .tar version of the archive +Comment: git archive --format tar --prefix=patatt-0.4.3/ v0.4.3 +Comment: git version 2.31.1 + +iHUEABYIAB0WIQR2vl2yUnHhSB5njDW2xBzjVmSZbAUCYK5UCAAKCRC2xBzjVmSZ +bB3YAQCPwbFKKlwbPz7nV3rqpp8T/N2As33+Tfaq9bQ+rxpwVgEA/xsqyjZ+IvSM +5bgLMjIsn2AkmVHAz6AbAI3OFlHfHQU= +=qN25 +-----END PGP SIGNATURE----- diff --git a/patatt-0.4.3.tar.gz b/patatt-0.4.3.tar.gz new file mode 100644 index 0000000..75dce8e --- /dev/null +++ b/patatt-0.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96e2a077e833c478011339cd76fd4feec1ca65f99ef4c6662230e2017e6724df +size 41894 diff --git a/python-patatt.changes b/python-patatt.changes new file mode 100644 index 0000000..74a75ce --- /dev/null +++ b/python-patatt.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu May 27 08:39:32 UTC 2021 - Jiri Slaby + +- initial package diff --git a/python-patatt.spec b/python-patatt.spec new file mode 100644 index 0000000..90dfb9b --- /dev/null +++ b/python-patatt.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-patatt +# +# Copyright (c) 2021 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/ +# + + +%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-patatt +Version: 0.4.3 +Release: 0 +Summary: Cryptographic patch attestation for the masses +License: MIT-0 +URL: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/ +Source0: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/snapshot/patatt-%{version}.tar.gz +Source1: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/snapshot/patatt-%{version}.tar.asc +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module PyNaCl} +BuildRequires: git-core +# /SECTION +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +This utility allows an easy way to add end-to-end cryptographic attestation to +patches sent via mail. It does so by adapting the DKIM email signature standard +to include cryptographic signatures via the X-Developer-Signature email header. + +If your project workflow doesn't use patches sent via email, then you don't +need this and should simply start signing your tags and commits. + +%prep +%autosetup -n patatt-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/patatt +%python_clone -a %{buildroot}%{_mandir}/man5/patatt.5 + +%check +# try at least a simple runtime test +%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" %{buildroot}%{_bindir}/patatt-%{$python_bin_suffix} --version | grep -q %{version} + +%post +%{python_install_alternative patatt patatt.5} + +%postun +%python_uninstall_alternative patatt + +%files %{python_files} +%doc README.rst +%license COPYING +%python_alternative %{_bindir}/patatt +%python_alternative %{_mandir}/man5/patatt.5%{?ext_man} +%{python_sitelib}/* + +%changelog