Skip to content

Commit

Permalink
src: Fix license blurb and add SPDX-License-Identifier to some files
Browse files Browse the repository at this point in the history
See the previous commit for reasoning.

This extends the same methodology to the source files in
`document-portal`, `src` and `tests`: fix the version number for files
which look like they were meant to be LGPL-2.1-licensed, and add an
`SPDX-License-Identifier` to them at the same time.

I haven’t touched any files which didn’t have the incorrect LGPL
version.

Signed-off-by: Philip Withnall <[email protected]>
  • Loading branch information
pwithnall authored and GeorgesStavracas committed Sep 27, 2024
1 parent 8b2a4f4 commit 1b5a169
Show file tree
Hide file tree
Showing 103 changed files with 309 additions and 103 deletions.
4 changes: 3 additions & 1 deletion document-portal/document-portal-fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* Copyright © 2018 Red Hat, Inc
* Copyright © 2023 GNOME Foundation Inc.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion document-portal/document-portal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* Copyright © 2018 Red Hat, Inc
* Copyright © 2023 GNOME Foundation Inc.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion document-portal/document-portal.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2018 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion document-portal/file-transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* Copyright © 2018 Red Hat, Inc
* Copyright © 2023 GNOME Foundation Inc.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion document-portal/file-transfer.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2018 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion document-portal/permission-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
*
* Copyright (C) 2015 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This file 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 of the
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This file is distributed in the hope that it will be useful, but
Expand Down
4 changes: 3 additions & 1 deletion document-portal/permission-db.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
*
* Copyright © 2015 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This file 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 of the
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This file is distributed in the hope that it will be useful, but
Expand Down
4 changes: 3 additions & 1 deletion src/account.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2016 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/account.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2016 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/background.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2019 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/background.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2019 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/call.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2018 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/call.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2018 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/camera.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2018-2019 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/camera.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2018 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/clipboard.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright 2022 Google LLC
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/clipboard.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright 2022 Google LLC
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/documents.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2016 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/documents.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2016 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/dynamic-launcher.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2022 Matthew Leeds
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/dynamic-launcher.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2022 Matthew Leeds
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/email.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2017 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/email.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2017 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/file-chooser.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2016 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/file-chooser.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2016 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/gamemode.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2019 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/gamemode.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright © 2019 Red Hat, Inc
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
4 changes: 3 additions & 1 deletion src/glib-backports.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
* Copyright © 2021 Collabora Ltd.
* Copyright 2023 Igalia
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This program 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 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
Loading

0 comments on commit 1b5a169

Please sign in to comment.