From 36fc4f2f37601fbd0f8b85f8cef76170dc0efca1 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 18 Oct 2022 08:27:01 -0400 Subject: [PATCH] Update License to SPDX --- libinstpatch.spec | 54 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/libinstpatch.spec b/libinstpatch.spec index a6de383..4a341a7 100644 --- a/libinstpatch.spec +++ b/libinstpatch.spec @@ -20,18 +20,28 @@ Release: %autorelease Summary: Instrument file software library URL: http://www.swamiproject.org/ -# The entire source is LGPLv2 except: +# The entire source is LGPL-2.1-only, except: +# • The following are LicenseRef-Fedora-Public-Domain: +# - libinstpatch/md5.{c,h} +# The algorithm is due to Ron Rivest. This code was +# written by Colin Plumb in 1993, no copyright is claimed. +# This code is in the public domain; do with it what you wish. +# - examples/create_sf2.c +# Use this example as you please (public domain) +# - examples/split_sfont.c +# Public domain use as you please # -# Public Domain: -# libinstpatch/md5.{c,h} -# examples/* -# -# The resulting effective license is LGPLv2. -License: LGPLv2 # Additionally, the following unused files are removed in %%prep: +# • The following are GPL-2.0-only: +# - utils/ipatch_convert.c # -# GPLv2: -# utils/ipatch_convert.c +# …and the following files are used only for build-time testing and do not +# contribute to the licenses of the binary RPMs: +# • The following are LicenseRef-Fedora-Public-Domain: +# - tests/*.py +# License: Public Domain +License: LGPL-2.1-only AND LicenseRef-Fedora-Public-Domain + %global forgeurl https://github.com/swami/%{name}/ Source0: %{forgeurl}/archive/v%{version}/%{name}-%{version}.tar.gz @@ -70,6 +80,22 @@ patch files into, which can then be edited, converted, compressed and saved. %package devel Summary: Development files for %{name} +# The entire source is LGPL-2.1-only, except: +# • The following are LicenseRef-Fedora-Public-Domain: +# - libinstpatch/md5.{c,h} +# - examples/create_sf2.c +# - examples/split_sfont.c +# See the comment above the License field for the base package for full +# details. +%if %{with gtkdoc} +# None of the LicenseRef-Fedora-Public-Domain files are included in this +# subpackage. +License: LGPL-2.1-only +%else +# The examples are included in this subpackage. The License is implicitly the +# same as the base package. +%endif + Requires: %{name}%{?_isa} = %{version}-%{release} Requires: glib2-devel%{?_isa} Requires: libsndfile-devel%{?_isa} @@ -83,6 +109,16 @@ developing applications that use %{name}. %package doc Summary: Documentation and examples for %{name} BuildArch: noarch +# The entire source is LGPL-2.1-only, except: +# • The following are LicenseRef-Fedora-Public-Domain: +# - libinstpatch/md5.{c,h} +# - examples/create_sf2.c +# - examples/split_sfont.c +# See the comment above the License field for the base package for full +# details. +# +# The examples are included in this subpackage. The License is implicitly the +# same as the base package. %description doc The %{name}-doc package contains documentation and examples for