summaryrefslogtreecommitdiff
path: root/util/coreboot-configurator/contrib/rpm/nvramtool.spec
blob: e219b1c0205c4e1c96800166e9b6231d5037c529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Summary: coreboot nvramtool
Name: nvramtool
Version: 4.16
Release: 1%{?dist}
License: GPLv2
URL: https://review.coreboot.org/coreboot
Source: https://coreboot.org/releases/coreboot-%{version}.tar.xz

BuildRequires: make
BuildRequires: gcc

%description
nvramtool manipulates nvram from userspace.

%prep
tar -C %{_builddir} -xf %{_sourcedir}/coreboot-%{version}.tar.xz
mv %{_builddir}/coreboot-%{version} %{_builddir}/nvramtool-%{version}
cd %{_builddir}/nvramtool-%{version}/util/nvramtool
DESTDIR=%{buildroot} PREFIX=%{_prefix} make
install -Dm755 nvramtool %{buildroot}/%{_sbindir}/nvramtool

%files
%{_sbindir}/%{name}

%changelog
* Sat May 14 2022 Adam Thiede <adamj@mailbox.org> 4.16
- initial spec file