jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

Generate copyright files

Open ebourg opened this issue 11 years ago • 1 comments

To play nice with the Debian policy we should generate a copyright file in the binary package. This file is located at:

/usr/share/doc/<packagename>/copyright

The syntax of the copyright file is specified here: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

More info: http://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile

ebourg avatar Apr 22 '13 15:04 ebourg

For the record, I created a PR on our repository to create the proper copyright file, based on some properties, the setup can be find here: https://github.com/xwiki/xwiki-platform/pull/839

Basically we have a copyright resource file we process with the maven-remote-resource-plugin (well it's not exactly this one in our setup, but it would work the same with maven-remote-resource-plugin) to put the right info: license type defined by the pom, years, etc. We configure jdeb to put this copyright file at the right place given the package name. And finally as we also need to put this copyright file along with the control file, we copy the entire deb/control directory, put the copyright in it and use this directory as controlDir for jdeb.

surli avatar Sep 13 '18 08:09 surli