Commit d6bdb446 for xz
commit d6bdb446f8da47ac2af8c309de8e7c80beae850e
Author: Lasse Collin <lasse.collin@tukaani.org>
Date: Sun Jan 25 13:30:46 2026 +0200
liblzma: Add the "License" property to liblzma.pc
The "License" property is a pkgconf extension. See pc(5).
pkg-config 0.29.2 (2017) ignores unrecognized properties so this
commit shouldn't create compatibility issues.
pkgconf provides bomtool which uses the "License" property to generate
a software bill of materials. In pkgconf.git there is spdxtool for the
same task but with different output format.
The pkgconf extensions "Copyright" and "Maintainer" would also be
used by bomtool and spdxtool, but I don't want to add those properties
at least for now.
Co-authored-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Closes: https://github.com/tukaani-project/xz/pull/178
diff --git a/src/liblzma/liblzma.pc.in b/src/liblzma/liblzma.pc.in
index a432992b..5efb4945 100644
--- a/src/liblzma/liblzma.pc.in
+++ b/src/liblzma/liblzma.pc.in
@@ -8,6 +8,7 @@ includedir=@includedir@
Name: liblzma
Description: General purpose data compression library
+License: 0BSD
URL: @PACKAGE_URL@
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}