From cb9620e1e79577bd16a7cba417a6b2f4374102f1 Mon Sep 17 00:00:00 2001 From: Matthieu Saulnier Date: Apr 23 2021 12:12:39 +0000 Subject: Initial import (#1926523). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4fe6dc0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/v0.12.0-beta.tar.gz diff --git a/python-omemo.spec b/python-omemo.spec new file mode 100644 index 0000000..a42d58d --- /dev/null +++ b/python-omemo.spec @@ -0,0 +1,89 @@ +Name: python-omemo +Version: 0.12.0~beta +Release: 1%{?dist} +Summary: Python implementation of the OMEMO Encryption protocol + +License: MIT +URL: https://github.com/Syndace/%{name} +Source0: https://github.com/Syndace/%{name}/archive/v%{version_no_tilde}.tar.gz +# For files and directories +%global version_main %(c=%version; echo $c|cut -d~ -f1) + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-cryptography +BuildRequires: python3-x3dh +#BuildRequires: python3-pytest +# For tests +#BuildRequires: python3-pynacl + +%description +This python library offers an open implementation of the OMEMO +Multi-End Message and Object Encryption protocol. + +OMEMO is an extension of the XMPP protocol defined as XEP-0384. It +provides multi-end to multi-end encryption, allowing messages to be +synchronized securely across multiple clients, even if some of them +are offline. + + + +%package -n python3-omemo +Summary: Python implementation of the OMEMO Encryption protocol +Requires: python3-doubleratchet + +%description -n python3-omemo +This python library offers an open implementation of the OMEMO +Multi-End Message and Object Encryption protocol. + +OMEMO is an extension of the XMPP protocol defined as XEP-0384. It +provides multi-end to multi-end encryption, allowing messages to be +synchronized securely across multiple clients, even if some of them +are offline. + + + +%prep +%autosetup -n %{name}-%{version_no_tilde} + + +%build +%py3_build + + +%install +%py3_install + + +%check +# tests requires python-omemo-backend-signal, that introduce cyclic +# dependancy: Disabling. + + + +%files -n python3-omemo +%license LICENSE +%doc README.md +# For noarch packages: sitelib +%{python3_sitelib}/omemo/ +%{python3_sitelib}/OMEMO-%{version_main}-py%{python3_version}.egg-info/ + + + +%changelog +* Mon Mar 29 2021 Matthieu Saulnier - 0.12.0~beta-1 +- Package Review RHBZ#1926523: + - Update to 0.12.0 + - Shorten the Summary + - Disable tests with pytest to avoid cyclic dependancy + +* Sun Feb 14 2021 Matthieu Saulnier - 0.11.0~beta-3 +- Package Review RHBZ#1926523: + - Fix the Version tag to match upstream version + - Use %%{python3_version} in %%files section + +* Mon Feb 08 2021 Matthieu Saulnier - 0.11.0-2 +- Add requirement not added automaticaly in python3 subpackage + +* Mon Feb 08 2021 Matthieu Saulnier - 0.11.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..06219bb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v0.12.0-beta.tar.gz) = d90d0415e39468df9a9d617bf728ddcf8a06cfcc640ea798139d7242354197ed20fc834ee0ee6b1faa3f66b9012c26b20b38ac91104bbd565543379b58185ef3