SPECS: microcode_ctl.spec - microcode.dat contains giberrish!
glen
glen at pld-linux.org
Sat Mar 21 22:52:56 CET 2009
Author: glen Date: Sat Mar 21 21:52:56 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- microcode.dat contains giberrish!
---- Files affected:
SPECS:
microcode_ctl.spec (1.39 -> 1.40)
---- Diffs:
================================================================
Index: SPECS/microcode_ctl.spec
diff -u SPECS/microcode_ctl.spec:1.39 SPECS/microcode_ctl.spec:1.40
--- SPECS/microcode_ctl.spec:1.39 Mon Mar 9 19:05:52 2009
+++ SPECS/microcode_ctl.spec Sat Mar 21 22:52:51 2009
@@ -45,20 +45,23 @@
%prep
%setup -q
+cp %{SOURCE2} microcode.dat
%build
+if ! grep -q 0x00000000 microcode.dat; then
+ echo >&2 microcode.dat contains giberrish
+ exit 1
+fi
+
%{__cc} %{rpmldflags} %{rpmcflags} -Wall \
microcode_ctl.c -o microcode_ctl
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}}
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
-
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_sbindir},%{_mandir}/man8}
install %{name} $RPM_BUILD_ROOT%{_sbindir}
install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
-install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/microcode.dat
-
+cp -a microcode.dat $RPM_BUILD_ROOT%{_sysconfdir}/microcode.dat
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
%clean
@@ -86,6 +89,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.40 2009/03/21 21:52:51 glen
+- microcode.dat contains giberrish!
+
Revision 1.39 2009/03/09 18:05:52 adamg
- release 3; microcode updated to 20080910
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/microcode_ctl.spec?r1=1.39&r2=1.40&f=u
More information about the pld-cvs-commit
mailing list