[libcamera-devel,2/3] libcamera: Use DEP5 to specify license of files that don't support SPDX

Message ID 20200605183833.8125-2-laurent.pinchart@ideasonboard.com
State Accepted
Commit b898240301897ece8455ee49a63966a9a1d0dab6
Headers show
Series
  • [libcamera-devel,1/3] libcamera: Add missing SPDX headers to miscellaneous small files
Related show

Commit Message

Laurent Pinchart June 5, 2020, 6:38 p.m. UTC
Some files can't use SPDX as they don't support comments. This is the
case of the JSON files used by the Raspberry Pi IPA and camera tuning
tools, as well as the PGM reference picture in the camera tuning tool.

The REUSE specification allows handling this case in two different ways:

- Adding a ${file}.license file containing the license specification
  alongside each file.

- Adding a .reuse/dep5 file, in Debian machine-readable copyright format
  (as specified in
  https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/).

The first option isn't practical, use the latter.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 .reuse/dep5 | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 .reuse/dep5

Comments

Niklas Söderlund June 5, 2020, 7:16 p.m. UTC | #1
Hi Laurent,

Thanks for your work.

On 2020-06-05 21:38:32 +0300, Laurent Pinchart wrote:
> Some files can't use SPDX as they don't support comments. This is the
> case of the JSON files used by the Raspberry Pi IPA and camera tuning
> tools, as well as the PGM reference picture in the camera tuning tool.
> 
> The REUSE specification allows handling this case in two different ways:
> 
> - Adding a ${file}.license file containing the license specification
>   alongside each file.
> 
> - Adding a .reuse/dep5 file, in Debian machine-readable copyright format
>   (as specified in
>   https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/).
> 
> The first option isn't practical, use the latter.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>

> ---
>  .reuse/dep5 | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>  create mode 100644 .reuse/dep5
> 
> diff --git a/.reuse/dep5 b/.reuse/dep5
> new file mode 100644
> index 000000000000..c05441cfb270
> --- /dev/null
> +++ b/.reuse/dep5
> @@ -0,0 +1,10 @@
> +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> +Upstream-Name: libcamera
> +Upstream-Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> +Source: https://git.linuxtv.org/libcamera.git/
> +
> +Files: src/ipa/raspberrypi/data/*.json
> +       utils/raspberrypi/ctt/ctt_config_example.json
> +       utils/raspberrypi/ctt/ctt_ref.pgm
> +Copyright: 2019-2020 Raspberry Pi (Trading) Ltd.
> +License: BSD-2-Clause
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

Patch

diff --git a/.reuse/dep5 b/.reuse/dep5
new file mode 100644
index 000000000000..c05441cfb270
--- /dev/null
+++ b/.reuse/dep5
@@ -0,0 +1,10 @@ 
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libcamera
+Upstream-Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+Source: https://git.linuxtv.org/libcamera.git/
+
+Files: src/ipa/raspberrypi/data/*.json
+       utils/raspberrypi/ctt/ctt_config_example.json
+       utils/raspberrypi/ctt/ctt_ref.pgm
+Copyright: 2019-2020 Raspberry Pi (Trading) Ltd.
+License: BSD-2-Clause