SPECS: memtest86+.spec - added image config for rc-boot - s#/boot/...
arvenil
arvenil at pld-linux.org
Thu Jan 3 19:18:49 CET 2008
Author: arvenil Date: Thu Jan 3 18:18:49 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added image config for rc-boot
- s#/boot/memtest86+#/boot/memtest86+.vmlinuz#
- release 2
---- Files affected:
SPECS:
memtest86+.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/memtest86+.spec
diff -u SPECS/memtest86+.spec:1.17 SPECS/memtest86+.spec:1.18
--- SPECS/memtest86+.spec:1.17 Tue Feb 13 07:46:53 2007
+++ SPECS/memtest86+.spec Thu Jan 3 19:18:44 2008
@@ -6,11 +6,12 @@
Summary(uk.UTF-8): Тест пам'яті для x86-архітектури
Name: memtest86+
Version: 1.70
-Release: 1
+Release: 2
License: GPL
Group: Applications/System
Source0: http://www.memtest.org/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: ee447fa46b75cf98538fa60667eb079d
+Source1: %{name}.image
Patch0: %{name}-i686-ld.patch
URL: http://www.memtest.org/
ExclusiveArch: %{ix86}
@@ -60,6 +61,19 @@
Також може використовуватися для створення завантажувальної
тест-дискети.
+%package -n rc-boot-image-memtest86+
+Summary: memtest86+ image for rc-boot
+Summary(pl.UTF-8): Obraz memtest86+ dla rc-boot
+Group: Base
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: rc-boot
+
+%description -n rc-boot-image-memtest86+
+memtest86+ image for rc-boot.
+
+%description -n rc-boot-image-memtest86+ -l pl.UTF-8
+Obraz memtest86+ dla rc-boot.
+
%prep
%setup -q
#%patch0 -p1
@@ -72,17 +86,34 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/boot
-install memtest.bin $RPM_BUILD_ROOT/boot/memtest86+
+install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-boot/images
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-boot/images/%{name}
+
+install -d $RPM_BUILD_ROOT/boot
+install memtest.bin $RPM_BUILD_ROOT/boot/%{name}.vmlinuz
%clean
rm -rf $RPM_BUILD_ROOT
+%postun -n rc-boot-image-memtest86+
+if [ -x /sbin/rc-boot ]; then
+ /sbin/rc-boot 1>&2 || :
+fi
+
+%post -n rc-boot-image-memtest86+
+if [ -x /sbin/rc-boot ]; then
+ /sbin/rc-boot 1>&2 || :
+fi
+
%files
%defattr(644,root,root,755)
%doc README
-/boot/memtest86+
+/boot/%{name}.vmlinuz
+
+%files -n rc-boot-image-memtest86+
+%defattr(644,root,root,755)
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-boot/images/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -90,6 +121,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2008-01-03 18:18:44 arvenil
+- added image config for rc-boot
+- s#/boot/memtest86+#/boot/memtest86+.vmlinuz#
+- release 2
+
Revision 1.17 2007-02-13 06:46:53 glen
- tabs in preamble
@@ -138,4 +174,3 @@
Revision 1.1 2004/02/20 11:55:33 areq
- init PLD spec (based on memtest86.spec)
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/memtest86+.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list