Remove unnecessary definition of %license

These were only needed for RHEL-6:
https://access.redhat.com/documentation/en-us/red_hat_software_collections/3/html/packaging_guide/sect-differences_between_red_hat_enterprise_linux_6_and_7

Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
This commit is contained in:
Ondrej Mosnáček 2023-09-05 11:48:21 +02:00
parent 13aacd8531
commit e6ed279ca1
No known key found for this signature in database
GPG Key ID: BDE08B7A0C57B343

View File

@ -90,7 +90,6 @@ cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/
%if %{BuildMainPackage} %if %{BuildMainPackage}
%files %files
%doc ChangeLog %doc ChangeLog
%{!?_licensedir:%global license %%doc}
%license LICENSE %license LICENSE
%{_bindir}/cloud-localds %{_bindir}/cloud-localds
%{_bindir}/write-mime-multipart %{_bindir}/write-mime-multipart
@ -107,7 +106,6 @@ cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/
# Files for the growpart subpackage # Files for the growpart subpackage
%files growpart %files growpart
%doc ChangeLog %doc ChangeLog
%{!?_licensedir:%global license %%doc}
%license LICENSE %license LICENSE
%{_bindir}/growpart %{_bindir}/growpart
%doc %{_mandir}/man1/growpart.* %doc %{_mandir}/man1/growpart.*