Skip to content

Commit

Permalink
Replace license boilerplates in code with SPDX-License-Identifier
Browse files Browse the repository at this point in the history
Remove the license boilerplates from source files and replace with
SPDX-License-Identifier lines.  Also update microdnf.spec and
meson.build with the SPDX expression for the project.  Some plugins
are actually LGPL-2.1-or-later.

Signed-off-by: David Cantrell <[email protected]>
  • Loading branch information
dcantrell committed Nov 8, 2023
1 parent a600c62 commit 718e485
Show file tree
Hide file tree
Showing 52 changed files with 52 additions and 473 deletions.
13 changes: 1 addition & 12 deletions dnf/dnf-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2016 Igor Gnatenko <[email protected]>
*
* 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
*/

#include "dnf-command.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/dnf-command.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2016 Igor Gnatenko <[email protected]>
*
* 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
*/

#pragma once
Expand Down
13 changes: 1 addition & 12 deletions dnf/dnf-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@
* Copyright © 2016-2017 Igor Gnatenko <[email protected]>
* Copyright © 2017-2021 Jaroslav Rohel <[email protected]>
*
* 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
*/

#include <locale.h>
Expand Down
13 changes: 1 addition & 12 deletions dnf/dnf-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@
* Copyright © 2016-2017 Igor Gnatenko <[email protected]>
* Copyright © 2017-2020 Jaroslav Rohel <[email protected]>
*
* 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
*/

#include "dnf-utils.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/dnf-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,7 @@
* Copyright © 2016 Colin Walters <[email protected]>
* Copyright © 2016-2017 Igor Gnatenko <[email protected]>
*
* 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
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion dnf/plugins/clean/clean.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Embedded = dnf_command_clean_register_types
Name = clean
Description = Remove cached data
Authors = Jaroslav Rohel <[email protected]>
License = GPL-2.0+
License = GPL-2.0-or-later
Copyright = Copyright © 2017 Jaroslav Rohel
X-Command-Syntax = clean all
13 changes: 1 addition & 12 deletions dnf/plugins/clean/dnf-command-clean.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2017 Jaroslav Rohel <[email protected]>
*
* 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
*/

#include "dnf-command-clean.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/clean/dnf-command-clean.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2017 Jaroslav Rohel <[email protected]>
*
* 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
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion dnf/plugins/distrosync/distrosync.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Embedded = dnf_command_distrosync_register_types
Name = distro-sync
Description = Upgrade/downgrade packages to match versions in repositories
Authors = Neal Gompa <[email protected]>
License = GPL-2.0+
License = GPL-2.0-or-later
Copyright = Copyright © 2021 Neal Gompa
X-Command-Syntax = distro-sync [PACKAGE…]
X-Alias-Name = dsync
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/distrosync/dnf-command-distrosync.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2021 Neal Gompa <[email protected]>
*
* 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
*/

#include "dnf-command-distrosync.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/distrosync/dnf-command-distrosync.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2021 Neal Gompa <[email protected]>
*
* 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
*/

#pragma once
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/download/dnf-command-download.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,7 @@
* Copyright © 2020-2021 Daniel Hams <[email protected]>
* Copyright © 2021 Jaroslav Rohel <[email protected]>
*
* 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
*/

#include "dnf-command-download.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/download/dnf-command-download.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2020-2021 Daniel Hams <[email protected]>
*
* 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
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion dnf/plugins/download/download.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Embedded = dnf_command_download_register_types
Name = download
Description = Download packages
Authors = Daniel Hams <[email protected]>
License = GPL-2.0+
License = GPL-2.0-or-later
Copyright = Copyright © 2020-2021 Daniel Hams
X-Command-Syntax = download [OPTION…] PACKAGE [PACKAGE…]
13 changes: 1 addition & 12 deletions dnf/plugins/install/dnf-command-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,7 @@
* Copyright © 2016 Colin Walters <[email protected]>
* Copyright © 2016-2017 Igor Gnatenko <[email protected]>
*
* 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
*/

#include "dnf-command-install.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/install/dnf-command-install.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2016 Igor Gnatenko <[email protected]>
*
* 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
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion dnf/plugins/install/install.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Embedded = dnf_command_install_register_types
Name = install
Description = Install packages
Authors = Richard Hughes <[email protected]>, Colin Walters <[email protected]>, Igor Gnatenko <[email protected]>
License = GPL-2.0+
License = GPL-2.0-or-later
Copyright = Copyright © 2010-2016 Richard Hughes, Colin Walters, Igor Gnatenko
X-Command-Syntax = install PACKAGE [PACKAGE…]
13 changes: 1 addition & 12 deletions dnf/plugins/leaves/dnf-command-leaves.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2022 Emil Renner Berthing <[email protected]>
*
* 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
*/

#include "dnf-command-leaves.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/leaves/dnf-command-leaves.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright © 2022 Emil Renner Berthing <[email protected]>
*
* 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
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion dnf/plugins/leaves/leaves.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Embedded = dnf_command_leaves_register_types
Name = leaves
Description = List installed packages not required by other installed packages
Authors = Emil Renner Berthing <[email protected]>
License = GPL-2.0+
License = GPL-2.0-or-later
Copyright = Copyright (C) 2022 Emil Renner Berthing
X-Command-Syntax = leaves
13 changes: 1 addition & 12 deletions dnf/plugins/makecache/dnf-command-makecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright (C) 2021 Red Hat, Inc.
*
* 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
*/

#include "dnf-command-makecache.h"
Expand Down
13 changes: 1 addition & 12 deletions dnf/plugins/makecache/dnf-command-makecache.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
*
* Copyright (C) 2021 Red Hat, Inc.
*
* 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
*/

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion dnf/plugins/makecache/makecache.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Embedded = dnf_command_makecache_register_types
Name = makecache
Description = Generate the metadata cache
Authors = Jaroslav Rohel <[email protected]>
License = GPL-2.0+
License = GPL-2.0-or-later
Copyright = Copyright (C) 2021 Red Hat, Inc.
X-Command-Syntax = makecache
Loading

0 comments on commit 718e485

Please sign in to comment.