blob: 2e3a4d067aa11dc9e891d3b5c8f7b9ef8e43d250 [file] [log] [blame]
Stefan Reinauer6540ae52007-07-12 16:35:42 +00001##
Stefan Reinauer6540ae52007-07-12 16:35:42 +00002
Uwe Hermann6e565942008-03-01 19:06:32 +00003Name: nvramtool
Stefan Reinauera67aab72008-09-27 10:08:28 +00004Version: 2.1
Stefan Reinauer6540ae52007-07-12 16:35:42 +00005Release: 0
6
Stefan Reinauerf527e702008-01-18 15:33:49 +00007Summary: coreboot utility program
Stefan Reinauer6540ae52007-07-12 16:35:42 +00008Group: System Environment/Base
9License: GPL
Uwe Hermann6e565942008-03-01 19:06:32 +000010Provides: nvramtool
Stefan Reinauer6540ae52007-07-12 16:35:42 +000011
12BuildRoot: %{_tmppath}/%{name}-%{version}
13
14Source0: %{name}-%{version}.tgz
15
16%description
Uwe Hermann6e565942008-03-01 19:06:32 +000017nvramtool is a utility for reading/writing coreboot parameters and displaying
Stefan Reinauerf527e702008-01-18 15:33:49 +000018information from the coreboot table.
Stefan Reinauer6540ae52007-07-12 16:35:42 +000019
Stefan Reinauerf527e702008-01-18 15:33:49 +000020At boot time, coreboot places a table (known as the coreboot table) in low
Stefan Reinauer6540ae52007-07-12 16:35:42 +000021physical memory. The contents of this table are preserved even after
Stefan Reinauerf527e702008-01-18 15:33:49 +000022coreboot transfers control to the kernel and the kernel initializes itself.
23The coreboot table contains various system information such as the type of
Stefan Reinauer6540ae52007-07-12 16:35:42 +000024mainboard in use. It also specifies locations in the CMOS (nonvolatile RAM)
Stefan Reinauerf527e702008-01-18 15:33:49 +000025where the coreboot parameters are stored.
Stefan Reinauer6540ae52007-07-12 16:35:42 +000026
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"
Stefan Reinauer4db6cbd2009-09-01 09:54:21 +000036mkdir -p "$RPM_BUILD_ROOT/usr/man/man8"
Uwe Hermann6e565942008-03-01 19:06:32 +000037cp nvramtool "$RPM_BUILD_ROOT/usr/bin"
Stefan Reinauer4db6cbd2009-09-01 09:54:21 +000038cp nvramtool.8.gz $RPM_BUILD_ROOT/usr/man/man8
Stefan Reinauer6540ae52007-07-12 16:35:42 +000039
40%clean
41rm -rf "$RPM_BUILD_ROOT"
42
43%files
44%defattr(-,root,root,0755)
45%doc ChangeLog README
46%doc README
Uwe Hermann6e565942008-03-01 19:06:32 +000047/usr/bin/nvramtool
Stefan Reinauer4db6cbd2009-09-01 09:54:21 +000048/usr/man/man8/nvramtool.8.gz