Use %license for the LICENSE file

From the packaging guidelines:
> If the source package includes the text of the license(s) in its own
> file, then that file, containing the text of the license(s) for the
> package must be included in %license.
https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_license_text
This commit is contained in:
Matt Coleman 2021-06-11 19:30:49 +00:00 committed by Richard W.M. Jones
parent a4930efa47
commit 9162125da9
1 changed files with 8 additions and 4 deletions

View File

@ -10,7 +10,7 @@
Name: hivex Name: hivex
Version: 1.3.20 Version: 1.3.20
Release: 4%{?dist} Release: 5%{?dist}
Summary: Read and write Windows Registry binary hive files Summary: Read and write Windows Registry binary hive files
License: LGPLv2 License: LGPLv2
@ -237,7 +237,8 @@ if ! make check -k; then
fi fi
%files -f %{name}.lang %files -f %{name}.lang
%doc README LICENSE %doc README
%license LICENSE
%{_bindir}/hivexget %{_bindir}/hivexget
%{_bindir}/hivexml %{_bindir}/hivexml
%{_bindir}/hivexsh %{_bindir}/hivexsh
@ -248,7 +249,7 @@ fi
%files devel %files devel
%doc LICENSE %license LICENSE
%{_libdir}/libhivex.so %{_libdir}/libhivex.so
%{_mandir}/man3/hivex.3* %{_mandir}/man3/hivex.3*
%{_includedir}/hivex.h %{_includedir}/hivex.h
@ -257,7 +258,7 @@ fi
%if !0%{?rhel} %if !0%{?rhel}
%files static %files static
%doc LICENSE %license LICENSE
%{_libdir}/libhivex.a %{_libdir}/libhivex.a
%endif %endif
@ -302,6 +303,9 @@ fi
%changelog %changelog
* Fri Jun 11 2021 Matt Coleman <matt@datto.com> - 1.3.20-5
- Mark LICENSE as a license file
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.20-4 * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.20-4
- Rebuilt for Python 3.10 - Rebuilt for Python 3.10