forked from pool/elilo
117 lines
3.3 KiB
RPMSpec
117 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package elilo (Version 3.8)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: elilo
|
|
Summary: EFI Linux Loader
|
|
Version: 3.8
|
|
Release: 28
|
|
ExclusiveArch: ia64 %ix86 x86_64
|
|
Group: System/Boot
|
|
AutoReqProv: on
|
|
PreReq: /usr/bin/perl
|
|
License: GPL v2 or later
|
|
Url: http://elilo.sourceforge.net/
|
|
Source: http://dl.sourceforge.net/elilo/elilo-3.8.tar.gz
|
|
Source1: elilo.pl
|
|
Source2: debian.eliloalt.man8
|
|
Source3: elilo.conf.man5
|
|
Source9: rpmlintrc
|
|
Patch0: elilo-3.8-cvs20080127.diff
|
|
Patch1: elilo-MAC.diff
|
|
Patch2: elilo-spelling.diff
|
|
Patch3: elilo-longer-commandline.diff
|
|
Patch4: elilo-fix-possible-overflow.diff
|
|
Patch5: elilo-avoid-tab.diff
|
|
Patch6: elilo-bzimage-alloc.diff
|
|
Patch7: elilo-text-mode.diff
|
|
Patch8: elilo-fix-amd64-netboot.diff
|
|
Patch9: eliloalt-sysfs.diff
|
|
Patch10: elilo-strncpy-overflow-fix.diff
|
|
Patch11: elilo-cleanup.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gnu-efi >= 3.0e
|
|
|
|
%description
|
|
The EFI Linux boot loader.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Johannes Erdfelt <jerdfelt@valinux.com>
|
|
David Mosberger <davidm@hpl.hp.com>
|
|
Stephane Eranian <eranian@hpl.hp.com>
|
|
Brett Johnson <brett@hp.com>
|
|
|
|
%prep
|
|
%setup -q -n elilo
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
perl -pe 's{\@EDITION\@}{%{version}-%{release}};
|
|
s{\@LIBEXECDIR\@}{%{_libdir}};
|
|
s{\@ARCH\@}{%{_target_cpu}};
|
|
' < %{SOURCE1} > elilo.pl &&
|
|
perl -pi -e 's{/usr/lib}{%{_libdir}}' Make.defaults
|
|
chmod 555 elilo.pl && touch -r %{SOURCE1} elilo.pl
|
|
! fgrep '%%{version}-%%{release}' elilo.pl
|
|
|
|
%build
|
|
make OPTIMFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-stack-protector"
|
|
pod2man -s 8 -c "System Boot" -r "SuSE Linux" \
|
|
-n elilo -d "%{version}-%{release}" elilo.pl elilo.8
|
|
touch -r elilo.pl elilo.8
|
|
|
|
%install
|
|
install -d $RPM_BUILD_ROOT%{_libdir}/efi $RPM_BUILD_ROOT/sbin
|
|
install -m 444 elilo.efi $RPM_BUILD_ROOT%{_libdir}/efi
|
|
install tools/eliloalt $RPM_BUILD_ROOT/sbin
|
|
install -p -m 555 elilo.pl $RPM_BUILD_ROOT/sbin/elilo
|
|
install -D -p -m 644 elilo.8 $RPM_BUILD_ROOT/usr/share/man/man8/elilo.8
|
|
install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/man/man8/eliloalt.8
|
|
install -D -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/usr/share/man/man5/elilo.conf.5
|
|
|
|
%clean
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
#/sbin/elilo -v || :
|
|
echo "Please run /sbin/elilo!"
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc README README.* TODO docs/*.txt
|
|
%{_libdir}/efi
|
|
/sbin/elilo
|
|
/sbin/eliloalt
|
|
/usr/share/man/man5/*
|
|
/usr/share/man/man8/*
|
|
|
|
%changelog
|