%define _host_cpu i386 %define defshell defaultmenu.sh Summary: grub - a Multiboot boot loader. Summary(ja): grub - マルチブートローダ Name: grub Version: 0.97 Release: 0vl6tpu0 License: GPL Group: System Environment/Base URL: http://www.gnu.org/software/grub/ Source0: ftp://alpha.gnu.org/gnu/grub/%{name}-%{version}.tar.gz Source1: %{defshell} Patch1: grub-gfxmenu-v8.diff ExclusiveArch: i386 i586 i686 BuildRoot: %{_tmppath}/%{name}-%{version}-root PreReq: install-info, sed, grep Requires: mktemp BuildRequires: ncurses-devel %description GNU GRUB is a Multiboot boot loader. It was derived from GRUB, GRand Unified Bootloader, which was originally designed and implemented by Erich Stefan Boleyn. Briefly, bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel software (such as the Hurd or the Linux). The kernel, in turn, initializes the rest of the operating system (usually GNU). %description -l ja GNU GRUB はマルチブートローダです。 この名前は GRand Unified Bootloader (壮大な 統一されたブート ローダ) に由来し、元来は Erich Stefan Boleyn によって、設計・ 実装されたものです。 手短に言えば、ブートローダとはコンピュータが起動する際に最初 に実行されるプログラムで、(Hurd や Linux のような) オペレー ティングシステムのカーネルをディスクから読み込んで制御を渡す 作業を担当します。カーネルは、それを受けて、オペレーティング システムの他の部分 (通常は GNU) を初期化します。 %prep %setup -q %patch1 -p0 %build %configure --disable-auto-linux-mem-opt make %install rm -rf $RPM_BUILD_ROOT %makeinstall %{__install} -p -m 644 docs/menu.lst %{buildroot}%{_libdir}/grub/%{_host_cpu}-%{_target_vendor} %{__install} -p -m 744 %{SOURCE1} %{buildroot}%{_libdir}/grub/%{_host_cpu}-%{_target_vendor} %clean rm -rf $RPM_BUILD_ROOT %post /sbin/install-info %{_infodir}/grub.info.gz %{_infodir}/dir /sbin/install-info %{_infodir}/multiboot.info.gz %{_infodir}/dir %{_libdir}/grub/%{_host_cpu}-%{_target_vendor}/%{defshell} %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/grub.info.gz %{_infodir}/dir /sbin/install-info --delete %{_infodir}/multiboot.info.gz %{_infodir}/dir fi %files %defattr(-,root,root) %doc COPYING INSTALL README AUTHORS BUGS ChangeLog NEWS THANKS TODO MAINTENANCE %{_bindir}/* %{_sbindir}/* %{_libdir}/grub %{_infodir}/*.info* %{_mandir}/man*/* %changelog * Thu Sep 07 2006 Daisuke SUZUKI 0.97-0vl6 - add PreReq: grep, sed for defaultmenu.sh * Tue Sep 5 2006 KANEKO Seiji 0.97-0vl5 - add initrd in menu.lst file created by defaultmenu.sh * Thu Jun 26 2006 KANEKO Seiji 0.97-0vl4 - fix date of previous changelog entry - escape macro of past changelog entries - change Source1: menu.lst.vine to defautmenu.sh - invoke defaultmenu.sh on %%post scriptlet * Thu Jun 21 2006 KANEKO Seiji 0.97-0vl3 - remove Requires: ncurses, gpm, bash * Thu May 12 2005 KANEKO Seiji 0.97-0vl2 - upstream release - add MAINTENANCE to %%doc - drop Patch0 (merged in upstream source) * Sun Mar 20 2005 KANEKO Seiji 0.96-0vl3 - savedefault patch from upstream CVS: http://savannah.gnu.org/cgi-bin/viewcvs/grub/grub/stage2/stage2.c.diff?r1=1.45&r2=1.46&diff_format=u stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty string. Reported by NATORI Shin . * Sun Feb 20 2005 KANEKO Seiji 0.96-0vl2 - upstream release - drop Patch0 (merged) - added sample file /usr/lib/grub/i386-pc/menu.lst.vine - change installation destination of menu.lst from %%datadir to %%libdir * Wed Jan 19 2005 KANEKO Seiji 0.95-0vl3 - applied Patch0 from upstream CVS: http://savannah.gnu.org/cgi-bin/viewcvs/grub/grub/util/grub-install.in.diff?r1=1.46&r2=1.47&diff_format=u util/grub-install.in (convert): Fix the sed statement for Linux. The expression was ambigious in some cases. * Wed Aug 18 2004 KANEKO Seiji 0.95-0vl2 - catch up to upstream release - delete %%_target_platform macro - delete gzip info files from %%install macro - add BuildRequires: ncurses-devel - add Requires: ncurses, gpm, mktemp, bash - add PreReq: install-info - %%configure with --disable-auto-linux-mem-opt option * Thu Jul 12 2001 - 0.90-0vl1: %%configure with a trick for _host_cpu, %%makeinstall * Tue Apr 24 2001 - 0.5.96-0vl1: use some macros * Wed Oct 11 2000 Yoshihiro Kajiki [0vl2] - build for Vine 2.1beta * Tue Oct 10 2000 Yoshihiro Kajiki [0vl1] - update to 0.5.95 and build for Vine 2.0 - add Japanese summary and description - based on grub-0.5.94-2, Kondara Zoo * Sun Jun 4 2000 AYUHANA Tomonori * /usr/doc/grub-*/menu.lst -> /usr/share/grub/i386-pc/menu.lst * Thu May 18 2000 AYUHANA Tomonori - upgrade to 0.5.93.1 to 0.5.94