Skip to content

Commit 3af008b

Browse files
committed
0.4-alt1
- Built package only for x86_64. Signed-off-by: Alexey Gladkov <legion@altlinux.org>
1 parent 2134e74 commit 3af008b

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

make-initrd-bootloader.spec

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
Name: make-initrd-bootloader
2-
Version: 0.3
2+
Version: 0.4
33
Release: alt1
44

55
Summary: Bootloader feature for make-initrd
66
License: GPL-2
77
Group: System/Base
88

9+
ExclusiveArch: x86_64
10+
911
Source0: %name-%version.tar
1012

1113
BuildRequires: make sed bc flex
@@ -30,8 +32,16 @@ Make-initrd bootloader feature.
3032
%makeinstall_std
3133

3234
kver="`cat "%buildroot/lib/bootloader/boot/version"`"
33-
mv -f -- "%buildroot/lib/bootloader/boot/System.map" "%buildroot/lib/bootloader/boot/System.map-$kver"
34-
mv -f -- "%buildroot/lib/bootloader/boot/config" "%buildroot/lib/bootloader/boot/config-$kver"
35+
36+
[ -e "%buildroot/lib/bootloader/boot/System.map-$kver" ] ||
37+
mv -f -- \
38+
"%buildroot/lib/bootloader/boot/System.map" \
39+
"%buildroot/lib/bootloader/boot/System.map-$kver"
40+
41+
[ -e "%buildroot/lib/bootloader/boot/config-$kver" ] ||
42+
mv -f -- \
43+
"%buildroot/lib/bootloader/boot/config" \
44+
"%buildroot/lib/bootloader/boot/config-$kver"
3545

3646
mkdir -p %buildroot/%_datadir/make-initrd/features
3747
cp -a feature %buildroot/%_datadir/make-initrd/features/bootloader
@@ -67,6 +77,9 @@ touch %buildroot/boot/bootloader.conf
6777
%_datadir/make-initrd/features/bootloader
6878

6979
%changelog
80+
* Thu Apr 09 2020 Alexey Gladkov <legion@altlinux.ru> 0.4-alt1
81+
- Built package only for x86_64.
82+
7083
* Sun Apr 05 2020 Alexey Gladkov <legion@altlinux.ru> 0.3-alt1
7184
- Rename loader.
7285

0 commit comments

Comments
 (0)