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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1121657 by umeabot, Fri Jul 14 13:47:55 2017 UTC revision 1180600 by barjac, Fri Dec 1 14:39:30 2017 UTC
# Line 17  Line 17 
17  %global efi_arch i386-efi  %global efi_arch i386-efi
18  %endif  %endif
19    
20  %global tarversion 2.02~beta3  %global tarversion 2.02
21  %global pc_arch i386-pc  %global pc_arch i386-pc
 %define git     10463  
 %define rel     8  
22    
23    # Use 'commits since release tag' from git describe as the version minor
24    # so we can sanely implement snapshots without reconfiguring the spec.
25    # Using './make_snapshot_patch' creates a patch with the %%{git} (minor)
26    # number in the name.
27    # Add the patch name as Patch0000: in SOURCES/grub.patches
28    %define git     0
29  Name:           grub2  Name:           grub2
30  Version:        2.02  Version:        2.02.%{git}
31  Release:        %mkrel -c git%{git} %{rel}  Release:        %mkrel 1
32  Summary:        Bootloader with support for Linux, Multiboot and more  Summary:        Bootloader with support for Linux, Multiboot and more
33  Group:          System/Boot and Init  Group:          System/Boot and Init
34  License:        GPLv3+ and GPLv2  License:        GPLv3+ and GPLv2
# Line 47  Source13:      MageiaLogo-Regular-20.pf2 Line 51  Source13:      MageiaLogo-Regular-20.pf2
51  Source14:       grub2-mageia-default.png  Source14:       grub2-mageia-default.png
52  Source15:       MageiaLogoFonts-bdf.tar.gz  Source15:       MageiaLogoFonts-bdf.tar.gz
53  Source20:       theme.txt  Source20:       theme.txt
54    Source21:       make_snapshot_patch
55    
56  #  #
57  # Fedora patches:  # Fedora patches:
# Line 61  Source20:      theme.txt Line 66  Source20:      theme.txt
66  Patch10001:     10001-Put-the-correct-.file-directives-in-our-.S-files.patch  Patch10001:     10001-Put-the-correct-.file-directives-in-our-.S-files.patch
67  Patch10002:     10002-Make-it-possible-to-enabled-build-id-sha1.patch  Patch10002:     10002-Make-it-possible-to-enabled-build-id-sha1.patch
68  Patch10004:     10004-Add-grub_qdprintf-grub_dprintf-without-the-file-lin.patch  Patch10004:     10004-Add-grub_qdprintf-grub_dprintf-without-the-file-lin.patch
69  Patch10005:     10005-Make-a-gdb-dprintf-that-tells-us-load-addresses.patch  ###Patch10005:  10005-Make-a-gdb-dprintf-that-tells-us-load-addresses.patch
70    
71  #  #
72  # Mga patches:  # Mga patches:
# Line 85  BuildRequires: automake Line 90  BuildRequires: automake
90  BuildRequires:  binutils  BuildRequires:  binutils
91  BuildRequires:  bison  BuildRequires:  bison
92  BuildRequires:  bzip2-devel  BuildRequires:  bzip2-devel
93  BuildRequires:  device-mapper-devel  BuildRequires:  pkgconfig(devmapper)
94  BuildRequires:  flex  BuildRequires:  flex
95  BuildRequires:  freetype2-devel  BuildRequires:  freetype2-devel
96  BuildRequires:  freetype-devel  BuildRequires:  freetype-devel
97  BuildRequires:  freetype-devel  BuildRequires:  freetype-devel
98  BuildRequires:  fuse-devel  BuildRequires:  pkgconfig(fuse)
99  BuildRequires:  gettext-devel  BuildRequires:  gettext-devel
100  BuildRequires:  git  BuildRequires:  git
101  BuildRequires:  glibc-static-devel  BuildRequires:  glibc-devel
102  BuildRequires:  help2man  BuildRequires:  help2man
103  BuildRequires:  liblzo-devel  BuildRequires:  liblzo-devel
104  BuildRequires:  libusb-devel  BuildRequires:  libusb-devel
105  BuildRequires:  ncurses-devel  BuildRequires:  pkgconfig(ncurses)
106  BuildRequires:  python  BuildRequires:  python
107  BuildRequires:  rpm-devel  BuildRequires:  rpm-devel
108  BuildRequires:  ruby  BuildRequires:  ruby
109  BuildRequires:  texinfo  BuildRequires:  texinfo
110    
 Conflicts:      %{name}-efi  
111  Provides:       bootloader  Provides:       bootloader
112  Provides:       grub2bootloader = %{version}-%{release}  Provides:       grub2bootloader = %{version}-%{release}
113  Requires:       %{name}-common = %{version}-%{release}  Requires:       %{name}-common = %{version}-%{release}
# Line 121  for more information. Line 125  for more information.
125  Summary:        Boot-loader with support for EFI  Summary:        Boot-loader with support for EFI
126  Group:          System/Boot and Init  Group:          System/Boot and Init
127    
 Conflicts:      %{name}  
128  Requires(post): efibootmgr  Requires(post): efibootmgr
129  Provides:       bootloader  Provides:       bootloader
130  Provides:       grub2bootloader = %{version}-%{release}  Provides:       grub2bootloader = %{version}-%{release}
# Line 132  This is the second version of the GRUB ( Line 135  This is the second version of the GRUB (
135  configurable and customizable boot-loader with modular architecture.  configurable and customizable boot-loader with modular architecture.
136  It supports a wide range of kernel formats, file systems, computer  It supports a wide range of kernel formats, file systems, computer
137  architectures and hardware devices.  architectures and hardware devices.
138  ************************** WARNING ************************  Refer to the README.Mageia file that is part of this package's documentation
139  Do not attempt to install this package on a system which is not  for more information.
 already using UEFI mode to boot. You cannot switch to UEFI mode by installing  
 this package, the system must be installed in UEFI mode to use it, when it  
 will be installed by default.  
140  %endif  %endif
141    
142  %ifarch %arm  %ifarch %arm
143  %package uboot  %package uboot
144  Summary:        Boot-loader with support for  UBOOT  Summary:        Boot-loader with support for  UBOOT
145  Group:  System/Boot and Init  Group:          System/Boot and Init
146    
147  Provides:       bootloader  Provides:       bootloader
148  Provides:       grub2bootloader = %{version}-%{release}  Provides:       grub2bootloader = %{version}-%{release}
# Line 251  pushd grub-%{tarversion} Line 251  pushd grub-%{tarversion}
251            --program-transform-name=s,grub,%{name},      \            --program-transform-name=s,grub,%{name},      \
252            --with-bootdir=/boot                          \            --with-bootdir=/boot                          \
253            --with-grubdir=/%{name}                       \            --with-grubdir=/%{name}                       \
254            CFLAGS=""            CFLAGS="-g"
255  %make_build  %make_build
256  popd  popd
257    
# Line 268  pushd grub-efi-%{tarversion} Line 268  pushd grub-efi-%{tarversion}
268            --program-transform-name=s,grub,%{name},      \            --program-transform-name=s,grub,%{name},      \
269            --with-bootdir=/boot                          \            --with-bootdir=/boot                          \
270            --with-grubdir=/%{name}                       \            --with-grubdir=/%{name}                       \
271            CFLAGS=""            CFLAGS="-g"
272  %make_build  %make_build
273  popd  popd
274  %endif  %endif
# Line 335  cp %{SOURCE9} %{buildroot}%{_datadir}/gr Line 335  cp %{SOURCE9} %{buildroot}%{_datadir}/gr
335    
336  popd  popd
337    
338    # Don't run debuginfo on all the grub modules and whatnot; it just
339    # rejects them, complains, and slows down extraction.
340    %global finddebugroot "%{_builddir}/%{?buildsubdir}/debug"
341    
342    %global dip RPM_BUILD_ROOT=%{finddebugroot} %{__debug_install_post}
343    %define __debug_install_post (                                          \
344            mkdir -p %{finddebugroot}/usr                                   \
345            mv ${RPM_BUILD_ROOT}/usr/bin %{finddebugroot}/usr/bin           \
346            mv ${RPM_BUILD_ROOT}/usr/sbin %{finddebugroot}/usr/sbin         \
347            %{dip}                                                          \
348            install -m 0755 -d %{buildroot}/usr/lib/ %{buildroot}/usr/src/  \
349            cp -al %{finddebugroot}/usr/lib/debug/                          \\\
350                    %{buildroot}/usr/lib/debug/                             \
351            cp -al %{finddebugroot}/usr/src/debug/                          \\\
352                    %{buildroot}/usr/src/debug/ )                           \
353            mv %{finddebugroot}/usr/bin %{buildroot}/usr/bin                \
354            mv %{finddebugroot}/usr/sbin %{buildroot}/usr/sbin              \
355            %{nil}
356    
357  %post  %post
358  if [ $1 -eq 2 ]; then  if [ $1 -eq 2 ]; then
359        touch /boot/grub2/updtrans        touch /boot/grub2/updtrans
# Line 423  fi Line 442  fi
442    
443  %ifnarch %arm  %ifnarch %arm
444  %files  %files
 %dir %{_libdir}/grub  
445  %dir %{_libdir}/grub/i386-pc  %dir %{_libdir}/grub/i386-pc
446  %{_libdir}/grub/i386-pc/*  %{_libdir}/grub/i386-pc/*
447  %endif  %endif
# Line 431  fi Line 449  fi
449  %ifnarch %arm  %ifnarch %arm
450  %files efi  %files efi
451  %doc README.efi  %doc README.efi
 %dir %{_libdir}/grub  
452  %dir %{_libdir}/grub/%{efi_arch}  %dir %{_libdir}/grub/%{efi_arch}
453  %{_libdir}/grub/%{efi_arch}/*  %{_libdir}/grub/%{efi_arch}/*
454  %endif  %endif
455    
456  %ifarch %arm  %ifarch %arm
457  %files uboot  %files uboot
 %dir %{_libdir}/grub  
458  %dir %{_libdir}/grub/%{efi_arch}  %dir %{_libdir}/grub/%{efi_arch}
459  %{_libdir}/grub/%{efi_arch}/*  %{_libdir}/grub/%{efi_arch}/*
460  %endif  %endif
# Line 453  fi Line 469  fi
469  %{_bindir}/update-grub  %{_bindir}/update-grub
470  %{_bindir}/update-grub2  %{_bindir}/update-grub2
471  %{_sbindir}/%{name}-*  %{_sbindir}/%{name}-*
472    %dir %{_libdir}/grub
473  %{_datarootdir}/bash-completion/completions/grub  %{_datarootdir}/bash-completion/completions/grub
474  %{_sysconfdir}/grub.d/README  %{_sysconfdir}/grub.d/README
475  %{_sysconfdir}/grub.d/00_header  %{_sysconfdir}/grub.d/00_header
# Line 464  fi Line 481  fi
481  %config(noreplace) %{_sysconfdir}/grub.d/40_custom  %config(noreplace) %{_sysconfdir}/grub.d/40_custom
482  %config(noreplace) %{_sysconfdir}/grub.d/41_custom  %config(noreplace) %{_sysconfdir}/grub.d/41_custom
483  %config(noreplace) %{_sysconfdir}/default/grub  %config(noreplace) %{_sysconfdir}/default/grub
484  %{_datadir}/grub  %{_datadir}/grub/*
 %{_datadir}/grub/unicode.pf2  
485  %config(noreplace) /boot/%{name}/custom.cfg  %config(noreplace) /boot/%{name}/custom.cfg
486  %{_mandir}/man1/%{name}-*.1*  %{_mandir}/man1/%{name}-*.1*
487  %{_mandir}/man8/%{name}-*.8*  %{_mandir}/man8/%{name}-*.8*

Legend:
Removed from v.1121657  
changed lines
  Added in v.1180600

  ViewVC Help
Powered by ViewVC 1.1.30