From b0029593b2003352549964c3cc0baf401038ad7d Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Fri, 9 Aug 2024 08:14:40 -0400 Subject: [PATCH] REUSE compliance Also add a pre-commit hook for checking REUSE compliance --- .pre-commit-config.yaml | 5 +++++ .reuse/dep5 | 8 +++++--- cmake/InstallLocation.cmake | 6 ++++++ docs/api/CMakeLists.txt | 4 ++-- src/kdbindings/KDBindingsConfig.h | 9 +++++++++ 5 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e3ff5e..7b20ad0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,3 +28,8 @@ repos: exclude: (.py.cmake|Doxyfile.cmake) - id: cmake-format exclude: (.py.cmake|Doxyfile.cmake) +- repo: https://github.com/fsfe/reuse-tool + rev: v3.1.0a1 + hooks: + - id: reuse + args: [--suppress-deprecation] diff --git a/.reuse/dep5 b/.reuse/dep5 index 0fa5a5e..18cb095 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -3,7 +3,9 @@ Upstream-Name: KDBindings Upstream-Contact: Source: https://www.github.com/KDAB/KDBindings -Files: *.json *.html *.md docs/api/Doxyfile.cmake docs/api/mkdocs/mkdocs.yml docs/api/mkdocs/docs/stylesheets/kdab.css +#documentation +#Files: *.json *.html *.md docs/api/Doxyfile.cmake docs/api/mkdocs/mkdocs.yml docs/api/mkdocs/docs/stylesheets/kdab.css +Files: README.md ChangeLog docs/api/* Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company License: MIT @@ -14,11 +16,11 @@ License: MIT #3rdparty cmake Files: cmake/ECM/modules/* -Copyright: +Copyright: The KDE Project License: BSD-3-Clause #misc config files -Files: .pre-commit-config.yaml .codespellrc .krazy .cmake-format.py .clang-format .clazy .gitignore .mdlrc .mdlrc.rb .pep8 .pylintrc docs/api/Doxyfile.cmake distro/* +Files: .pre-commit-config.yaml .codespellrc .krazy .cmake-format.py .clang-format .clazy .gitignore .mdlrc .mdlrc.rb .pep8 .pylintrc CMakePresets.json CMakeSettings.json docs/api/Doxyfile.cmake distro/* Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company License: BSD-3-Clause diff --git a/cmake/InstallLocation.cmake b/cmake/InstallLocation.cmake index 933456b..aeb82ec 100644 --- a/cmake/InstallLocation.cmake +++ b/cmake/InstallLocation.cmake @@ -1,3 +1,9 @@ +# +# SPDX-FileCopyrightText: 2012 Klarälvdalens Datakonsult AB, a KDAB Group company +# +# SPDX-License-Identifier: BSD-3-Clause +# + # Some default installation locations. These should be global, with any project # specific locations added to the end. These paths are all relative to the # install prefix. diff --git a/docs/api/CMakeLists.txt b/docs/api/CMakeLists.txt index caff412..2b324f7 100644 --- a/docs/api/CMakeLists.txt +++ b/docs/api/CMakeLists.txt @@ -1,7 +1,7 @@ # This file is part of KDBindings. # -# SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group -# company Author: Allen Winter +# SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company +# Author: Allen Winter # # SPDX-License-Identifier: MIT # diff --git a/src/kdbindings/KDBindingsConfig.h b/src/kdbindings/KDBindingsConfig.h index a6f694b..d1a2a6c 100644 --- a/src/kdbindings/KDBindingsConfig.h +++ b/src/kdbindings/KDBindingsConfig.h @@ -1,3 +1,12 @@ +# This file is part of KDBindings. +# +# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company +# +# SPDX-License-Identifier: MIT +# +# Contact KDAB at for commercial licensing options. +# + #pragma once #ifdef KDBINDINGS_ENABLE_WARN_UNUSED