From 620e0cff6ba9e0d21396e77f58b77c89b0b164b3 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 04 2022 17:27:08 +0000 Subject: 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. --- 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