grub2.spec
Bartosz Świątek
shadzik w gmail.com
Nie, 14 Gru 2008, 12:15:35 CET
W dniu 14 grudnia 2008 12:06 użytkownik Daniel Dawid Majewski
<light-i w o2.pl> napisał:
> Doczepiłem jeszcze niepakietowane pliki. Prośba o komentarze.
> --
> Pozdrawiam,
> Daniel Dawid Majewski
> jabber:light-i/jid.pl
>
> --- grub2.spec.oryg 2008-12-14 09:15:21.000000000 +0100
> +++ grub2.spec 2008-12-14 12:03:29.000000000 +0100
> @@ -24,6 +24,7 @@
> Group: Base
> Source0: ftp://alpha.gnu.org/gnu/grub/grub-%{version}.tar.gz
> # Source0-md5: 0a40cd2326a4e84d1978060f2e02a956
> +Patch0: %{name}-parser.patch
> URL: http://www.gnu.org/software/grub/grub-2.en.html
> BuildRequires: autoconf >= 2.53
> BuildRequires: automake
> @@ -34,8 +35,8 @@
> BuildRequires: lzo-devel >= 1.0.2
> %endif
> %ifarch %{x8664}
> -BuildRequires: gcc-multilib
> BuildRequires: /usr/lib/libc.so
> +BuildRequires: gcc-multilib
> %endif
> BuildRequires: ncurses-devel
> #BuildRequires: ruby >= 1.6
> @@ -56,7 +57,8 @@
> %define _bindir %{_sbindir}
> %define _libdir /boot
> %define _datadir %{_libdir}/%{name}
> -
> +%define _confdir /etc/grub.d/
> +%define _legcdir %{_libdir}/grub
> %description
> GRUB is a GPLed bootloader intended to unify bootloading across x86
> operating systems. In addition to loading the Linux and *BSD kernels,
> @@ -103,6 +105,7 @@
>
> %prep
> %setup -q -n grub-%{version}
> +%patch0 -p1
> sed -i -e 's#AC_INIT(GRUB,#AC_INIT(GRUB2,#g' configure.ac
> sed -i -e 's,/boot/grub,%{_datadir},' \
> ./include/grub/util/misc.h ./util/i386/efi/grub-install.in ./util/i386/pc/grub-install.in \
> @@ -124,7 +127,6 @@
> AWK=gawk \
> %configure \
> BUILD_CFLAGS="$CFLAGS"
> -
> %{__make} -j1 \
> BUILD_CFLAGS="$CFLAGS" \
> %if %{with static}
> @@ -136,17 +138,20 @@
> %endif
> grub_emu_LDFLAGS="-s -static -lncurses -ltinfo" \
> %endif
> - pkgdatadir="%{_libdir}/%{name}"
> +%if %{with grub-emu}
> + grub_setup_LDFLAGS="%{grub_setup_LDFLAGS} --enable-grub-emu"
> +%endif
> +pkgdatadir="%{_datadir}"
>
> %install
> rm -rf $RPM_BUILD_ROOT
>
> %{__make} install \
> DESTDIR=$RPM_BUILD_ROOT \
> - pkgdatadir="%{_libdir}/%{name}"
> +pkgdatadir="%{_datadir}"
>
> %ifarch ppc
> -install grubof $RPM_BUILD_ROOT%{_libdir}/%{name}
> +install grubof $RPM_BUILD_ROOT%{_datadir}
> %endif
> %ifarch %{ix86} %{x8664}
> mv -f $RPM_BUILD_ROOT%{_sbindir}/{grub-install,%{name}-install}
> @@ -158,9 +163,16 @@
> %files
> %defattr(644,root,root,755)
> %doc AUTHORS ChangeLog NEWS README THANKS TODO
> -%{_libdir}/%{name}
> +%{_datadir}
> %attr(755,root,root) %{_sbindir}/grub-mkimage
> %attr(755,root,root) %{_sbindir}/grub2-install
> +%attr(755,root,root) %{_sbindir}/grub-mkrescue
> +%attr(755,root,root) %{_sbindir}/update-grub
> +%attr(755,root,root) %{_legcdir}/update-grub_lib
No niech będzie. A to vvvvvvvvvvv?
> +%attr(755,root,root) %{_confdir}/00_header
> +%attr(755,root,root) %{_confdir}/10_hurd
> +%attr(755,root,root) %{_confdir}/10_linux
> +%attr(755,root,root) %{_confdir}/README
My to faktycznie potrzebujemy?
Więcej informacji o liście dyskusyjnej pld-devel-pl