Sisyphus repository
Last update: 23 september 2019 | SRPMs: 17473 | Visits: 15148074
en ru br
ALT Linux repos
S:2.02-alt18
D:0.97-alt2
5.0: 0.97-alt5
4.1: 0.97-alt4.M41.1
3.0: 0.95-alt1

Group :: System/Kernel and hardware
RPM: grub

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: grub
Version: 0.97
Release: alt5

Summary: GRand Unified Bootloader
Group: System/Kernel and hardware
License: GPL
URL: http://www.gnu.org/software/grub/grub.en.html

ExclusiveArch: %ix86

Packager: Sir Raorn <raorn at altlinux.ru>

Source: ftp://alpha.gnu.org/gnu/grub/%name-%version.tar
Patch: %name-%version-%release.patch

Provides: %name-doc = %version, %name-graph = %version
Obsoletes: %name-doc, %name-graph

# Automatically added by buildreq on Mon Feb 25 2008

BuildRequires: libncurses-devel tetex-latex

##BuildRequires: libncurses-devel reiser4progs-minimal-devel tetex-latex


%package utils
Group: System/Kernel and hardware
Summary: Additional utilites for %name

%description
GNU GRUB is a multiboot boot loader. It was derived from GRUB. It is an
attempt to produce a boot loader for IBM PC-compatible machines that
has both the ability to be friendly to beginning or otherwise
nontechnically interested users and the flexibility to help experts in
diverse environments. It is compatible with Free/Net/OpenBSD and Linux.
It supports Win 9x/NT and OS/2 via chainloaders. It has a menu
interface and a command line interface.
It implements the Multiboot standard, which allows for flexible loading
of multiple boot images (needed for modular kernels such as the GNU
Hurd).

%description utils
Additional utilites for %name

%prep
%setup
%patch -p1

%build
%autoreconf

%define _optlevel s
%add_optflags -W -Wall -Wpointer-arith
%add_optflags -fno-stack-protector -fno-strict-aliasing -minline-all-stringops
%ifarch x86_64
%add_optflags -m32 -fno-asynchronous-unwind-tables
%endif  
%configure \
 --bindir=/bin --sbindir=/sbin \
 --disable-auto-linux-mem-opt --enable-diskless \
 --enable-{3c50{3,7},3c5{0,2}9,3c595,3c90x,cs89x0,davicom,depca,eepro{,100},epic100} \
 --enable-{exos205,lance,ne,ne2100,ni{50,52,65}00,ns8390} \
 --enable-{rtl8139,sk-g16,smc9000,tiara,tulip,via-rhine,w89c840,wd}
%make_build
(cd stage2; mv nbgrub pxegrub ..)
mv stage2/stage2{,.netboot}
%make_build clean
%configure \
 --bindir=/bin --sbindir=/sbin \
 --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} --datadir=%{_datadir} \
 --libexecdir=%{_libexecdir} \
 --disable-auto-linux-mem-opt
%make_build
%make_build -C docs dvi

%install
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot/boot/grub/pictures
ln -sfn . %buildroot/boot/boot
install -p {nb,pxe}grub stage2/stage2{,.netboot} %buildroot/boot/grub
install -m755 -p grubonce %buildroot/sbin
mv %buildroot%_libexecdir/grub/* %buildroot/boot/grub
rm -rf %buildroot%_libexecdir/grub
ln -sfn ../../boot/grub %buildroot%_libexecdir

%post
if [ -x /usr/sbin/detectloader -a -f /proc/partitions ]; then
 LOADER=$(/usr/sbin/detectloader)
 if [ "$LOADER" = "GRUB" ]; then
   if [ -s /etc/sysconfig/grub ]; then
     # This file should be created by (future) alterator-grub
     /sbin/grub --batch < /etc/sysconfig/grub > /dev/null
   elif [ -s /boot/grub/install.sh ]; then
     # Old grub installation
     sh /boot/grub/install.sh > /dev/null
   else
     cat <<EOF >&2
Please install GRUB manually.
EOF
   fi
 fi
fi

[ -s /boot/grub/default ] || /sbin/grub-set-default default

%install_info %name.info
%install_info multiboot.info

%preun
%uninstall_info %name.info
%uninstall_info multiboot.info

%files
%doc BUGS NEWS TODO README THANKS AUTHORS INSTALL ChangeLog COPYING docs/menu.lst
%dir /boot/grub
%dir /boot/boot
/boot/grub/*stage*
/boot/grub/nbgrub
/boot/grub/pxegrub
%_infodir/*
%_mandir/*/*
/sbin/*
/bin/*
%exclude /sbin/grub-terminfo
%dir %_libexecdir/grub

%files utils
/sbin/grub-terminfo

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin