secvarctl/secvarctl.spec
Packit 32ccac70d9 Update to 1.1.0 upstream release
- Resolves: rhbz#2317890

Upstream tag: v1.1.0
Upstream commit: c863fa41

Commit authored by Packit automation (https://packit.dev/)
2024-10-10 19:35:06 +00:00

48 lines
1.2 KiB
RPMSpec

Name: secvarctl
Version: 1.1.0
Release: %autorelease
Summary: Suite of tools to manipulate and generate Secure Boot variables on POWER
License: Apache-2.0
URL: https://github.com/open-power/secvarctl
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/ibm/libstb-secvar/archive/ce98be9d15ac2df062726b4451f0ec0c0b27fbf2.tar.gz
BuildRequires: gcc
BuildRequires: cmake
BuildRequires: openssl-devel
BuildRequires: libasan
Provides: bundled(libstb-secvar)
%description
Suite of tools to manipulate and generate Secure Boot variables on POWER.
The purpose of this tool is to simplify and automate the process of reading and
writing secure boot keys. secvarctl allows the user to communicate, via terminal
commands, with the keys efficiently. It is supporting automate process of the
both host and guest secure boot keys.
%prep
%autosetup -p1
tar xf %{SOURCE1} -C external/libstb-secvar --strip-components=1
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmake_install
%check
%ifarch ppc64le
make check
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
%autochangelog