accel-config: Use SPDX identifiers in spec file

Update spec file to use SPDX identifiers for licenses, set correct
license value, and clean up the comments. The spec currently is
listing licenses of dependencies as well as the accel-config code,
where the License field should only show the license of the code being
shipped in the package. This was cleaned up in the upstream spec file
templates at some point, but never migrated to here. There is an
effort taking place now as well to move Fedora packages to using SPDX
identifiers for licenses, so make the switch here. A PR has also been
sent to the upstream project to make use of the SPDX identifiers in
the spec file templates there as well.

Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
This commit is contained in:
Jerry Snitselaar 2023-05-30 17:35:36 -07:00
parent 553411fa97
commit c68cdcdd04

View File

@ -2,12 +2,9 @@
Name: accel-config
Version: 4.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Configure accelerator subsystem devices
# The entire source code is under GPLv2 except for accel-config
# library which is mostly LGPLv2.1, ccan/list which is BSD-MIT and
# the rest of ccan which is CC0.
License: GPLv2 and LGPLv2+ and MIT and CC0
License: GPL-2.0
URL: https://github.com/intel/%{project_name}
Source0: %{URL}/archive/%{name}-v%{version}.tar.gz
@ -35,7 +32,7 @@ Utility library for configuring the accelerator subsystem.
%package devel
Summary: Development files for libaccfg
License: LGPLv2+
License: LGPL-2.1-only
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
@ -45,9 +42,7 @@ developing applications that use %{name}.
%package libs
Summary: Configuration library for accelerator subsystem devices
# All source code of configuration library is LGPLv2.1, except
# ccan/list which is BSD-MIT and the rest of ccan/ which is CC0.
License: LGPLv2+ and MIT and CC0
License: LGPL-2.1-only
Requires: %{name}%{?_isa} = %{version}-%{release}
%description libs
@ -89,6 +84,9 @@ make check
%{_libdir}/pkgconfig/lib%{name}.pc
%changelog
* Tue May 30 2023 Jerry Snitselaar <jsnitsel@redhat.com> - 4.0-2
- Update spec file to use SPDX identifiers
* Sun Apr 23 2023 Jun Miao <jun.miao@intel.com> - 4.0-1
- Update to v4.0 release