# # spec file for package coreboot-utils (Version r3852) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: coreboot-utils Url: http://linuxbios.org/ Summary: A universal flash programming utility Version: r3852 Release: 2 %define nvramtool_version r3852 License: GPL v2 only; GPL v2 or later Group: Development/Tools/Other Source0: flashrom-svn-%{version}.tar.bz2 Source1: nvramtool-svn-%{nvramtool_version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pciutils-devel zlib-devel Provides: flashrom = %{version} Obsoletes: flashrom < %{version} ExclusiveArch: %ix86 x86_64 %description flashrom is a universal flash programming utility for DIP, PLCC, or SPI flash ROM chips. It can be used to flash BIOS/LinuxBIOS/firmware images, for example. Authors: -------- Yinghai Lu Stefan Reinauer Niki W. Waibel %prep %setup -q -n flashrom-svn-%{version} -a 1 %build make %{?jobs:-j%jobs} \ CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DDISABLE_DOC " \ LDFLAGS="-lpci -lz" gzip flashrom.8 cd nvramtool-svn-%{nvramtool_version} make %{?jobs:-j%jobs} \ CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DDISABLE_DOC " \ LDFLAGS="-lpci -lz" gzip nvramtool.8 %install mkdir -p %{buildroot}%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_sbindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 install -m 0755 flashrom $RPM_BUILD_ROOT/%{_sbindir} install -m 0644 flashrom.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8 cd nvramtool-svn-%{nvramtool_version} install -m 0755 nvramtool $RPM_BUILD_ROOT/%{_bindir} install -m 0644 nvramtool.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8 cd - cp README README.flashrom cp nvramtool-svn-%{nvramtool_version}/COPYING . cp nvramtool-svn-%{nvramtool_version}/DISCLAIMER DISCLAIMER.nvramtool cp nvramtool-svn-%{nvramtool_version}/README README.nvramtool cp nvramtool-svn-%{nvramtool_version}/ChangeLog ChangeLog.nvramtool %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING %doc README.flashrom %doc DISCLAIMER.nvramtool ChangeLog.nvramtool README.nvramtool %{_sbindir}/flashrom %{_bindir}/nvramtool %{_mandir}/man8/nvramtool.8.gz %{_mandir}/man8/flashrom.8.gz %changelog * Thu Jan 08 2009 bbrunner@suse.de - update nvramtool to svn release r3852 - update flashrom to svn release r3852 * Wed Oct 15 2008 bwalle@suse.de - update nvramtool to svn release r3613 - update flashrom to svn release r3659 * Wed Aug 13 2008 ro@suse.de - add ExclusiveArch * Mon Mar 17 2008 bwalle@suse.de - rename lxbios to nvramtool - update nvramtool to svn release r3124 - update flashrom to svn release r3153 * Sun Jan 20 2008 bwalle@suse.de - update to svn release r3061 o Support SPI flash chips bigger than 512 kByte sitting behind IT8716F Super I/O performing LPC-to-SPI flash translation. o Enable MX25L8005 support in flashrom. o Minor changes. - add lxbios utility * Thu Jan 10 2008 bwalle@suse.de - initial package