2007-01-16 00:11:20 +01:00
|
|
|
#
|
2011-09-20 09:50:40 +02:00
|
|
|
# spec file for package elilo
|
2007-01-16 00:11:20 +01:00
|
|
|
#
|
2014-07-31 17:33:24 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:11:20 +01:00
|
|
|
#
|
2008-10-22 17:48:56 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:11:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-12-20 13:48:05 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
%if 0%{?suse_version} < 1100
|
|
|
|
BuildRequires: binutils219
|
|
|
|
#!BuildIgnore: binutils
|
|
|
|
%endif
|
|
|
|
%endif
|
2013-10-24 20:32:17 +02:00
|
|
|
BuildRequires: gnu-efi >= 3.0u
|
|
|
|
BuildRequires: perl(Pod::Man)
|
2008-02-28 17:54:14 +01:00
|
|
|
|
2007-01-16 00:11:20 +01:00
|
|
|
Name: elilo
|
|
|
|
Summary: EFI Linux Loader
|
2013-10-24 20:32:17 +02:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:11:20 +01:00
|
|
|
Group: System/Boot
|
2013-10-25 16:33:44 +02:00
|
|
|
Version: 3.16
|
2013-10-24 20:32:17 +02:00
|
|
|
Release: 0
|
|
|
|
ExclusiveArch: ia64 %ix86 x86_64
|
|
|
|
PreReq: /usr/bin/perl perl(Pod::Usage) perl(Getopt::Long)
|
|
|
|
# "perl" must be in place *before* any package's 'pre' or 'post' section
|
|
|
|
# can (directly or indirectly) run '/sbin/elilo'! (bnc#842183)
|
2013-10-25 16:33:44 +02:00
|
|
|
%ifarch ia64
|
|
|
|
PreReq: perl(File::Compare)
|
|
|
|
%endif
|
2008-07-31 21:25:56 +02:00
|
|
|
Url: http://elilo.sourceforge.net/
|
2013-10-25 16:33:44 +02:00
|
|
|
#ource: http://downloads.sourceforge.net/elilo/elilo-3.16-all.tar.gz
|
|
|
|
Source: elilo-%{version}-source.tar.xz
|
2007-01-16 00:11:20 +01:00
|
|
|
Source1: elilo.pl
|
2008-12-15 12:28:48 +01:00
|
|
|
Source2: debian.eliloalt.man8
|
|
|
|
Source3: elilo.conf.man5
|
2013-10-25 16:33:44 +02:00
|
|
|
Source4: http://downloads.sourceforge.net/elilo/%{version}-release-notes.txt
|
2014-07-31 17:33:24 +02:00
|
|
|
Source9: elilo-rpmlintrc
|
2013-10-24 20:32:17 +02:00
|
|
|
Patch0: elilo-ipv6.diff
|
|
|
|
Patch1: elilo-max-conf.diff
|
|
|
|
Patch2: elilo-mac-conf.diff
|
|
|
|
Patch3: elilo-auto-add_efi_memmap.diff
|
|
|
|
Patch4: elilo-blocksize.diff
|
|
|
|
Patch5: elilo-text-mode.diff
|
2013-10-25 16:33:44 +02:00
|
|
|
Patch10: elilo-de-debianify.diff
|
|
|
|
Patch11: eliloalt-no-date.diff
|
2013-10-24 20:32:17 +02:00
|
|
|
|
2007-01-16 00:11:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The EFI Linux boot loader.
|
|
|
|
|
|
|
|
%prep
|
2013-10-25 16:33:44 +02:00
|
|
|
%setup -q -n %{name}-%{version}-source
|
2007-01-16 00:11:20 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2010-12-20 13:48:05 +01:00
|
|
|
%patch2 -p1
|
2007-02-07 00:28:27 +01:00
|
|
|
%patch3 -p1
|
2008-07-31 21:25:56 +02:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2013-10-25 16:33:44 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
2010-12-20 13:48:05 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl -pi -e 's{/usr/lib}{%{_libdir}}' Make.defaults
|
2013-10-24 20:32:17 +02:00
|
|
|
##################################################################
|
|
|
|
## DO NOT ADD RPM OPT FLAGS! THIS DOES NOT BUILD AGAINST GLIBC. ##
|
|
|
|
##################################################################
|
2013-10-25 16:33:44 +02:00
|
|
|
make OPTIMFLAGS="-fmessage-length=0"
|
2017-01-25 00:26:29 +01:00
|
|
|
perl -pe 's{\@EDITION\@}{%{version}};
|
2010-12-20 13:48:05 +01:00
|
|
|
s{\@LIBDIR\@}{%{_libdir}};
|
2008-10-27 23:57:25 +01:00
|
|
|
s{\@ARCH\@}{%{_target_cpu}};
|
|
|
|
' < %{SOURCE1} > elilo.pl &&
|
2007-01-16 00:11:20 +01:00
|
|
|
chmod 555 elilo.pl && touch -r %{SOURCE1} elilo.pl
|
2010-12-20 13:48:05 +01:00
|
|
|
! grep -F '%%{version}-%%{release}' elilo.pl
|
2007-01-16 00:11:20 +01:00
|
|
|
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
|
2009-07-20 10:40:54 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{_libdir}/efi $RPM_BUILD_ROOT/sbin
|
2010-12-20 13:48:05 +01:00
|
|
|
install -p -m 444 elilo.efi $RPM_BUILD_ROOT%{_libdir}/efi
|
2007-01-16 00:11:20 +01:00
|
|
|
install tools/eliloalt $RPM_BUILD_ROOT/sbin
|
|
|
|
install -p -m 555 elilo.pl $RPM_BUILD_ROOT/sbin/elilo
|
2008-11-23 08:33:33 +01:00
|
|
|
install -D -p -m 644 elilo.8 $RPM_BUILD_ROOT/usr/share/man/man8/elilo.8
|
2008-12-15 12:28:48 +01:00
|
|
|
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
|
2013-10-24 20:32:17 +02:00
|
|
|
install -p -m 644 %{SOURCE4} RELEASE-NOTES
|
2013-10-25 16:33:44 +02:00
|
|
|
diff -q docs/README.txt docs/elilo.txt && rm -f docs/README.txt
|
2007-01-16 00:11:20 +01:00
|
|
|
|
|
|
|
%post
|
2013-10-25 16:33:44 +02:00
|
|
|
if [ -r /etc/sysconfig/bootloader ]; then
|
|
|
|
. /etc/sysconfig/bootloader
|
|
|
|
if [ "$LOADER_TYPE" = "elilo" -a -r /etc/elilo.conf ]; then
|
|
|
|
/sbin/elilo -v || :
|
|
|
|
fi
|
|
|
|
fi
|
2007-01-16 00:11:20 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2013-10-24 20:32:17 +02:00
|
|
|
%doc README README.* TODO docs/*.txt RELEASE-NOTES
|
2009-07-20 10:40:54 +02:00
|
|
|
%{_libdir}/efi
|
2007-01-16 00:11:20 +01:00
|
|
|
/sbin/elilo
|
|
|
|
/sbin/eliloalt
|
2008-10-27 23:57:25 +01:00
|
|
|
/usr/share/man/man5/*
|
2008-11-23 08:33:33 +01:00
|
|
|
/usr/share/man/man8/*
|
2007-01-16 00:11:20 +01:00
|
|
|
|
2007-02-25 23:23:35 +01:00
|
|
|
%changelog
|