Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate copyright files #106

Open
ebourg opened this issue Apr 22, 2013 · 1 comment
Open

Generate copyright files #106

ebourg opened this issue Apr 22, 2013 · 1 comment
Milestone

Comments

@ebourg
Copy link
Collaborator

ebourg commented Apr 22, 2013

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

@surli
Copy link

surli commented Sep 13, 2018

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: xwiki/xwiki-platform#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants