1## 2 3Name: nvramtool 4Version: 2.1 5Release: 0 6 7Summary: coreboot utility program 8Group: System Environment/Base 9License: GPL 10Provides: nvramtool 11 12BuildRoot: %{_tmppath}/%{name}-%{version} 13 14Source0: %{name}-%{version}.tgz 15 16%description 17nvramtool is a utility for reading/writing coreboot parameters and displaying 18information from the coreboot table. 19 20At boot time, coreboot places a table (known as the coreboot table) in low 21physical memory. The contents of this table are preserved even after 22coreboot transfers control to the kernel and the kernel initializes itself. 23The coreboot table contains various system information such as the type of 24mainboard in use. It also specifies locations in the CMOS (nonvolatile RAM) 25where the coreboot parameters are stored. 26 27%prep 28%setup -n %{name}-%{version} 29 30%build 31make 32 33%install 34rm -rf "$RPM_BUILD_ROOT" 35mkdir -p "$RPM_BUILD_ROOT/usr/bin" 36mkdir -p "$RPM_BUILD_ROOT/usr/man/man8" 37cp nvramtool "$RPM_BUILD_ROOT/usr/bin" 38cp nvramtool.8.gz $RPM_BUILD_ROOT/usr/man/man8 39 40%clean 41rm -rf "$RPM_BUILD_ROOT" 42 43%files 44%defattr(-,root,root,0755) 45%doc ChangeLog README 46%doc README 47/usr/bin/nvramtool 48/usr/man/man8/nvramtool.8.gz 49