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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-01-03 14:19:42 +01:00
parent 60d0bbefe2
commit 620e0cff6b
1 changed files with 3 additions and 1 deletions

View File

@ -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