aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-01-15 01:09:37 +0100
committerLinus Jahn <lnj@kaidan.im>2022-01-15 01:09:37 +0100
commita0d1776419c61903f8e6534ad3db56df275954ac (patch)
tree70ac8963bf754b541714a24ba07f46cbb4389fe8
parent37359c7928d7fad38f064b6b5f26af59440ed7f9 (diff)
downloadqxmpp-a0d1776419c61903f8e6534ad3db56df275954ac.tar.gz
REUSE-ify whole project
-rw-r--r--.appveyor.yml4
-rw-r--r--.clang-format4
-rw-r--r--.github/pull_request_template.md6
-rw-r--r--.github/workflows/push-docs.yml4
-rw-r--r--.github/workflows/tests.yml4
-rw-r--r--.gitignore4
-rw-r--r--AUTHORS3
-rw-r--r--CHANGELOG.md6
-rw-r--r--CMakeLists.txt4
-rw-r--r--QXmppConfig.cmake.in4
-rw-r--r--README.md6
-rw-r--r--cmake/modules/FindGLIB2.cmake6
-rw-r--r--cmake/modules/FindGObject.cmake8
-rw-r--r--cmake/modules/FindGStreamer.cmake6
-rw-r--r--cmake/modules/MacroFindGStreamerLibrary.cmake6
-rw-r--r--doc/CMakeLists.txt4
-rw-r--r--doc/Doxyfile.in4
-rw-r--r--doc/index.doc4
-rw-r--r--doc/using.doc4
-rw-r--r--doc/xep.doc4
-rw-r--r--examples/CMakeLists.txt4
-rw-r--r--examples/example_0_connected/README6
-rw-r--r--examples/example_1_echoClient/README6
-rw-r--r--examples/example_2_rosterHandling/README6
-rw-r--r--examples/example_3_transferHandling/example_3_transferHandling.qrc6
-rw-r--r--examples/example_5_rpcInterface/CMakeLists.txt4
-rw-r--r--examples/example_5_rpcInterface/main.cpp3
-rw-r--r--examples/example_5_rpcInterface/remoteinterface.cpp4
-rw-r--r--examples/example_5_rpcInterface/remoteinterface.h4
-rw-r--r--examples/example_5_rpcInterface/xmlrpctest.txt.license3
-rw-r--r--examples/example_6_rpcClient/CMakeLists.txt4
-rw-r--r--examples/example_9_vCard/CMakeLists.txt4
-rw-r--r--examples/example_9_vCard/README6
-rw-r--r--qxmpp.pc.in4
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/base/QXmppGlobal.h.in29
-rw-r--r--src/base/QXmppPubSubPublishOptions.h4
-rw-r--r--src/base/QXmppSendResult.h4
-rw-r--r--tests/CMakeLists.txt4
-rw-r--r--tests/qxmpptransfermanager/CMakeLists.txt4
-rw-r--r--tests/qxmpptransfermanager/test.svg.license3
-rw-r--r--tests/qxmpptransfermanager/tst_qxmpptransfermanager.qrc6
-rw-r--r--tests/qxmppuploadrequestmanager/CMakeLists.txt4
-rw-r--r--tests/qxmppuploadrequestmanager/test.svg.license3
-rw-r--r--tests/qxmppuploadrequestmanager/tst_qxmppuploadrequestmanager.qrc6
-rw-r--r--tests/qxmpputils/CMakeLists.txt4
-rw-r--r--tests/qxmpputils/test.bmp.license3
-rw-r--r--tests/qxmpputils/test.gif.license3
-rw-r--r--tests/qxmpputils/test.jpg.license3
-rw-r--r--tests/qxmpputils/test.mng.license3
-rw-r--r--tests/qxmpputils/test.png.license3
-rw-r--r--tests/qxmpputils/test.svg.license3
-rw-r--r--tests/qxmpputils/test.xpm.license3
-rw-r--r--tests/qxmpputils/tst_qxmpputils.qrc6
-rwxr-xr-xtests/travis/build-and-test6
-rwxr-xr-xtests/travis/install-build-depends6
-rwxr-xr-xtests/travis/push-documentation4
57 files changed, 245 insertions, 32 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index cd80cc3a..5691a55a 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2018 Jeremy Lainé <jeremy.laine@m4x.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+
platform: x64
environment:
diff --git a/.clang-format b/.clang-format
index d7cae352..c6658603 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2019 Georg Rudoy <0xd34df00d@gmail.com>
+#
+# SPDX-License-Identifier: CC0-1.0
+
AlignAfterOpenBracket: Align
AlignTrailingComments: true
BasedOnStyle: WebKit
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 1565e426..7504d386 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
Before opening a pull-request please do:
- [ ] Documentation:
- [ ] Document every new public class and function
diff --git a/.github/workflows/push-docs.yml b/.github/workflows/push-docs.yml
index 0ab8293e..5930439b 100644
--- a/.github/workflows/push-docs.yml
+++ b/.github/workflows/push-docs.yml
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
+#
+# SPDX-License-Identifier: CC0-1.0
+
---
name: push-docs
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index f89c52b9..82ef50ab 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 Jeremy Lainé <jeremy.laine@m4x.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+
name: tests
on: [push, pull_request]
diff --git a/.gitignore b/.gitignore
index 6b82b786..f1962b88 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2010 Boris Pek <tehnick-8@yandex.ru>
+#
+# SPDX-License-Identifier: CC0-1.0
+
CMakeLists.txt.*
.DS_Store
build*
diff --git a/AUTHORS b/AUTHORS
index ef3f2db6..5df76028 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,3 +1,6 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+SPDX-License-Identifier: CC0-1.0
+
QXMPP AUTHORS
-------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5b6fcfce..d1c119d6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
QXmpp 1.5.0 (UNRELEASED)
------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0087d076..16569284 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
cmake_minimum_required(VERSION 3.3)
project(qxmpp VERSION 1.5.0)
diff --git a/QXmppConfig.cmake.in b/QXmppConfig.cmake.in
index 07975c38..cd27acf9 100644
--- a/QXmppConfig.cmake.in
+++ b/QXmppConfig.cmake.in
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/QXmpp.cmake")
check_required_components(QXmpp)
diff --git a/README.md b/README.md
index 33118ed7..78576604 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
# QXmpp [![XMPP:2022 Client IM Mobile+ Compliance Badge](https://img.shields.io/badge/XMPP%3A2022%20Client-Core%20IM%20Mobile%2B-green)][xmpp-compliance] [![Build Status](https://github.com/qxmpp-project/qxmpp/workflows/tests/badge.svg)](https://github.com/qxmpp-project/qxmpp/actions) [![Code Coverage](https://img.shields.io/codecov/c/github/qxmpp-project/qxmpp.svg)](https://codecov.io/gh/qxmpp-project/qxmpp) [![Latest release](https://img.shields.io/github/v/release/qxmpp-project/qxmpp)](https://github.com/qxmpp-project/qxmpp/releases/latest) [![Website](https://img.shields.io/website?down_message=offline&label=documentation&up_message=online&url=https%3A%2F%2Fdoc.qxmpp.org%2F)][qxmpp-doc]
QXmpp is a cross-platform C++ XMPP client and server library. It is written
diff --git a/cmake/modules/FindGLIB2.cmake b/cmake/modules/FindGLIB2.cmake
index 5082212e..30a5dfd2 100644
--- a/cmake/modules/FindGLIB2.cmake
+++ b/cmake/modules/FindGLIB2.cmake
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2008 Laurent Montel <montel@kde.org>
+#
+# SPDX-License-Identifier: LicenseRef-MIT-variant
+
# - Try to find the GLIB2 libraries
# Once done this will define
#
@@ -5,8 +9,6 @@
# GLIB2_INCLUDE_DIR - the glib2 include directory
# GLIB2_LIBRARIES - glib2 library
-# Copyright (c) 2008 Laurent Montel, <montel@kde.org>
-#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
diff --git a/cmake/modules/FindGObject.cmake b/cmake/modules/FindGObject.cmake
index cd6d5f4e..6f43bc8b 100644
--- a/cmake/modules/FindGObject.cmake
+++ b/cmake/modules/FindGObject.cmake
@@ -1,3 +1,8 @@
+# SPDX-FileCopyrightText: Tim Beaulen <tbscope@gmail.com>
+# SPDX-FileCopyrightText: Helio Chissini de Castro <helio@kde.org>
+#
+# SPDX-License-Identifier: LicenseRef-MIT-variant
+
# - Try to find GObject
# Once done this will define
#
@@ -6,9 +11,6 @@
# GOBJECT_LIBRARIES - the libraries needed to use GObject
# GOBJECT_DEFINITIONS - Compiler switches required for using GObject
-# Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com>
-# Copyright (c) 2008 Helio Chissini de Castro, <helio@kde.org>
-#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
diff --git a/cmake/modules/FindGStreamer.cmake b/cmake/modules/FindGStreamer.cmake
index dd306dc1..15bb9ff7 100644
--- a/cmake/modules/FindGStreamer.cmake
+++ b/cmake/modules/FindGStreamer.cmake
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2010 Collabora Ltd., George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
+#
+# SPDX-License-Identifier: LicenseRef-MIT-variant
+
# - Try to find GStreamer
# Once done this will define
#
@@ -13,7 +17,7 @@
# GSTREAMER_<plugin_lib>_LIBRARY_FOUND - system has <plugin_lib>
# GSTREAMER_<plugin_lib>_LIBRARY - the <plugin_lib> library
# GSTREAMER_<plugin_lib>_INCLUDE_DIR - the <plugin_lib> include directory
-#
+
# Copyright (c) 2010, Collabora Ltd.
# @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#
diff --git a/cmake/modules/MacroFindGStreamerLibrary.cmake b/cmake/modules/MacroFindGStreamerLibrary.cmake
index dd14385b..e69fc64f 100644
--- a/cmake/modules/MacroFindGStreamerLibrary.cmake
+++ b/cmake/modules/MacroFindGStreamerLibrary.cmake
@@ -1,5 +1,9 @@
-# - macro find_gstreamer_library
+# SPDX-FileCopyrightText: 2010 Collabora Ltd., George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#
+# SPDX-License-Identifier: LicenseRef-MIT-variant
+
+# - macro find_gstreamer_library
+
# Copyright (c) 2010, Collabora Ltd.
# @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index a27a28ce..70a55677 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
find_package(Doxygen REQUIRED)
if(NOT DOXYGEN_FOUND)
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
index 801beeda..c0847971 100644
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
PROJECT_NAME = "QXmpp"
PROJECT_NUMBER = "Version: @PROJECT_VERSION@"
INPUT = @PROJECT_SOURCE_DIR@/doc/index.doc \
diff --git a/doc/index.doc b/doc/index.doc
index 2db08ef3..6d5795f2 100644
--- a/doc/index.doc
+++ b/doc/index.doc
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
+//
+// SPDX-License-Identifier: CC0-1.0
+
/*! \mainpage
QXmpp is a cross-platform C++ XMPP client library based on the Qt
diff --git a/doc/using.doc b/doc/using.doc
index 9da7d4ff..43ef0dc8 100644
--- a/doc/using.doc
+++ b/doc/using.doc
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
+//
+// SPDX-License-Identifier: CC0-1.0
+
/*! \page using Using QXmpp
diff --git a/doc/xep.doc b/doc/xep.doc
index 01e2e8c4..a22476e0 100644
--- a/doc/xep.doc
+++ b/doc/xep.doc
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
+//
+// SPDX-License-Identifier: CC0-1.0
+
/*! \page xep XMPP Extensions
This document lists the XMPP Extensions (XEP) available in QXmpp.
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 564745c6..69f98750 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
macro(add_simple_example EXAMPLE_NAME)
add_executable(${EXAMPLE_NAME} example_${EXAMPLE_NAME}/example_${EXAMPLE_NAME}.cpp)
target_link_libraries(${EXAMPLE_NAME} qxmpp)
diff --git a/examples/example_0_connected/README b/examples/example_0_connected/README
index fb84fea9..7260d747 100644
--- a/examples/example_0_connected/README
+++ b/examples/example_0_connected/README
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
This example just connects to the xmpp server. And start receiving presences (updates) from the server.
After running this example, you can see this user online, if it's added in your roster (friends list).
diff --git a/examples/example_1_echoClient/README b/examples/example_1_echoClient/README
index b3081610..57f342b0 100644
--- a/examples/example_1_echoClient/README
+++ b/examples/example_1_echoClient/README
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
This is a very simple bot which echoes the message sent to it.
Run this example, send it a message from a friend of this bot. You will receive the message back.
diff --git a/examples/example_2_rosterHandling/README b/examples/example_2_rosterHandling/README
index 83c75d05..9b04adbf 100644
--- a/examples/example_2_rosterHandling/README
+++ b/examples/example_2_rosterHandling/README
@@ -1 +1,7 @@
+<!--
+SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
This example demonstrates how to get the roster and presence updates.
diff --git a/examples/example_3_transferHandling/example_3_transferHandling.qrc b/examples/example_3_transferHandling/example_3_transferHandling.qrc
index 015e4fb7..14f55467 100644
--- a/examples/example_3_transferHandling/example_3_transferHandling.qrc
+++ b/examples/example_3_transferHandling/example_3_transferHandling.qrc
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2012 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>example_3_transferHandling.cpp</file>
diff --git a/examples/example_5_rpcInterface/CMakeLists.txt b/examples/example_5_rpcInterface/CMakeLists.txt
index 40f014ef..c58fdc40 100644
--- a/examples/example_5_rpcInterface/CMakeLists.txt
+++ b/examples/example_5_rpcInterface/CMakeLists.txt
@@ -1,2 +1,6 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
add_executable(5_rpcInterface main.cpp remoteinterface.cpp)
target_link_libraries(5_rpcInterface qxmpp)
diff --git a/examples/example_5_rpcInterface/main.cpp b/examples/example_5_rpcInterface/main.cpp
index 70dc76d6..780c8a12 100644
--- a/examples/example_5_rpcInterface/main.cpp
+++ b/examples/example_5_rpcInterface/main.cpp
@@ -1,5 +1,6 @@
-// SPDX-FileCopyrightText: 2011 Manjeet Dahiya <manjeetdahiya@gmail.com>
+// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+// SPDX-FileCopyrightText: 2011 Manjeet Dahiya <manjeetdahiya@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
diff --git a/examples/example_5_rpcInterface/remoteinterface.cpp b/examples/example_5_rpcInterface/remoteinterface.cpp
index 35132a21..7ddb40c7 100644
--- a/examples/example_5_rpcInterface/remoteinterface.cpp
+++ b/examples/example_5_rpcInterface/remoteinterface.cpp
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
#include "remoteinterface.h"
RemoteInterface::RemoteInterface(QObject *parent) : QXmppInvokable(parent)
diff --git a/examples/example_5_rpcInterface/remoteinterface.h b/examples/example_5_rpcInterface/remoteinterface.h
index a5ad9388..04bb4393 100644
--- a/examples/example_5_rpcInterface/remoteinterface.h
+++ b/examples/example_5_rpcInterface/remoteinterface.h
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
#ifndef REMOTEINTERFACE_H
#define REMOTEINTERFACE_H
diff --git a/examples/example_5_rpcInterface/xmlrpctest.txt.license b/examples/example_5_rpcInterface/xmlrpctest.txt.license
new file mode 100644
index 00000000..f83160e2
--- /dev/null
+++ b/examples/example_5_rpcInterface/xmlrpctest.txt.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/examples/example_6_rpcClient/CMakeLists.txt b/examples/example_6_rpcClient/CMakeLists.txt
index d3b10b92..2c19a92c 100644
--- a/examples/example_6_rpcClient/CMakeLists.txt
+++ b/examples/example_6_rpcClient/CMakeLists.txt
@@ -1,2 +1,6 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
add_executable(6_rpcClient main.cpp rpcClient.cpp)
target_link_libraries(6_rpcClient qxmpp)
diff --git a/examples/example_9_vCard/CMakeLists.txt b/examples/example_9_vCard/CMakeLists.txt
index 3e1ca7ee..2fc4ba63 100644
--- a/examples/example_9_vCard/CMakeLists.txt
+++ b/examples/example_9_vCard/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui)
add_executable(9_vCard example_9_vCard.cpp)
diff --git a/examples/example_9_vCard/README b/examples/example_9_vCard/README
index 6187d5b9..df5eea85 100644
--- a/examples/example_9_vCard/README
+++ b/examples/example_9_vCard/README
@@ -1 +1,7 @@
+<!--
+SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
This example demonstrates how to get the vCards and handle Avatars of the roster entities. \ No newline at end of file
diff --git a/qxmpp.pc.in b/qxmpp.pc.in
index 4e60310b..06af7ab5 100644
--- a/qxmpp.pc.in
+++ b/qxmpp.pc.in
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c21b0c81..1efd3c21 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
option(BUILD_SHARED "Build SHARED library" ON)
add_definitions(-DQXMPP_BUILD)
diff --git a/src/base/QXmppGlobal.h.in b/src/base/QXmppGlobal.h.in
index 0065b557..1ecfc554 100644
--- a/src/base/QXmppGlobal.h.in
+++ b/src/base/QXmppGlobal.h.in
@@ -1,27 +1,8 @@
-/*
- * Copyright (C) 2008-2021 The QXmpp developers
- *
- * Author:
- * Manjeet Dahiya
- * Niels Ole Salscheider
- * Linus Jahn
- *
- * Source:
- * https://github.com/qxmpp-project/qxmpp
- *
- * This file is a part of QXmpp library.
- *
- * 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.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
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- */
+// SPDX-FileCopyrightText: 2010 Manjeet Dahiya <manjeetdahiya@gmail.com>
+// SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPGLOBAL_H
#define QXMPPGLOBAL_H
diff --git a/src/base/QXmppPubSubPublishOptions.h b/src/base/QXmppPubSubPublishOptions.h
index e2a074eb..7bac8592 100644
--- a/src/base/QXmppPubSubPublishOptions.h
+++ b/src/base/QXmppPubSubPublishOptions.h
@@ -1 +1,5 @@
+// SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
#include "QXmppPubSubNodeConfig.h"
diff --git a/src/base/QXmppSendResult.h b/src/base/QXmppSendResult.h
index 15b84b05..aa288438 100644
--- a/src/base/QXmppSendResult.h
+++ b/src/base/QXmppSendResult.h
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
#ifndef QXMPPSENDRESULT_H
#define QXMPPSENDRESULT_H
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0cce4582..e11079fc 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
include_directories(.)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Test)
diff --git a/tests/qxmpptransfermanager/CMakeLists.txt b/tests/qxmpptransfermanager/CMakeLists.txt
index 232dbcbd..2c9f4000 100644
--- a/tests/qxmpptransfermanager/CMakeLists.txt
+++ b/tests/qxmpptransfermanager/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmpptransfermanager tst_qxmpptransfermanager.cpp tst_qxmpptransfermanager.qrc)
add_test(tst_qxmpptransfermanager tst_qxmpptransfermanager)
diff --git a/tests/qxmpptransfermanager/test.svg.license b/tests/qxmpptransfermanager/test.svg.license
new file mode 100644
index 00000000..2e519f60
--- /dev/null
+++ b/tests/qxmpptransfermanager/test.svg.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0
diff --git a/tests/qxmpptransfermanager/tst_qxmpptransfermanager.qrc b/tests/qxmpptransfermanager/tst_qxmpptransfermanager.qrc
index 461e9918..226e319c 100644
--- a/tests/qxmpptransfermanager/tst_qxmpptransfermanager.qrc
+++ b/tests/qxmpptransfermanager/tst_qxmpptransfermanager.qrc
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2015 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>test.svg</file>
diff --git a/tests/qxmppuploadrequestmanager/CMakeLists.txt b/tests/qxmppuploadrequestmanager/CMakeLists.txt
index 62cdf06d..6fcd4a7e 100644
--- a/tests/qxmppuploadrequestmanager/CMakeLists.txt
+++ b/tests/qxmppuploadrequestmanager/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2019 Yury Gubich <blue@macaw.me>
+#
+# SPDX-License-Identifier: CC0-1.0
+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmppuploadrequestmanager tst_qxmppuploadrequestmanager.cpp tst_qxmppuploadrequestmanager.qrc)
add_test(tst_qxmppuploadrequestmanager tst_qxmppuploadrequestmanager)
diff --git a/tests/qxmppuploadrequestmanager/test.svg.license b/tests/qxmppuploadrequestmanager/test.svg.license
new file mode 100644
index 00000000..2e519f60
--- /dev/null
+++ b/tests/qxmppuploadrequestmanager/test.svg.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0
diff --git a/tests/qxmppuploadrequestmanager/tst_qxmppuploadrequestmanager.qrc b/tests/qxmppuploadrequestmanager/tst_qxmppuploadrequestmanager.qrc
index 461e9918..6b138c92 100644
--- a/tests/qxmppuploadrequestmanager/tst_qxmppuploadrequestmanager.qrc
+++ b/tests/qxmppuploadrequestmanager/tst_qxmppuploadrequestmanager.qrc
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2019 Yury Gubich <blue@macaw.me>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>test.svg</file>
diff --git a/tests/qxmpputils/CMakeLists.txt b/tests/qxmpputils/CMakeLists.txt
index 83032d6b..9ea884c6 100644
--- a/tests/qxmpputils/CMakeLists.txt
+++ b/tests/qxmpputils/CMakeLists.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmpputils tst_qxmpputils.cpp tst_qxmpputils.qrc)
add_test(tst_qxmpputils tst_qxmpputils)
diff --git a/tests/qxmpputils/test.bmp.license b/tests/qxmpputils/test.bmp.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.bmp.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/test.gif.license b/tests/qxmpputils/test.gif.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.gif.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/test.jpg.license b/tests/qxmpputils/test.jpg.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.jpg.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/test.mng.license b/tests/qxmpputils/test.mng.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.mng.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/test.png.license b/tests/qxmpputils/test.png.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.png.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/test.svg.license b/tests/qxmpputils/test.svg.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.svg.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/test.xpm.license b/tests/qxmpputils/test.xpm.license
new file mode 100644
index 00000000..5d5b245c
--- /dev/null
+++ b/tests/qxmpputils/test.xpm.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0 \ No newline at end of file
diff --git a/tests/qxmpputils/tst_qxmpputils.qrc b/tests/qxmpputils/tst_qxmpputils.qrc
index 6bc9605e..07dcc04f 100644
--- a/tests/qxmpputils/tst_qxmpputils.qrc
+++ b/tests/qxmpputils/tst_qxmpputils.qrc
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>test.bmp</file>
diff --git a/tests/travis/build-and-test b/tests/travis/build-and-test
index 0010e124..068b70be 100755
--- a/tests/travis/build-and-test
+++ b/tests/travis/build-and-test
@@ -1,4 +1,10 @@
#!/bin/sh
+
+# SPDX-FileCopyrightText: 2014 Boris Pek <tehnick-8@yandex.ru>
+# SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+
set -e
HOST_SYSTEM=$(uname -s)
diff --git a/tests/travis/install-build-depends b/tests/travis/install-build-depends
index 1522ad42..df1b15fb 100755
--- a/tests/travis/install-build-depends
+++ b/tests/travis/install-build-depends
@@ -1,4 +1,10 @@
#!/bin/sh
+
+# SPDX-FileCopyrightText: 2014 Boris Pek <tehnick-8@yandex.ru>
+# SPDX-FileCopyrightText: 2018 Jeremy Lainé <jeremy.laine@m4x.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+
set -e
if [ "$(uname -s)" = "Darwin" ]; then
diff --git a/tests/travis/push-documentation b/tests/travis/push-documentation
index ed5609a8..e4653e8f 100755
--- a/tests/travis/push-documentation
+++ b/tests/travis/push-documentation
@@ -1,5 +1,9 @@
#!/bin/bash
+# SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
+#
+# SPDX-License-Identifier: CC0-1.0
+
# Add ssh push key
eval "$(ssh-agent -s)"
echo $PUSH_KEY_REPO_DOC_QXMPP_ORG | base64 -d | unxz | ssh-add -