summaryrefslogtreecommitdiff
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-05-19 10:17:43 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-27 17:07:57 +0100
commitc2872315905fcdf6e4bf11fe96e5ca62af3475f8 (patch)
tree6d964e096e359533beac5e17e72431ebabc220d0 /meta/classes/package_rpm.bbclass
parentb1f6120c04731d3d66f322ce550b0d223c118dab (diff)
downloadopenembedded-core-c2872315905fcdf6e4bf11fe96e5ca62af3475f8.tar.gz
openembedded-core-c2872315905fcdf6e4bf11fe96e5ca62af3475f8.tar.bz2
openembedded-core-c2872315905fcdf6e4bf11fe96e5ca62af3475f8.tar.xz
openembedded-core-c2872315905fcdf6e4bf11fe96e5ca62af3475f8.zip
classes/package_xxx.class: Use PKGE/PKGV/PKGR.
Use PKGE/PKGV/PKGR to build various package feed in tasks of pacakge_write_xxx. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 1d8c68633..3df66cc16 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -330,7 +330,7 @@ python write_specfile () {
if dep and ver:
if '-' in ver:
subd = oe.packagedata.read_subpkgdata_dict(dep, d)
- pv = subd['PV']
+ pv = subd['PKGV']
reppv = pv.replace('-', '+')
ver = ver.replace(pv, reppv)
newdeps_dict[dep] = ver
@@ -383,9 +383,9 @@ python write_specfile () {
# Construct the SPEC file...
srcname = bb.data.getVar('PN', d, True)
srcsummary = (bb.data.getVar('SUMMARY', d, True) or bb.data.getVar('DESCRIPTION', d, True) or ".")
- srcversion = bb.data.getVar('PV', d, True).replace('-', '+')
- srcrelease = bb.data.getVar('PR', d, True)
- srcepoch = (bb.data.getVar('PE', d, True) or "")
+ srcversion = bb.data.getVar('PKGV', d, True).replace('-', '+')
+ srcrelease = bb.data.getVar('PKGR', d, True)
+ srcepoch = (bb.data.getVar('PKGE', d, True) or "")
srclicense = bb.data.getVar('LICENSE', d, True)
srcsection = bb.data.getVar('SECTION', d, True)
srcmaintainer = bb.data.getVar('MAINTAINER', d, True)
@@ -438,9 +438,9 @@ python write_specfile () {
splitname = pkgname
splitsummary = (bb.data.getVar('SUMMARY', localdata, True) or bb.data.getVar('DESCRIPTION', localdata, True) or ".")
- splitversion = (bb.data.getVar('PV', localdata, True) or "").replace('-', '+')
- splitrelease = (bb.data.getVar('PR', localdata, True) or "")
- splitepoch = (bb.data.getVar('PE', localdata, True) or "")
+ splitversion = (bb.data.getVar('PKGV', localdata, True) or "").replace('-', '+')
+ splitrelease = (bb.data.getVar('PKGR', localdata, True) or "")
+ splitepoch = (bb.data.getVar('PKGE', localdata, True) or "")
splitlicense = (bb.data.getVar('LICENSE', localdata, True) or "")
splitsection = (bb.data.getVar('SECTION', localdata, True) or "")
splitdescription = (bb.data.getVar('DESCRIPTION', localdata, True) or ".")