From 620e0cff6ba9e0d21396e77f58b77c89b0b164b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 3 Jan 2022 14:19:42 +0100 Subject: [PATCH] Install only license files relevant to the effective license We installed all the license files for the licenses used in the sources (as %doc), but that doesn't seem useful. --- systemd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index a7d4e59..87ff2d3 100644 --- a/systemd.spec +++ b/systemd.spec @@ -984,8 +984,10 @@ fi %files -f %{name}.lang -f .file-list-rest %doc %{_pkgdocdir} -%exclude %{_pkgdocdir}/LICENSE.* +%exclude %{_pkgdocdir}/LICENSE* +# Only the licenses texts for the licenses in License line are included. %license LICENSE.GPL2 LICENSE.LGPL2.1 +%license LICENSES/MIT.txt %ghost %dir %attr(0755,-,-) /etc/systemd/system/basic.target.wants %ghost %dir %attr(0755,-,-) /etc/systemd/system/bluetooth.target.wants %ghost %dir %attr(0755,-,-) /etc/systemd/system/default.target.wants