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