* * Fix and modernize the Python packaging
* Fix building on various platforms when using CMake.
- This release fixes unicode issues in the Python bindings,
- Since this release does not have any changes that affect
- Add functions to support Short Authentication String key
- Add functions to perform public key signing. These are meant
for use with cross-signing. The new functions are
olm_clear_pk_signing, olm_pk_signing_key_from_seed,
olm_pk_signature_length, and olm_pk_sign.
Signatures generated by olm_pk_sign can be verified using
- Improved compatibility with newer versions of Emscripten,
- Add bindings for the public key encryption/decryption
- Support for building using cmake. Thanks to Konstantinos
- Add more functions for managing private keys in the public
server-side encrypted key backups. The new functions are
olm_pk_private_key_length, olm_pk_key_from_private, and
deprecated: to generate a random key, use
- BREAKING CHANGE: This release introduces a new API for the
be much easier to use for Python developers. However, this
- BREAKING CHANGE: Olm now uses WebAssembly which means it
needs to load the wasm file asynchronously, and therefore
needs to be started up asynchronously. The imported module
now has an init() method which returns a promise.
The library cannot be used until this promise resolves.
- Using olm/olm.js will use the WebAssembly version of the
- change spec and add devel pakage
OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/olm?expand=0&rev=33
137 lines
3.5 KiB
RPMSpec
137 lines
3.5 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# Copyright (c) 2023 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
|
|
%global origname olm
|
|
%global origlibname lib%{origname}
|
|
%global libname %{origlibname}3
|
|
%global descriptor An implementation of the Double Ratchet cryptographic ratchet \
|
|
in C and C++, including an implementation of the Megolm cryptographic ratchet
|
|
Name: %{origname}
|
|
Version: 3.2.16
|
|
Release: 0
|
|
Summary: Double Ratchet cryptographic library
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://gitlab.matrix.org/matrix-org/olm/
|
|
Source0: https://gitlab.matrix.org/matrix-org/olm/-/archive/%{version}/olm-%{version}.tar.bz2
|
|
# PATCH-FIX-UPSTREAM cmake-enable-testing-builddir.patch -- Enable testing inside the build directory
|
|
Patch0: cmake-enable-testing-builddir.patch
|
|
BuildRequires: %{python_module cffi >= 1.0.0}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
Requires: %{libname} = %{version}
|
|
Requires: python-cffi >= 1.0.0
|
|
%ifpython2
|
|
Requires: python-typing
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
%{descriptor} .
|
|
This package contains %{python_flavor} bindings for %{origname}.
|
|
|
|
%package -n %{origname}-doc
|
|
Summary: Documentation files for %{origname}
|
|
Group: Documentation/Other
|
|
Suggests: %{libname} = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{origname}-doc
|
|
%{descriptor}.
|
|
%{summary}
|
|
|
|
%package -n %{libname}
|
|
Summary: Double Ratchet cryptographic library as a C API
|
|
Group: System/Libraries
|
|
Recommends: %{origname}-doc = %{version}
|
|
|
|
%description -n %{libname}
|
|
%{descriptor}.
|
|
%{summary}
|
|
|
|
%package -n %{origname}-devel
|
|
Summary: Development files for %{origname}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libname} = %{version}
|
|
|
|
%description -n %{origname}-devel
|
|
%{descriptor}.
|
|
%{summary}
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{origname}-%{version}
|
|
|
|
%build
|
|
%cmake
|
|
%cmake_build
|
|
|
|
cd ../python
|
|
%python_build
|
|
|
|
%check
|
|
%if 0%{?suse_version} < 1550
|
|
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
|
|
%endif
|
|
%ctest
|
|
|
|
%install
|
|
%cmake_install
|
|
cd python
|
|
%python_install
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files -n %{origname}-doc
|
|
%defattr(0644, root, root, 0755)
|
|
%doc *.md *.rst docs/*.md docs/*.svg
|
|
|
|
%files -n %{libname}
|
|
%license LICENSE
|
|
%{_libdir}/%{origlibname}.so.*
|
|
|
|
%files -n %{origname}-devel
|
|
%defattr(0644, root, root, 0755)
|
|
%{_includedir}/%{origname}
|
|
%{_libdir}/%{origlibname}.so
|
|
%{_libdir}/cmake/Olm
|
|
%{_libdir}/pkgconfig/%{origname}.pc
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc python/README.md
|
|
%{python_sitearch}/%{origname}
|
|
%{python_sitearch}/python_%{origname}-*.egg-info
|
|
|
|
%ifpython2
|
|
%{python_sitearch}/_%{origlibname}.so
|
|
%else
|
|
%{python_sitearch}/_%{origlibname}.abi3.so
|
|
%endif
|
|
|
|
%changelog
|