Skip to content

Commit

Permalink
Use consistent abbreviated SPDX license identifiers for all GPL files
Browse files Browse the repository at this point in the history
Same as done in os-autoinst in
os-autoinst/os-autoinst#1800

Following https://spdx.dev/ids/ we can replace verbatim license text in
source codes with convenient SPDX license identifiers. This helps to
save (screen-)space, provides consistency, prevents misuse and is both
better readable by humans and automations.

I used the command

```
sed -i ':a;N;$!ba;s@#\n# This program is free software.*if not, see <http://www.gnu.org/licenses/>.@# SPDX-License-Identifier: GPL-2.0-or-later@g' $(git grep -I -l 'Copyright.*[0-9]\{4\}.*SUSE' ':!COPYING' ':!external/')
```

to replace all files with usual exceptions. A similar command has been
included in a style check test.

The files
* tests/console/qam_zypper_patch.pm
* tests/qa_automation/kernel_multipath.pm
* tests/support_server/flaky_mp_iscsi.pm

needed manual patching as their license text was already inconsistent.

https://progress.opensuse.org/issues/98616
  • Loading branch information
okurz committed Oct 7, 2021
1 parent bc53597 commit 1bd4a3b
Show file tree
Hide file tree
Showing 271 changed files with 273 additions and 3,530 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# SUSE's openQA tests
#
# Copyright 2020 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: The class introduces all accessing methods for Encryption Password.
# Page of Expert Partitioner Wizard, that are common for all the versions of the
Expand Down
14 changes: 1 addition & 13 deletions lib/LTP/TestInfo.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2017 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later
package LTP::TestInfo;
use Mojo::Base 'OpenQA::Test::RunArgs';

Expand Down
14 changes: 1 addition & 13 deletions lib/LTP/WhiteList.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2019-2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: Override known failures for QAM
# Maintainer: Jan Baier <[email protected]>
Expand Down
14 changes: 1 addition & 13 deletions lib/LTP/utils.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2020 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: LTP helper functions
# Maintainer: Martin Doucha <[email protected]>
Expand Down
14 changes: 1 addition & 13 deletions lib/Utils/Architectures.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2019 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

=head1 Utils::Architectures
Expand Down
14 changes: 1 addition & 13 deletions lib/Utils/Backends.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2018-2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

=head1 Backends
Expand Down
14 changes: 1 addition & 13 deletions lib/Utils/Systemd.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2019 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package Utils::Systemd;

Expand Down
14 changes: 1 addition & 13 deletions lib/apparmortest.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2017-2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: Base module for AppArmor test cases
# Maintainer: llzhao <[email protected]>
Expand Down
14 changes: 1 addition & 13 deletions lib/bugzilla.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package bugzilla;

Expand Down
14 changes: 1 addition & 13 deletions lib/consoletest.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2019 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package consoletest;
use base "opensusebasetest";
Expand Down
14 changes: 1 addition & 13 deletions lib/containers/common.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2015-2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package containers::common;

Expand Down
14 changes: 1 addition & 13 deletions lib/db_utils.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2015-2019 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package db_utils;

Expand Down
14 changes: 1 addition & 13 deletions lib/jeos.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2015-2020 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package jeos;
use Mojo::Base qw(Exporter);
Expand Down
14 changes: 1 addition & 13 deletions lib/known_bugs.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2015-2018 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package known_bugs;

Expand Down
14 changes: 1 addition & 13 deletions lib/krb5crypt.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2019 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Summary: Public variables and functions for krb5 cryptographic testing
# Maintainer: Ben Chou <[email protected]>
Expand Down
14 changes: 1 addition & 13 deletions lib/lynis/lynis_run.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Summary: Integrate the Lynis scanner into OpenQA: run test cases/modules
# according to section list
Expand Down
14 changes: 1 addition & 13 deletions lib/lynis/lynistest.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: Base module for Lynis test cases
# Maintainer: llzhao <[email protected]>
Expand Down
14 changes: 1 addition & 13 deletions lib/main_ltp.pm
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
## no critic (Strict)
# Copyright 2017-2020 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later
#
# See kernel/install_ltp.pm and kernel/run_ltp.pm for documentation.
package main_ltp;
Expand Down
14 changes: 1 addition & 13 deletions lib/main_pods.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2019-2020 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package main_pods;
use base 'Exporter';
Expand Down
14 changes: 1 addition & 13 deletions lib/migration.pm
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Copyright 2017-2021 SUSE LLC
#
# 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 2 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.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-2.0-or-later

package migration;

Expand Down
Loading

0 comments on commit 1bd4a3b

Please sign in to comment.