SHA256
1
0
forked from pool/elilo
elilo/elilo.spec

243 lines
7.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package elilo (Version 3.8)
#
# Copyright (c) 2008 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: 24
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: eliloalt.debian.man8
Source3: 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: eliloalt-sysfs.diff
Patch7: elilo-uEFI-no-alloc_kmem.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
perl -pe 's{\@EDITION\@}{%{version}-%{release}};
s{\@LIBEXECDIR\@}{%{_libexecdir}};
s{\@ARCH\@}{%{_target_cpu}};
' < %{SOURCE1} > elilo.pl &&
perl -pi -e 's{/usr/lib}{%{_libexecdir}}' Make.defaults
chmod 555 elilo.pl && touch -r %{SOURCE1} elilo.pl
! fgrep '%%{version}-%%{release}' elilo.pl
cp --preserve=time %{SOURCE2} eliloalt.8
%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%{_libexecdir}/efi $RPM_BUILD_ROOT/sbin
install -m 444 elilo.efi $RPM_BUILD_ROOT%{_libexecdir}/efi
install tools/eliloalt $RPM_BUILD_ROOT/sbin
install -p -m 555 elilo.pl $RPM_BUILD_ROOT/sbin/elilo
%if 0
install -D -p -m 644 elilo.5 $RPM_BUILD_ROOT/usr/share/man/man5/elilo.conf.5
%endif
install -D -p -m 644 elilo.8 $RPM_BUILD_ROOT/usr/share/man/man8/elilo.8
install -D -p -m 644 eliloalt.8 $RPM_BUILD_ROOT/usr/share/man/man8/eliloalt.8
%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
%{_libexecdir}/efi
/sbin/elilo
/sbin/eliloalt
%if 0
/usr/share/man/man5/*
%endif
/usr/share/man/man8/*
%changelog
* Fri Nov 21 2008 rw@suse.de
- elilo.efi
* Significant code cleanup from CVS. (bnc#443565)
* First attempt to work around firmware problem. (bnc#437486)
- elilo.pl
* Improve removal of obsolete files. (bnc#398416)
- eliloalt
* Support sysfs interface. (bnc#440489)
* Provide man page. (bnc#440197)
* Mon Oct 27 2008 rw@suse.de
- elilo.pl
* Mask 'relocatable' (unless supported). (bnc#438276)
* Remove old files from target directory. (bnc#398416)
* Fri Oct 17 2008 olh@suse.de
- elilo.spec
* Add ExclusiveArch ia64 x86 x86_64
* Thu Jul 31 2008 rw@suse.de
- elilo.efi
* Update to final elilo-3.8 for uEFI support. (fate#301882)
- elilo.pl
* Preserve time-stamps but not permissions. (bnc#394331)
* Unconditionally strip deprecated 'read-only' from 'elilo.conf'.
* Support '$LIBEXECDIR' to please uEFI/x86_64 and
relocate efi-binaries from 'elilo' to 'efi'. (fate#301882)
* Thu Feb 28 2008 ro@suse.de
- elilo.spec
* No strip for elilo.efi during install (unknown binary format).
* Sat May 26 2007 schwab@suse.de
- elilo.spec
* Revert last change.
* Sat May 26 2007 ro@suse.de
- elilo.spec
* Added gnu-efi-devel to buildreq.
* Wed May 09 2007 rw@suse.de
- elilo.efi
* Reduce non-"command line" strings back to 512. (#256676)
* Fix another buffer overrun. (#256676)
* Fri Feb 23 2007 schwab@suse.de
- elilo.spec
* Disable stack protector.
* Tue Feb 06 2007 bwalle@suse.de
- elilo.efi
* Increase command line size to 2048. (#242702)
* Fri Nov 10 2006 schwab@suse.de
- elilo.efi
* Fix spelling.
* Thu Feb 02 2006 rw@suse.de
- elilo.efi
* Update to final 3.6
(Fixed vmcode_name initialization in textmenu chooser)
* Wed Jan 25 2006 mls@suse.de
- elilo.spec
* Converted neededforbuild to BuildRequires.
* Fri Jan 20 2006 schwab@suse.de
- elilo.spec
* Don't strip binaries.
* Mon Jan 09 2006 rw@suse.de
- elilo.efi
* Fix vmcode_name initialization in textmenu chooser. (#140519)
* Fri Dec 09 2005 rw@suse.de
- elilo.pl
* Fix formatting of man-page.
* Wed Dec 07 2005 rw@suse.de
- elilo.efi
* Update to 3.5-pre2.
- elilo.pl
* Make "best effort" instead of giving up early.
* Sat Aug 13 2005 schwab@suse.de
- elilo.pl
* Check that the default label is defined.
* Fri Aug 05 2005 schwab@suse.de
- elilo.pl
* Barf on duplicate labels.
* Wed Apr 13 2005 schwab@suse.de
- elilo.efi
* Fix for new assembler.
* Sat Feb 19 2005 schwab@suse.de
- elilo.efi
* Clear extra memory in initrd block so that initramfs works.
* Wed Oct 06 2004 rw@suse.de
- elilo.efi
* Fix simple-chooser (#45493)
* Thu May 27 2004 rw@suse.de
- elilo.pl
* Make all image-objects (kernel/initrd) *optional* by default (#41315)
* Mon Feb 23 2004 rw@suse.de
- elilo.efi
* Use '$RPM_OPT_FLAGS' with '-fno-strict-aliasing' appended.
- elilo.pl
* Take care of FPSWA.
* Try to avoid copying the same files more than once.
* Mon Nov 24 2003 rw@suse.de
- Provide '/sbin/elilo' to simplify separation of '/boot' and the
EFI FAT-partition (bug #21644)
- Move 'elilo.efi' to '/usr/lib/elilo'
* Mon Sep 01 2003 schwab@suse.de
- Update to final 3.4 to remove extraneous debug output.
* Tue Aug 26 2003 rw@suse.de
- Add patch from Greg Edwards (SGI) (#29340)
* Fri Aug 22 2003 schwab@suse.de
- Update to elilo 3.4.
* Improved netbooting.
* Tue Jun 10 2003 schwab@suse.de
- Add fix for netbooting.
* Tue Apr 08 2003 schwab@suse.de
- Add two fixes from author.
* Thu Oct 17 2002 schwab@suse.de
- Update to elilo 3.3a.
* More memory management bugs fixed.
* Fri Sep 13 2002 schwab@suse.de
- Fix %%post.
- Fix eliloalt.
* Wed Sep 11 2002 schwab@suse.de
- Fix buffer overrun.
* Mon Sep 02 2002 schwab@suse.de
- Move elilo.conf to /boot/efi/SuSE.
* Tue Aug 27 2002 schwab@suse.de
- Update to elilo 3.3.
* Thu May 16 2002 schwab@suse.de
- Move boot loader to /boot/efi/SuSE.
* Tue Mar 05 2002 schwab@suse.de
- Update to elilo 3.2.
- Make elilo.conf and startup.nsh %%ghost files.
* Sat Aug 18 2001 schwab@suse.de
- Update to elilo 3.1.
* Wed Jul 25 2001 schwab@suse.de
- Add two patches from author.
* Wed Jul 18 2001 schwab@suse.de
- Split from gnu-efi packages.
- New version 3.0.