File deltachat-rpc-server.spec of Package deltachat-rpc-server
#
# spec file for package deltachat-message-parser
#
# Copyright (c) 2025 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/
#
Name: deltachat-rpc-server
Version: 1.159.5
Release: 0
Summary: DeltaChat JSON-RPC server
License: MPL-2.0
URL: https://github.com/chatmail/core/tree/main/deltachat-rpc-server
Source0: https://codeload.github.com/chatmail/core/tar.gz/refs/tags/v%{version}#/core-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: rust >= 1.74
BuildRequires: binutils
%description
A JSON-RPC 2.0 interface to DeltaChat over standard I/O.
%prep
%autosetup -a1 -n core-%{version}
%build
%{cargo_build} --package deltachat-rpc-server
%install
mkdir -p "%{buildroot}%{_bindir}"
install -D -m 0755 target/release/deltachat-rpc-server %{buildroot}%{_bindir}/deltachat-rpc-server
%files
%license LICENSE
%doc deltachat-rpc-server/README.md
%{_bindir}/%{name}
%changelog