From c1758898b768bbd8b4f4c950d94c035d48810965cfdf3828c460652ffde2bf19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Wed, 4 Oct 2023 19:35:05 +0000 Subject: [PATCH] Fix license with upstream patch OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/libspelling?expand=0&rev=2 --- ...ffd30c78b7f255b1665fac3fb88960ea01ba.patch | 50 +++++++++++++++++++ libspelling.spec | 8 +-- 2 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch diff --git a/6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch b/6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch new file mode 100644 index 0000000..db4db11 --- /dev/null +++ b/6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch @@ -0,0 +1,50 @@ +From 6d26ffd30c78b7f255b1665fac3fb88960ea01ba Mon Sep 17 00:00:00 2001 +From: Christian Hergert +Date: Wed, 4 Oct 2023 12:24:46 -0700 +Subject: [PATCH] egg: fix license to be LGPLv2.1+ + +Fixes #3 +--- + lib/egg-action-group.h | 24 +++++++++++++----------- + 1 file changed, 13 insertions(+), 11 deletions(-) + +diff --git a/lib/egg-action-group.h b/lib/egg-action-group.h +index 3d75edd..bcf6bcb 100644 +--- a/lib/egg-action-group.h ++++ b/lib/egg-action-group.h +@@ -1,19 +1,21 @@ + /* egg-action-group.h + * +- * Copyright (C) 2017 Christian Hergert ++ * Copyright 2017-2023 Christian Hergert + * +- * This program is free software: you can redistribute it and/or modify +- * it under the terms of the GNU General Public License as published by +- * the Free Software Foundation, either version 3 of the License, or +- * (at your option) any later version. ++ * This library is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU Lesser General Public License as ++ * published by the Free Software Foundation; either version 2.1 of the ++ * License, or (at your option) any later version. + * +- * This program is distributed in the hope that it will be useful, +- * but WITHOUT ANY WARRANTY; without even the implied warranty of +- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +- * GNU General Public License for more details. ++ * This library is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. + * +- * You should have received a copy of the GNU General Public License +- * along with this program. If not, see . ++ * You should have received a copy of the GNU General Public License along ++ * with this program. If not, see . ++ * ++ * SPDX-License-Identifier: LGPL-2.1-or-later + */ + + #pragma once +-- +GitLab + diff --git a/libspelling.spec b/libspelling.spec index 48a2e25..89e580a 100644 --- a/libspelling.spec +++ b/libspelling.spec @@ -20,11 +20,11 @@ Name: libspelling Version: 0.2.0 Release: 0 Summary: A spellcheck library for GTK 4 -# main source is LGPL-2.1-or-later -# lib/egg-action-group.h is GPL-3.0-or-later -License: LGPL-2.1-or-later AND GPL-3.0-or-later +License: LGPL-2.1-or-later URL: https://gitlab.gnome.org/chergert/libspelling Source: https://download.gnome.org/sources/libspelling/0.2/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch -- egg: fix license to be LGPLv2.1+ +Patch: https://gitlab.gnome.org/chergert/libspelling/-/commit/6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch BuildRequires: pkgconfig BuildRequires: c_compiler @@ -66,7 +66,7 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup +%autosetup -p1 %build %meson