spec: Unify with RHEL8 packaging changes
* Use published qemu-slof archives * Use the release date name as the package version * Different install location depending on fedora vs RHEL * A few other misc tweaks Patch from mrezanin Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
56ee88272d
commit
4f911648fc
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
/SLOF-*.tar.gz
|
/qemu-slof-*.tar.gz
|
||||||
|
41
SLOF.spec
41
SLOF.spec
@ -1,31 +1,27 @@
|
|||||||
%global gittagdate 20200327
|
|
||||||
%global gittagdate 20200717
|
%global gittagdate 20200717
|
||||||
|
%global gittagcommit e18ddad8
|
||||||
|
|
||||||
# Disable debuginfo because it is of no use to us.
|
# Disable debuginfo because it is of no use to us.
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%if 0%{?fedora:1}
|
%if 0%{?fedora:1}
|
||||||
%define cross 1
|
%define cross 1
|
||||||
|
%define targetdir qemu
|
||||||
|
%else
|
||||||
|
%define targetdir qemu-kvm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global gittag qemu-slof-%{gittagdate}
|
%global gittag qemu-slof-%{gittagdate}
|
||||||
|
|
||||||
Name: SLOF
|
Name: SLOF
|
||||||
Version: 0.1.git%{gittagdate}
|
Version: %{gittagdate}
|
||||||
Release: 2%{?dist}
|
Release: 3.git%{gittagcommit}%{?dist}
|
||||||
Summary: Slimline Open Firmware
|
Summary: Slimline Open Firmware
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.openfirmware.info/SLOF
|
URL: http://www.openfirmware.info/SLOF
|
||||||
|
|
||||||
|
Source0: https://github.com/aik/SLOF/archive/qemu-slof-%{gittagdate}.tar.gz
|
||||||
# There are no upstream tarballs. To prepare a tarball, do:
|
|
||||||
#
|
|
||||||
# git clone git://github.com/aik/SLOF.git
|
|
||||||
# cd SLOF
|
|
||||||
# git archive -o ../SLOF-{gittagdate}.tar.gz \
|
|
||||||
# --prefix=SLOF-{gittagdate}/ {gittag}
|
|
||||||
Source0: SLOF-%{gittagdate}.tar.gz
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?cross:1}
|
%if 0%{?cross:1}
|
||||||
@ -33,6 +29,7 @@ BuildArch: noarch
|
|||||||
BuildRequires: gcc-powerpc64-linux-gnu
|
BuildRequires: gcc-powerpc64-linux-gnu
|
||||||
%else
|
%else
|
||||||
ExclusiveArch: ppc64le
|
ExclusiveArch: ppc64le
|
||||||
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -41,7 +38,6 @@ BuildRequires: perl-interpreter
|
|||||||
BuildRequires: perl(Getopt::Std)
|
BuildRequires: perl(Getopt::Std)
|
||||||
BuildRequires: perl(Data::Dumper)
|
BuildRequires: perl(Data::Dumper)
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Slimline Open Firmware (SLOF) is initialization and boot source code
|
Slimline Open Firmware (SLOF) is initialization and boot source code
|
||||||
based on the IEEE-1275 (Open Firmware) standard, developed by
|
based on the IEEE-1275 (Open Firmware) standard, developed by
|
||||||
@ -56,26 +52,35 @@ separately. It is a dependency of qemu-system-ppc64.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n SLOF-%{gittagdate}
|
%setup -q -n SLOF-qemu-slof-%{gittagdate}
|
||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?cross:1}
|
%if 0%{?cross:1}
|
||||||
export CROSS="powerpc64-linux-gnu-"
|
export CROSS="powerpc64-linux-gnu-"
|
||||||
|
%else
|
||||||
|
export CROSS=""
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel:1}
|
||||||
|
# Workaround for problems on the TPS machines. They have a
|
||||||
|
# environment variable called "RELEASE" which somehow confuses the
|
||||||
|
# SLOF Makefiles which also use a variable named RELEASE.
|
||||||
|
unset RELEASE
|
||||||
|
%endif
|
||||||
|
|
||||||
make qemu %{?_smp_mflags} V=2
|
make qemu %{?_smp_mflags} V=2
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_datadir}/qemu
|
mkdir -p %{buildroot}%{_datadir}/%{targetdir}
|
||||||
cp -a boot_rom.bin %{buildroot}%{_datadir}/qemu/slof.bin
|
install -c -m 0644 boot_rom.bin %{buildroot}%{_datadir}/%{targetdir}/slof.bin
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%doc README
|
%doc README
|
||||||
%dir %{_datadir}/qemu
|
%dir %{_datadir}/%{targetdir}
|
||||||
%{_datadir}/qemu/slof.bin
|
%{_datadir}/%{targetdir}/slof.bin
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (SLOF-20200717.tar.gz) = f0d18ab68c02748e8893b1a8cc21d478d59a9e17aba392907e72155885158046ed2fa3591f37abcba27597c68ad00865923108f85904dad8d73273a62aca2a56
|
SHA512 (qemu-slof-20200717.tar.gz) = 8292a8f524d767971340cf3871f2bd880bc4f75c96f78dd39f076be1475512e11a08a634fccb0d4f0a1c2ad2c3272ef2d7046907ece3f5cbf8d36c41e09c516c
|
||||||
|
Loading…
Reference in New Issue
Block a user