Skip to content

Commit

Permalink
Assure upgradability: Increase QEMU's Epoch and fix SLOF's version (#4)
Browse files Browse the repository at this point in the history
CentOS's qemu-img packages sets its epoch[0] to 10, so in order to assure the
upgradability we need to make it at least 10 in our spec, but we decided to go
with 11 just for the sake of sense.

In SLOF's case, CentOS's SLOF uses the follow name/versioning standard:
 - SLOF-20150313-5.gitc89b0df.el7.noarch.rpm
to make our SLOF an upgrade option to that we need to change it from:
 - SLOF-0.1.git20160525-1.el7.centos.1.noarch.rpm
to
 - SLOF-20160525-1.el7.centos.1.noarch.rpm

All this is to adequate our packages to what rpm/yum does to compare versions,
following N-E-V-R-A[1]

[0]- https://fedoraproject.org/wiki/Packaging:Naming#Package_Versioning
[1]- http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions
  • Loading branch information
maurorodrigues authored Aug 10, 2016
1 parent 578fdbf commit f681c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SLOF/centOS/7.2/SLOF.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global gittag qemu-slof-%{gittagdate}

Name: SLOF
Version: 0.1.git%{gittagdate}
Version: %{gittagdate}
%define ibm_release %{?repo}.1
Release: 1%{?dist}%{?ibm_release}
Summary: Slimline Open Firmware
Expand All @@ -14,7 +14,7 @@ BuildArch: noarch

# There are no upstream tarballs. To prepare a tarball, do:
#
# git clone git://9.42.66.204/slof/slof-frobisher.git
# git clone https://github.com/open-power-host-os/slof.git
# cd slof-frobisher
# git checkout powerkvm-v3.1
# git archive --format=tar --prefix=SLOF-%{gittagdate}/ HEAD | gzip > ../SLOF-%{gittagdate}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion qemu/centOS/7.2/qemu.spec
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Version: 2.5
%define pkvm_release .pkvm3_1_1.%{?release_week}0%{?release_day}.%{?release_spin}

Release: 6%{?dist}%{?pkvm_release}
Epoch: 2
Epoch: 11
License: GPLv2+ and LGPLv2+ and BSD
Group: Development/Tools
URL: http://www.qemu.org/
Expand Down

0 comments on commit f681c36

Please sign in to comment.