File sequoia-sq.spec of Package sequoia-sq

#
# spec file for package sequoia-sq
#
# 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/
#


Name:           sequoia-sq
Version:        0.27.0~git0.fd8912e4
Release:        0
Summary:        Command-line frontend for Sequoia
License:        GPL-2.0-or-later
URL:            https://sequoia-pgp.org/
Source0:        sequoia-%{version}.tar.xz
Source1:        vendor.tar.xz
Source2:        cargo_config
BuildRequires:  capnproto
BuildRequires:  cargo-packaging
BuildRequires:  clang-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(nettle)
BuildRequires:  pkgconfig(openssl)
ExclusiveArch:  %{rust_tier1_arches}

%description
Sequoia is a cool new OpenPGP implementation. Sequoia-sq is the frontend
for the sequoia library and it is also an example of how to use various
aspects of Sequoia.

%prep
%autosetup -a1 -n sequoia-%{version}
mkdir -p .cargo
cp %{SOURCE2} .cargo/config

%build
cd sq
%{cargo_build}

%install
cd sq
%{cargo_install}

%check
cd sq
%{cargo_test}

%files
%{_bindir}/sq

%changelog
openSUSE Build Service is sponsored by