/[packages]/updates/6/grub2/current/SPECS/grub2.spec
ViewVC logotype

Annotation of /updates/6/grub2/current/SPECS/grub2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1006389 - (hide annotations) (download)
Tue Apr 26 11:46:48 2016 UTC (7 years, 11 months ago) by tv
Original Path: cauldron/grub2/current/SPECS/grub2.spec
File size: 17456 byte(s)
rename source7 as 20 (SILENT)
1 barjac 248856 %define Werror_cflags %nil
2     # Modules always contain just 32-bit code
3     %define _libdir %{_exec_prefix}/lib
4 neoclust 926545
5 tv 990775 # 64bit intel machines use 32bit boot loader
6     # (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
7 barjac 248856 %ifarch x86_64
8 tv 990775 %define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
9 barjac 248856 %global efi_arch x86_64-efi
10 neoclust 926392 %endif
11    
12     %ifarch %arm
13     %global efi_arch arm-uboot
14 neoclust 926545 %endif
15    
16     %ifarch %ix86
17 barjac 248856 %global efi_arch i386-efi
18     %endif
19    
20 tv 990766 %global tarversion 2.02~beta2
21 barjac 248856 %global pc_arch i386-pc
22 barjac 927090 %define git 10270
23 tv 990774 %define rel 3
24 neoclust 926398
25 barjac 248856 Name: grub2
26 barjac 629976 Version: 2.02
27 barjac 873987 Release: %mkrel -c git%{git} %{rel}
28 tv 990775 Summary: Bootloader with support for Linux, Multiboot and more
29 barjac 390289 Group: System/Boot and Init
30 barjac 248856 License: GPLv3+ and GPLv2
31     # unicode font is GPLv2
32 barjac 318311 URL: http://www.gnu.org/software/grub/
33 tv 990775 Source0: ftp://alpha.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
34     #Source0: ftp://ftp.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz
35 barjac 400190 Source1: 90_persistent
36     Source2: grub.default
37     Source3: README.Mageia
38     Source4: README.efi
39 tv 990767 Source6: gitignore
40 barjac 404821 # pf2 fonts may be regenerated in SOURCES using ./mkfonts
41 barjac 400190 Source8: mkfonts
42     Source9: unicode.pf2
43 barjac 402075 Source10: MageiaLogo-Bold-16.pf2
44     Source11: MageiaLogo-Bold-20.pf2
45     Source12: MageiaLogo-Bold-28.pf2
46     Source13: MageiaLogo-Regular-20.pf2
47 barjac 803582 Source14: Mageia5-grub2-1024x768.png
48 barjac 404821 Source15: MageiaLogoFonts-bdf.tar.xz
49 tv 1006389 Source20: theme.txt
50 barjac 394991
51 tv 990770 #
52     # Fedora patches:
53     #
54 barjac 873987
55 tv 990770 # generate with:
56     # git diff grub-2.02-beta2..origin/master
57     Patch0000: grub-2.02-beta2-to-origin-master.patch
58 barjac 872680
59 tv 990770 # generate all the patches after this with:
60     # git format-patch fedora-diff-from-here..fedora-23
61     Patch0001: 0001-Migrate-PPC-from-Yaboot-to-Grub2.patch
62     Patch0002: 0002-Add-fw_path-variable-revised.patch
63     Patch0003: 0003-Add-support-for-linuxefi.patch
64     Patch0004: 0004-Use-linuxefi-and-initrdefi-where-appropriate.patch
65     Patch0005: 0005-Don-t-allow-insmod-when-secure-boot-is-enabled.patch
66     Patch0006: 0006-Pass-x-hex-hex-straight-through-unmolested.patch
67     Patch0007: 0007-Fix-crash-on-http.patch
68     Patch0008: 0008-IBM-client-architecture-CAS-reboot-support.patch
69     Patch0009: 0009-Add-vlan-tag-support.patch
70     Patch0010: 0010-Add-X-option-to-printf-functions.patch
71     Patch0011: 0011-DHCP-client-ID-and-UUID-options-added.patch
72     Patch0012: 0012-Search-for-specific-config-file-for-netboot.patch
73     Patch0013: 0013-blscfg-add-blscfg-module-to-parse-Boot-Loader-Specif.patch
74     Patch0014: 0014-Move-bash-completion-script-922997.patch
75     Patch0015: 0015-for-ppc-reset-console-display-attr-when-clear-screen.patch
76     Patch0016: 0016-Don-t-write-messages-to-the-screen.patch
77     Patch0017: 0017-Don-t-print-GNU-GRUB-header.patch
78     Patch0018: 0018-Don-t-add-to-highlighted-row.patch
79     Patch0019: 0019-Message-string-cleanups.patch
80     Patch0020: 0020-Fix-border-spacing-now-that-we-aren-t-displaying-it.patch
81     Patch0021: 0021-Use-the-correct-indentation-for-the-term-help-text.patch
82     Patch0022: 0022-Indent-menu-entries.patch
83     Patch0023: 0023-Fix-margins.patch
84     Patch0024: 0024-Add-support-for-UEFI-operating-systems-returned-by-o.patch
85     Patch0025: 0025-Disable-GRUB-video-support-for-IBM-power-machines.patch
86     Patch0026: 0026-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
87     Patch0027: 0027-Use-linux16-when-appropriate-880840.patch
88     Patch0028: 0028-Enable-pager-by-default.-985860.patch
89     Patch0029: 0029-F10-doesn-t-work-on-serial-so-don-t-tell-the-user-to.patch
90     Patch0030: 0030-Don-t-say-GNU-Linux-in-generated-menus.patch
91     Patch0031: 0031-Don-t-draw-a-border-around-the-menu.patch
92     Patch0032: 0032-Use-the-standard-margin-for-the-timeout-string.patch
93     Patch0033: 0033-Fix-grub_script_execute_sourcecode-usage-on-ppc.patch
94     Patch0034: 0034-Add-.eh_frame-to-list-of-relocations-stripped.patch
95     Patch0035: 0035-Make-10_linux-work-with-our-changes-for-linux16-and-.patch
96     Patch0036: 0036-Don-t-print-during-fdt-loading-method.patch
97     Patch0037: 0037-Honor-a-symlink-when-generating-configuration-by-gru.patch
98     Patch0038: 0038-Don-t-munge-raw-spaces-when-we-re-doing-our-cmdline-.patch
99     Patch0039: 0039-Don-t-require-a-password-to-boot-entries-generated-b.patch
100     Patch0040: 0040-Don-t-emit-Booting-.-message.patch
101     Patch0041: 0041-Make-CTRL-and-ALT-keys-work-as-expected-on-EFI-syste.patch
102     Patch0042: 0042-May-as-well-try-it.patch
103     Patch0043: 0043-use-fw_path-prefix-when-fallback-searching-for-grub-.patch
104     Patch0044: 0044-Try-mac-guid-etc-before-grub.cfg-on-tftp-config-file.patch
105     Patch0045: 0045-trim-arp-packets-with-abnormal-size.patch
106     Patch0046: 0046-Fix-convert-function-to-support-NVMe-devices.patch
107     Patch0047: 0047-Fix-bad-test-on-GRUB_DISABLE_SUBMENU.patch
108     Patch0048: 0048-Switch-to-use-APM-Mustang-device-tree-for-hardware-t.patch
109     Patch0049: 0049-Use-the-default-device-tree-from-the-grub-default-fi.patch
110     Patch0050: 0050-reopen-SNP-protocol-for-exclusive-use-by-grub.patch
111     Patch0051: 0051-Reduce-timer-event-frequency-by-10.patch
112     Patch0052: 0052-always-return-error-to-UEFI.patch
113     Patch0053: 0053-Suport-for-bi-endianess-in-elf-file.patch
114     Patch0054: 0054-Add-grub_util_readlink.patch
115     Patch0055: 0055-Make-editenv-chase-symlinks-including-those-across-d.patch
116     Patch0056: 0056-Generate-OS-and-CLASS-in-10_linux-from-etc-os-releas.patch
117     Patch0057: 0057-Fix-GRUB_DISABLE_SUBMENU-one-more-time.patch
118     Patch0058: 0058-Minimize-the-sort-ordering-for-.debug-and-rescue-ker.patch
119     Patch0059: 0059-Add-GRUB_DISABLE_UUID.patch
120     Patch0060: 0060-Allow-fallback-to-include-entries-by-title-not-just-.patch
121     Patch0061: 0061-Load-arm-with-SB-enabled.patch
122     Patch0062: 0062-Try-prefix-if-fw_path-doesn-t-work.patch
123     Patch0063: 0063-Try-to-emit-linux16-initrd16-and-linuxefi-initrdefi-.patch
124     Patch0064: 0064-Update-to-minilzo-2.08.patch
125     Patch0065: 0065-Make-grub2-mkconfig-construct-titles-that-look-like-.patch
126     Patch0066: 0066-Make-rescue-and-debug-entries-sort-right-again-in-gr.patch
127     Patch0067: 0067-Make-.gitignore-suck-way-less.patch
128     Patch0068: 0068-Update-info-with-grub.cfg-netboot-selection-order-11.patch
129     Patch0069: 0069-Use-Distribution-Package-Sort-for-grub2-mkconfig-112.patch
130     Patch0070: 0070-Add-friendly-grub2-password-config-tool-985962.patch
131     Patch0071: 0071-Make-exit-take-a-return-code.patch
132     Patch0072: 0072-Add-some-__unused__-where-gcc-5.x-is-more-picky-abou.patch
133     Patch0073: 0073-Fix-race-in-EFI-validation.patch
134     Patch0074: 0074-Mark-po-exclude.pot-as-binary-so-git-won-t-try-to-di.patch
135     Patch0075: 0075-Fix-security-issue-when-reading-username-and-passwor.patch
136     Patch0076: 0076-01_users-Handle-GRUB_PASSWORD-better.patch
137    
138    
139    
140    
141     # And these are:
142     # git checkout debuginfo
143     # git format-patch fedora-23..
144     Patch10001: 10001-Put-the-correct-.file-directives-in-our-.S-files.patch
145     Patch10002: 10002-Make-efi-machines-load-an-env-block-from-a-variable.patch
146     Patch10003: 10003-Make-it-possible-to-enabled-build-id-sha1.patch
147     #Patch10004: 10004-Don-t-tell-the-compiler-to-do-annoying-things-with-f.patch
148     Patch10005: 10005-Add-grub_qdprintf-grub_dprintf-without-the-file-line.patch
149     Patch10006: 10006-Make-a-gdb-dprintf-that-tells-us-load-addresses.patch
150    
151     #
152     # Mga patches:
153     #
154     Patch20001: grub2-2.00-mga-add_failsafe-10_linux.in.patch
155 barjac 919799
156 tv 990789 BuildRequires: flex bison binutils python
157     BuildRequires: ncurses-devel bzip2-devel
158     BuildRequires: freetype-devel libusb-devel
159 barjac 248856 BuildRequires: ruby
160     BuildRequires: glibc-static-devel
161     BuildRequires: liblzo-devel
162 tv 990789 BuildRequires: rpm-devel
163     BuildRequires: autoconf automake autogen device-mapper-devel
164     BuildRequires: freetype-devel gettext-devel git
165 tv 990802 BuildRequires: freetype2-devel
166 tv 990789 BuildRequires: texinfo
167 barjac 248856 BuildRequires: help2man
168     BuildRequires: fuse-devel
169    
170     Conflicts: %{name}-efi
171 barjac 388456 Provides: bootloader
172 barjac 853282 Provides: grub2bootloader = %{version}-%{release}
173     Requires: %{name}-common = %{version}-%{release}
174 barjac 248856
175     %description
176     This is the second version of the GRUB (Grand Unified Boot-loader), a highly
177     configurable and customizable boot-loader with modular architecture.
178     It supports a wide range of kernel formats, file systems, computer
179     architectures and hardware devices.
180     Refer to the README.Mageia file that is part of this package's documentation
181     for more information.
182    
183 neoclust 926398 %ifnarch %arm
184 barjac 248856 %package efi
185 barjac 248863 Summary: Boot-loader with support for EFI
186 barjac 390289 Group: System/Boot and Init
187 barjac 248856
188     Conflicts: %{name}
189 tmb 547151 Requires(post): efibootmgr
190 barjac 388456 Provides: bootloader
191 barjac 853282 Provides: grub2bootloader = %{version}-%{release}
192     Requires: %{name}-common = %{version}-%{release}
193 barjac 248856
194     %description efi
195     This is the second version of the GRUB (Grand Unified Boot-loader), a highly
196     configurable and customizable boot-loader with modular architecture.
197     It supports a wide range of kernel formats, file systems, computer
198     architectures and hardware devices.
199 barjac 905032 ************************** WARNING ************************
200     Do not attempt to install this package on a system which is not
201     already using UEFI mode to boot. You cannot switch to UEFI mode by installing
202     this package, the system must be installed in UEFI mode to use it, when it
203     will be installed by default.
204 neoclust 926398 %endif
205 barjac 248856
206 neoclust 926398 %ifarch %arm
207     %package uboot
208 barjac 927090 Summary: Boot-loader with support for UBOOT
209     Group: System/Boot and Init
210 neoclust 926398
211 barjac 927090 Provides: bootloader
212     Provides: grub2bootloader = %{version}-%{release}
213     Requires: %{name}-common = %{version}-%{release}
214 neoclust 926398
215     %description uboot
216     configurable and customizable boot-loader with modular architecture.
217     It supports a wide range of kernel formats, file systems, computer
218     architectures and hardware devices.
219     %endif
220    
221 barjac 853282 %package common
222     Summary: Provides files common to both grub2 and grub2-efi
223     Group: System/Boot and Init
224 barjac 903489 Conflicts: memtest86+ < 5.01-7
225 barjac 853282 Conflicts: %{name} < 2.02-0.git9752.19.mga5
226     Conflicts: %{name}-efi < 2.02-0.git9752.19.mga5
227 tv 953531 #Recommends: %{name}-mageia-theme = %{version}-%{release}
228 barjac 903489 Recommends: os-prober >= 1.53
229 barjac 853282 Recommends: xorriso
230 barjac 903489 Recommends: memtest86+ >= 5.01-7
231 barjac 853282 Requires: grub2bootloader = %{version}-%{release}
232    
233     %description common
234     Common files used by both grub2 and grub2-efi.
235    
236 barjac 394991 %package mageia-theme
237 barjac 403927 Summary: Provides a graphical theme with a custom Mageia background for grub2
238 barjac 394991 Group: System/Boot and Init
239    
240 barjac 853282 Requires: grub2bootloader = %{version}-%{release}
241 tmb 550414 Conflicts: grub2-mageia3-theme-dejavu
242 barjac 450000 BuildArch: noarch
243 barjac 394991
244     %description mageia-theme
245 barjac 403927 This package provides a custom Mageia graphical theme.
246 barjac 394991 It is provided as a separate package so it may be easily excluded from
247     minimal installations where a graphical theme is not required.
248    
249 barjac 248856 %prep
250 tv 990766 %setup -q -n grub-%{tarversion}
251 barjac 248856
252 tv 990767 cp %{SOURCE6} .gitignore
253 tv 990770 git init
254     echo '![[:digit:]][[:digit:]]_*.in' > util/grub.d/.gitignore
255     echo '!*.[[:digit:]]' > util/.gitignore
256     git config user.email "%{name}-owner@fedoraproject.org"
257     git config user.name "Fedora Ninjas"
258     git config gc.auto 0
259     git add .
260     git commit -a -q -m "%{tarversion} baseline."
261     git am %{patches} </dev/null
262     git config --unset user.email
263     git config --unset user.name
264 barjac 295597
265 barjac 248856 # README.Mageia
266 neoclust 926399 cp %{SOURCE3} .
267 neoclust 926491
268 neoclust 926398 %ifnarch %arm
269 barjac 400190 # README.efi
270 barjac 397190 cp %{SOURCE4} .
271 barjac 248856
272     cd ..
273 tv 990766 rm -rf grub-efi-%{tarversion}
274     mv grub-%{tarversion} grub-efi-%{tarversion}
275 neoclust 926398 %endif
276 barjac 248856
277 tv 990766 %setup -q -n grub-%{tarversion}
278 barjac 248856
279 tv 990769 cp %{SOURCE6} .gitignore
280 tv 990770 git init
281     echo '![[:digit:]][[:digit:]]_*.in' > util/grub.d/.gitignore
282     echo '!*.[[:digit:]]' > util/.gitignore
283     git config user.email "%{name}-owner@fedoraproject.org"
284     git config user.name "Fedora Ninjas"
285     git config gc.auto 0
286     git add .
287     git commit -a -q -m "%{tarversion} baseline."
288     git am %{patches} </dev/null
289     git config --unset user.email
290     git config --unset user.name
291 barjac 872503 find . -name "*.0???" -delete
292 barjac 295597
293 barjac 248856 # README.Mageia
294 barjac 400190 cp %{SOURCE3} .
295     # README.efi
296 barjac 397190 cp %{SOURCE4} .
297 barjac 248856
298     %build
299     cd ..
300 tv 990766 pushd grub-%{tarversion}
301 pterjan 397685 ./autogen.sh
302 barjac 304517 %configure2_5x TARGET_LDFLAGS=-static \
303 neoclust 926388 %ifarch %arm
304     --with-platform=uboot \
305     %else
306     --with-platform=pc \
307     %endif
308 barjac 248856 --enable-grub-emu-usb \
309     --disable-werror \
310     --enable-grub-mkfont \
311     --program-transform-name=s,grub,%{name}, \
312     --with-bootdir=/boot \
313     --with-grubdir=/%{name} \
314     CFLAGS=""
315 pterjan 397685 %make
316 barjac 248856 popd
317    
318 neoclust 926388 %ifnarch %arm
319 tv 990766 pushd grub-efi-%{tarversion}
320 barjac 397694 ./autogen.sh
321 barjac 304517 %configure2_5x TARGET_LDFLAGS=-static \
322 barjac 248856 --with-platform=efi \
323     %ifarch x86_64
324     --target=x86_64 \
325     %endif
326     --enable-grub-emu-usb \
327     --disable-werror \
328     --enable-grub-mkfont \
329     --program-transform-name=s,grub,%{name}, \
330     --with-bootdir=/boot \
331     --with-grubdir=/%{name} \
332     CFLAGS=""
333 pterjan 397685 %make
334 barjac 248856 popd
335 neoclust 926388 %endif
336 barjac 248856
337     %install
338     cd ..
339 neoclust 926388 %ifnarch %arm
340 tv 990766 pushd grub-efi-%{tarversion}
341 barjac 248856 %makeinstall_std
342     popd
343 neoclust 926388 %endif
344 barjac 248856
345 tv 990766 pushd grub-%{tarversion}
346 barjac 248856 %makeinstall_std
347    
348     # (bor) grub.info is harcoded in sources
349     mv %{buildroot}%{_infodir}/grub.info %{buildroot}%{_infodir}/%{name}.info
350    
351     # Script that makes part of grub.cfg persist across updates
352 barjac 400190 install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/grub.d
353 barjac 248856
354     # Font
355     install -d %{buildroot}/boot/%{name}/fonts
356 barjac 400190 install -D %{SOURCE9} %{buildroot}/boot/%{name}/fonts
357 barjac 248856
358     # Theme
359     install -d %{buildroot}/boot/%{name}/themes/maggy
360 tv 1006389 install -D %{SOURCE20} %{buildroot}/boot/%{name}/themes/maggy
361 barjac 400190 install -D %{SOURCE10} %{buildroot}/boot/%{name}/themes/maggy
362 barjac 397190 install -D %{SOURCE11} %{buildroot}/boot/%{name}/themes/maggy
363     install -D %{SOURCE12} %{buildroot}/boot/%{name}/themes/maggy
364 barjac 401593 install -D %{SOURCE13} %{buildroot}/boot/%{name}/themes/maggy
365 barjac 402075 install -D %{SOURCE14} %{buildroot}/boot/%{name}/themes/maggy
366 barjac 248856
367 barjac 397190 # Ghost config files
368 barjac 248856 install -d %{buildroot}/boot/%{name}
369    
370 barjac 400102 # Workaround for RHL Bug 817187
371     install -d %{buildroot}%{_datadir}/locale/en/LC_MESSAGES
372     ln -s %{_datadir}/locale/en@quot/LC_MESSAGES/grub.mo %{buildroot}%{_datadir}/locale/en/LC_MESSAGES/grub.mo
373 barjac 397190
374     cat > %{buildroot}/boot/%{name}/custom.cfg <<EOF
375 barjac 449511 # Set non-graphical text/background colours
376     set menu_color_normal=cyan/blue
377     set menu_color_highlight=white/blue
378 barjac 397190
379 barjac 449511 # Add any extra custom menu entries in here:
380    
381 barjac 397190 EOF
382    
383 barjac 400332 # Provide 'update-grub' and update-grub2 symlink for *buntu exiles ;)
384     cat > %{buildroot}%{_bindir}/update-grub <<EOF
385 barjac 404429 #!/bin/sh
386     su --login root -c "/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg"
387 barjac 400332
388     EOF
389     chmod +x %{buildroot}%{_bindir}/update-grub
390     ln -s %{_bindir}/update-grub %{buildroot}%{_bindir}/update-grub2
391    
392 barjac 248856 # Defaults
393 barjac 400190 install -m 644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/default/grub
394 barjac 248856
395 barjac 491788 # Remove "GNU/Linux" in menu selections
396     sed -i 's/ GNU\/Linux//' %{buildroot}%{_sysconfdir}/grub.d/10_linux
397 barjac 397190
398 barjac 248856 %find_lang grub
399    
400     popd
401    
402 barjac 412288 %post
403 barjac 629976 # On update re-install grub2 to where it was installed by drakboot if possible,
404 barjac 549519 # otherwise next boot may fail due to mismatched boot code.
405    
406 barjac 629976 if [ $1 -eq 2 ]; then
407 tv 819995 if [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ]; then
408 barjac 820103 LOADER=$(/usr/sbin/detectloader)
409 barjac 820182 [ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh ||:
410 tv 819995 fi
411 barjac 907432 rm -f /etc/default/grub.rpm*
412 barjac 412288 fi
413    
414 neoclust 926398 %ifnarch %arm
415 barjac 412288 %post efi
416 tv 819995 # On update re-install grub2 to where it was installed by drakboot if possible,
417 barjac 549519 # otherwise next boot may fail due to mismatched boot code.
418 barjac 629976
419     if [ $1 -eq 2 ]; then
420 tv 819995 if [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ]; then
421 barjac 820103 LOADER=$(/usr/sbin/detectloader)
422 barjac 820182 [ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh ||:
423 tv 819995 fi
424 barjac 907432 rm -f /etc/default/grub.rpm*
425 barjac 549519 fi
426 neoclust 926398 %endif
427 barjac 412288
428 barjac 394991 %post mageia-theme
429     # Don't install if updating
430     if [ $1 -eq 1 ] ; then
431 barjac 397534 # Remove trailing blank lines from /etc/default/grub
432     sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' %{_sysconfdir}/default/grub
433     # Check that /etc/default/grub ends in a linefeed
434     [ "$(tail -n 1 %{_sysconfdir}/default/grub | wc --lines)" = "1" ] || echo >> %{_sysconfdir}/default/grub
435     # Add theme
436 barjac 394991 echo "GRUB_THEME=/boot/grub2/themes/maggy/theme.txt" >> %{_sysconfdir}/default/grub
437 barjac 248856 fi
438    
439 barjac 907432 # If updating from below 2.02-0.git10101.4 then re-make grub.cfg once.
440     # grub2 dropped ownership of grub.cfg to avoid rpmnew being created.
441     # Remove rpmnew and after new grub.cfg is created remove rpmsave.
442     %triggerpostun common -- %{name} < 2.02-0.git10101.4, %{name}-efi < 2.02-0.git10101.4
443     rm -f /boot/%{name}/grub.cfg.rpmnew
444     %{name}-mkconfig -o /boot/%{name}/grub.cfg && rm -f /boot/%{name}/grub.cfg.rpmsave
445     # Take this opportunity to remove some unwanted logs
446     rm -f /var/log/%{name}_preun.log
447     rm -f /var/log/%{name}_post.log
448     rm -f /var/log/%{name}_theme_postun.log
449    
450 barjac 248856 %preun
451 barjac 394991 # Only if uninstalling
452     if [ $1 -eq 0 ]; then
453 barjac 248856 rm -rf /boot/%{name}/%{pc_arch}
454     rm -rf /boot/%{name}/locale
455 barjac 253503 fi
456 barjac 248856
457 neoclust 926398 %ifnarch %arm
458 barjac 248856 %preun efi
459 barjac 394991 # Only if uninstalling
460     if [ $1 -eq 0 ]; then
461 barjac 248856 rm -rf /boot/%{name}/%{efi_arch}
462     rm -rf /boot/%{name}/locale
463 barjac 253503 fi
464 neoclust 926398 %endif
465 barjac 248856
466 barjac 394991 %postun mageia-theme
467     # Only if uninstalling theme
468     if [ $1 -eq 0 ]; then
469 barjac 450000 # Remove theme from config
470     sed -i '/GRUB_THEME=\/boot\/grub2\/themes\/maggy\/theme.txt/d' %{_sysconfdir}/default/grub
471 barjac 394991 fi
472    
473 barjac 927090 %ifnarch %arm
474 barjac 853282 %files
475 barjac 248856 %dir %{_libdir}/grub
476     %dir %{_libdir}/grub/i386-pc
477     %{_libdir}/grub/i386-pc/*
478 neoclust 926392 %endif
479 barjac 254425
480 neoclust 926398 %ifnarch %arm
481 barjac 853282 %files efi
482     %doc README.efi
483 barjac 254425 %dir %{_libdir}/grub
484     %dir %{_libdir}/grub/%{efi_arch}
485 barjac 853282 %{_libdir}/grub/%{efi_arch}/*
486 neoclust 926398 %endif
487 barjac 853282
488 neoclust 926398 %ifarch %arm
489     %files uboot
490     %dir %{_libdir}/grub
491     %dir %{_libdir}/grub/%{efi_arch}
492     %{_libdir}/grub/%{efi_arch}/*
493     %endif
494    
495 barjac 853282 %files common -f grub.lang
496     %doc COPYING NEWS README THANKS TODO README.Mageia
497 barjac 397190 %dir /boot/%{name}
498 barjac 394991 %dir /boot/%{name}/fonts
499     %dir /boot/%{name}/themes
500 barjac 853282 %{_infodir}/*
501 barjac 254425 %{_bindir}/%{name}-*
502 barjac 400332 %{_bindir}/update-grub
503     %{_bindir}/update-grub2
504 barjac 254425 %{_sbindir}/%{name}-*
505 tv 990774 %{_datarootdir}/bash-completion/completions/grub
506 barjac 254425 %{_sysconfdir}/grub.d/README
507     %{_sysconfdir}/grub.d/00_header
508 barjac 873987 %{_sysconfdir}/grub.d/01_users
509 barjac 254425 %{_sysconfdir}/grub.d/10_linux
510     %{_sysconfdir}/grub.d/20_linux_xen
511 barjac 550657 %{_sysconfdir}/grub.d/20_ppc_terminfo
512 barjac 254425 %{_sysconfdir}/grub.d/30_os-prober
513 barjac 399253 %{_sysconfdir}/grub.d/90_persistent
514 barjac 254425 %config(noreplace) %{_sysconfdir}/grub.d/40_custom
515     %config(noreplace) %{_sysconfdir}/grub.d/41_custom
516     %config(noreplace) %{_sysconfdir}/default/grub
517 barjac 399253 %{_datadir}/grub
518 barjac 397190 %config(noreplace) /boot/%{name}/custom.cfg
519 barjac 254425 %{_mandir}/man1/%{name}-*.1*
520     %{_mandir}/man8/%{name}-*.8*
521 barjac 394991
522     %files mageia-theme
523     /boot/%{name}/fonts/unicode.pf2
524 barjac 450000 %dir /boot/%{name}/themes/maggy
525     /boot/%{name}/themes/maggy/*

  ViewVC Help
Powered by ViewVC 1.1.30