summaryrefslogtreecommitdiffstats
path: root/python/python-patatt.spec
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-13 14:47:19 -0800
committerMichel Alexandre Salim <salimma@fedoraproject.org>2021-12-13 14:47:19 -0800
commit9189ecd1dcf5153cbd27b2ccfd56c2b447b4b8d9 (patch)
tree24d396487d671d8f09f2ff1fa9b85d239152bc07 /python/python-patatt.spec
parentd49916335341d8595c2c6d4e4628d1ed5969fc39 (diff)
downloadspecs-9189ecd1dcf5153cbd27b2ccfd56c2b447b4b8d9.tar.gz
specs-9189ecd1dcf5153cbd27b2ccfd56c2b447b4b8d9.tar.xz
specs-9189ecd1dcf5153cbd27b2ccfd56c2b447b4b8d9.zip
+ patatt
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python/python-patatt.spec')
-rw-r--r--python/python-patatt.spec61
1 files changed, 61 insertions, 0 deletions
diff --git a/python/python-patatt.spec b/python/python-patatt.spec
new file mode 100644
index 0000000..039e99c
--- /dev/null
+++ b/python/python-patatt.spec
@@ -0,0 +1,61 @@
+%global srcname patatt
+
+Name: python-%{srcname}
+Version: 0.4.9
+Release: %autorelease
+Summary: Add cryptographic attestation to patches sent via email
+License: MIT
+URL: https://git.kernel.org/pub/scm/utils/%{srcname}/%{srcname}.git
+Source0: https://mirrors.edge.kernel.org/pub/software/devel/%{srcname}/%{srcname}-%{version}.tar.xz
+
+BuildArch: noarch
+
+BuildRequires: python%{python3_pkgversion}-devel
+
+%global _description %{expand:
+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.}
+
+%description %{_description}
+
+
+%package -n python%{python3_pkgversion}-%{srcname}
+Summary: %{summary}
+
+%description -n python%{python3_pkgversion}-%{srcname} %{_description}
+
+
+%prep
+%autosetup -p1 -n %{srcname}-%{version}
+
+
+%generate_buildrequires
+%pyproject_buildrequires -r requirements.txt
+
+
+%build
+%pyproject_wheel
+
+
+%install
+%pyproject_install
+%pyproject_save_files %{srcname}
+
+mkdir -p %{buildroot}%{_mandir}/man5
+install -pm 0644 man/*.5 %{buildroot}%{_mandir}/man5/
+
+
+%check
+%pyproject_check_import
+
+
+%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
+%license COPYING
+%doc DCO README.rst samples
+%{_bindir}/%{srcname}
+%{_mandir}/man5/%{srcname}.5.*
+
+
+%changelog
+%autochangelog