Skip to content

Commit

Permalink
data: Fix license blurb and add SPDX-License-Identifier
Browse files Browse the repository at this point in the history
The license blurb mentioned version 2 of the Lesser GPL, which doesn’t
exist — there’s version 2.0 of the _Library_ GPL, or version 2.1 of the
_Lesser_ GPL, but no 2.0 Lesser GPL.

Given that the COPYING file correctly mentions the LGPL 2.1, and the
vast majority of software projects and contributors use version 2.1 in
preference to version 2.0, I think this is a typo which has been
copypastaed across the project.

So, change ‘version 2’ to ‘version 2.1’ in the license blurbs for the
portal API definitions. It’s particularly important that these are
right, because they may well be copied to other projects so that D-Bus
bindings can be generated from them.

In addition, add an `SPDX-License-Identifier` to the portal API
definitions so the license is machine readable.

Signed-off-by: Philip Withnall <[email protected]>
  • Loading branch information
pwithnall committed Sep 27, 2024
1 parent 1d6dfb5 commit a13caf7
Show file tree
Hide file tree
Showing 55 changed files with 166 additions and 55 deletions.
4 changes: 3 additions & 1 deletion data/org.freedesktop.background.Monitor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2022 Endless OS Foundation, LLC
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.AppChooser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2019 Red Hat, Inc
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Clipboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright 2022 Google LLC
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.DynamicLauncher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2022 Matthew Leeds
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Email.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2017 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.FileChooser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2015 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.GlobalShortcuts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2022 Aleix Pol Gonzalez <[email protected]>
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Inhibit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.InputCapture.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2022 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Lockdown.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2018 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Notification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.PermissionStore.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
<!--
Copyright (C) 2015 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Print.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.RemoteDesktop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2017-2018 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Request.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.ScreenCast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2017 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Screenshot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Secret.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2019 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Session.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2017 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2018 Igalia S.L.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.impl.portal.Wallpaper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2019 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.portal.Account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2016 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.portal.Background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2019 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.portal.Camera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright (C) 2018 Red Hat, Inc.
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 data/org.freedesktop.portal.Clipboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!--
Copyright 2022 Google LLC
SPDX-License-Identifier: LGPL-2.1-or-later
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 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 a13caf7

Please sign in to comment.