-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add secvarctl.spec in order to build RPMs.
Signed-off-by: George Wilson <[email protected]>
- Loading branch information
George Wilson
committed
Aug 28, 2023
1 parent
e6a3583
commit ce90216
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (C) 2023 IBM Corp. | ||
|
||
Name: secvarctl | ||
Version: 1.0 | ||
Release: 1%{?dist} | ||
Summary: PowerPC secure variable control | ||
BuildArch: ppc64le ppcl64 x86_64 | ||
|
||
Group: None | ||
License: Apache 2.0 | ||
URL: https://github.com/open-power/secvarctl | ||
Source0: https://github.com/open-power/secvarctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz | ||
|
||
BuildRequires: cmake openssl-devel | ||
Requires: openssl | ||
|
||
%description | ||
%{name} facilitates manipulation of PowerPC authenticated variables from | ||
userspace via sysfs. The primary use case is management of secure boot | ||
variables. | ||
|
||
%global debug_package %{nil} | ||
|
||
%prep | ||
%setup -q | ||
cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" | ||
|
||
%build | ||
%cmake_build . | ||
|
||
%install | ||
%cmake_install . | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%license LICENSE | ||
%doc README.md | ||
%{_mandir}/man1/%{name}.1.gz | ||
%attr(0755,root,root) %{_bindir}/%{name} |