From 8cce3e4a6ade371c3ddc5c127a376d97c4fc4c89 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 3 Aug 2016 13:38:53 -0400 Subject: [PATCH] Update to git e79bca6, for qemu 2.7 --- .gitignore | 1 + openbios.spec | 23 ++++++++++++----------- sources | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 2fbfbdf..9fa6b89 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /openbios-*.tar.gz +/openbios-20160717-gite79bca6.tar.xz diff --git a/openbios.spec b/openbios.spec index 39ce15d..09fbb7e 100644 --- a/openbios.spec +++ b/openbios.spec @@ -1,12 +1,13 @@ -%global svnrel 1395 -%global tarver 1.1 +%global date 20160717 +%global hash e79bca6 # Disable unhelpful RPM test. %global _binaries_in_noarch_packages_terminate_build 0 Name: openbios -Version: %{tarver}.svn%{svnrel} -Release: 1%{?dist} +Version: %{date} +Release: 1.git%{hash}%{?dist} +Epoch: 1 Summary: OpenBIOS implementation of IEEE 1275-1994 License: GPLv2 @@ -15,12 +16,12 @@ BuildArch: noarch # There are no upstream tarballs. This tarball is prepared as follows: # -# svn export -r $svnrel \ -# svn://openbios.org/openbios/trunk/openbios-devel \ -# $name-$tarver -# tar czf $name-$tarver-svn${svnrel}.tar.gz $name-$tarver -# rm -r $name-$tarver -Source0: %{name}-%{tarver}-svn%{svnrel}.tar.gz +# git clone https://github.com/openbios/openbios +# cd openbios +# hash=`git log -1 --format='%h'` +# date=`git log -1 --format='%cd' --date=short | tr -d -` +# git archive --prefix openbios-${date}-git${hash}/ ${hash} | xz -7e > ../openbios-${date}-git${hash}.tar.xz +Source0: %{name}-%{date}-git%{hash}.tar.xz # Note that these packages build 32 bit binaries with the -m32 flag. BuildRequires: gcc-powerpc64-linux-gnu @@ -60,7 +61,7 @@ such as coreboot or U-Boot. %prep -%setup -q -n %{name}-%{tarver} +%setup -q -n %{name}-%{date}-git%{hash} %build diff --git a/sources b/sources index 1dab490..4687b16 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -08b5ac3ca85194b27ee0f26c1c696f71 openbios-1.1-svn1395.tar.gz +f9aa2f234d21890ee9712580f8735acf openbios-20160717-gite79bca6.tar.xz