diff --git a/.cvsignore b/.cvsignore index e69de29..1f21d5d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +flashrom-2753.tar.bz2 diff --git a/flashrom--Makefile_cleanup.diff b/flashrom--Makefile_cleanup.diff new file mode 100644 index 0000000..c616428 --- /dev/null +++ b/flashrom--Makefile_cleanup.diff @@ -0,0 +1,30 @@ +--- Makefile 2007-08-05 15:15:51.000000000 +0400 ++++ Makefile 2007-08-05 15:18:46.000000000 +0400 +@@ -7,18 +7,10 @@ + PROGRAM = flashrom + + CC = gcc +-STRIP = strip + INSTALL = /usr/bin/install +-PREFIX = /usr/local +-#CFLAGS = -O2 -g -Wall -Werror +-CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300 ++PREFIX = /usr/ + OS_ARCH = $(shell uname) +-ifeq ($(OS_ARCH), SunOS) + LDFLAGS = -lpci -lz +-else +-LDFLAGS = -lpci -lz -static +-STRIP_ARGS = -s +-endif + + OBJS = chipset_enable.o board_enable.o udelay.o jedec.o sst28sf040.o \ + am29f040b.o mx29f002.o sst39sf020.o m29f400bt.o w49f002u.o \ +@@ -30,7 +22,6 @@ + + $(PROGRAM): $(OBJS) + $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS) +- $(STRIP) $(STRIP_ARGS) $(PROGRAM) + + clean: + rm -f *.o *~ diff --git a/flashrom.spec b/flashrom.spec new file mode 100644 index 0000000..550ad32 --- /dev/null +++ b/flashrom.spec @@ -0,0 +1,56 @@ +Summary: Simple program for reading/writing BIOS chips content +Name: flashrom +Version: 0 +Release: 0.1.20070830svn2753%{?dist} +License: GPLv2+ +Group: Applications/System +# svn -r 2753 export svn://linuxbios.org/repos/trunk/util/flashrom flashrom +# tar -cjvf flashrom-2753.tar.bz2 flashrom +Source0: flashrom-2753.tar.bz2 +Patch0: flashrom--Makefile_cleanup.diff +URL: http://linuxbios.org/Flashrom +BuildRequires: pciutils-devel +BuildRequires: zlib-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# Lacks of +ExcludeArch: ppc ppc64 + +%description +Utility which can be used to detect BIOS chips (DIP, PLCC), read their contents +and write new contents on the chips ("flash the chip"). + +%prep +%setup -q -n %{name} +%patch0 + +%build +# currently disabling DiscOnChip due to instability +CFLAGS="%{optflags} -DDISABLE_DOC" %{__make} %{?_smp_mflags} + +%install +%{__rm} -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +install %{name} $RPM_BUILD_ROOT%{_bindir} +install -D -p -m644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz + +%changelog + +* Thu Sep 6 2007 Peter Lemenkov 0-0.1.20070830svn2753 +- svn ver. 2753 (support for W29C040P and W29EE011 chips added) +- New naming scheme + +* Wed Aug 22 2007 Peter Lemenkov 0.0-1.2744svn +- svnver. 2744 + +* Sun Aug 5 2007 Peter Lemenkov 0.0-1.2742svn +- Initial build for FC-Extras diff --git a/sources b/sources index e69de29..a44845b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6488571b0e5933ff4cf1c7079b31bb0b flashrom-2753.tar.bz2