]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package_rpm: correctly handle LICENSE_${PN}
authorRoss Burton <ross.burton@intel.com>
Mon, 22 Jan 2018 15:41:09 +0000 (15:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jan 2018 13:09:09 +0000 (13:09 +0000)
commitc6459ca4943312b7b00bf97160f29776d2a6a183
tree8e448c6d3235c1a494e4ee64749b3479531516c0
parent683d44656ea926b49433b0b055ca5dcad965b755
package_rpm: correctly handle LICENSE_${PN}

RPM spec files don't distinguish between spec-level license and the primary
package license, so always output the License for every package (defaulting to
the recipe-wide license) and use LICENSE_${PN} if set for the primary package.

As the primary use of package_rpm is to generate built packages, this fixes the
license fields in the generated packages.

[ YOCTO #12057 ]

(From OE-Core rev: 8c333e592fa7a3a887c792ac14e5cde2141b5d35)

(From OE-Core rev: 42e0de37d18f072dc5dcf5dc45cb441e4c2110d8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass