|
|
@ -1,12 +1,13 @@
|
|
|
|
%global svnrel 1395
|
|
|
|
%global date 20160717
|
|
|
|
%global tarver 1.1
|
|
|
|
%global hash e79bca6
|
|
|
|
|
|
|
|
|
|
|
|
# Disable unhelpful RPM test.
|
|
|
|
# Disable unhelpful RPM test.
|
|
|
|
%global _binaries_in_noarch_packages_terminate_build 0
|
|
|
|
%global _binaries_in_noarch_packages_terminate_build 0
|
|
|
|
|
|
|
|
|
|
|
|
Name: openbios
|
|
|
|
Name: openbios
|
|
|
|
Version: %{tarver}.svn%{svnrel}
|
|
|
|
Version: %{date}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1.git%{hash}%{?dist}
|
|
|
|
|
|
|
|
Epoch: 1
|
|
|
|
Summary: OpenBIOS implementation of IEEE 1275-1994
|
|
|
|
Summary: OpenBIOS implementation of IEEE 1275-1994
|
|
|
|
|
|
|
|
|
|
|
|
License: GPLv2
|
|
|
|
License: GPLv2
|
|
|
@ -15,12 +16,12 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
# There are no upstream tarballs. This tarball is prepared as follows:
|
|
|
|
# There are no upstream tarballs. This tarball is prepared as follows:
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# svn export -r $svnrel \
|
|
|
|
# git clone https://github.com/openbios/openbios
|
|
|
|
# svn://openbios.org/openbios/trunk/openbios-devel \
|
|
|
|
# cd openbios
|
|
|
|
# $name-$tarver
|
|
|
|
# hash=`git log -1 --format='%h'`
|
|
|
|
# tar czf $name-$tarver-svn${svnrel}.tar.gz $name-$tarver
|
|
|
|
# date=`git log -1 --format='%cd' --date=short | tr -d -`
|
|
|
|
# rm -r $name-$tarver
|
|
|
|
# git archive --prefix openbios-${date}-git${hash}/ ${hash} | xz -7e > ../openbios-${date}-git${hash}.tar.xz
|
|
|
|
Source0: %{name}-%{tarver}-svn%{svnrel}.tar.gz
|
|
|
|
Source0: %{name}-%{date}-git%{hash}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
# Note that these packages build 32 bit binaries with the -m32 flag.
|
|
|
|
# Note that these packages build 32 bit binaries with the -m32 flag.
|
|
|
|
BuildRequires: gcc-powerpc64-linux-gnu
|
|
|
|
BuildRequires: gcc-powerpc64-linux-gnu
|
|
|
@ -60,7 +61,7 @@ such as coreboot or U-Boot.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{tarver}
|
|
|
|
%setup -q -n %{name}-%{date}-git%{hash}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|