File aws-nitro-enclaves-cli.spec of Package aws-nitro-enclaves-cli

#
# spec file for package aws-nitro-enclaves-cli
#
# Copyright (c) 2026 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:           aws-nitro-enclaves-cli
Version:        1.4.4
Release:        0
Summary:        AWS Nitro Enclaves CLI
License:        Apache-2.0
Group:          System/Management
URL:            https://github.com/aws/aws-nitro-enclaves-cli
Source0:        %{name}.tar.gz
Source1:        cargo_config
%if 0%{?fedora} || 0%{?suse_version}
BuildRequires:  cargo
BuildRequires:  openssl-devel
BuildRequires:  rust
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A collection of tools and commands used for managing the
lifecycle of enclaves. The Nitro CLI needs to be installed on the
parent instance, and it can be used to start, manage, and terminate enclaves.

%prep
%setup -q -n aws-nitro-enclaves-cli

%build
mkdir -p .cargo
cp %{SOURCE1} .cargo/config.toml
make build

%install
make DESTDIR=%{buildroot}/ install

%files
%defattr(-,root,root)
%dir %{_bindir}
%dir %_sysconfdir/nitro_enclaves
%{_bindir}/nitro-enclaves-allocator
%{_bindir}/nitro-cli-config
%{_bindir}/nitro-cli
%{_bindir}/vsock-proxy
%{_bindir}/enclave_build
%{_unitdir}/nitro-enclaves-allocator.service
%config %_sysconfdir/nitro_enclaves/allocator.yaml

%changelog
openSUSE Build Service is sponsored by