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

Update license with NRCan copyright notice+URLs to dependency licenses #837

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ module.exports = function(grunt) {
}
}
},
fetchpages: {
dist: {
options: {
destinationFolder: 'dist',
urls: [
{url: 'https://raw.githubusercontent.com/Leaflet/Leaflet/main/LICENSE', localFile: 'leaflet-license.txt'},
{url: 'https://raw.githubusercontent.com/Leaflet/Leaflet.fullscreen/gh-pages/LICENSE', localFile: 'leaflet-fullscreen-license.txt'},
{url: 'https://raw.githubusercontent.com/domoritz/leaflet-locatecontrol/gh-pages/LICENSE', localFile: 'leaflet-locate-license.txt'},
{url: 'https://raw.githubusercontent.com/kartena/Proj4Leaflet/master/LICENSE', localFile: 'proj4Leaflet-license.txt'},
{url: 'https://raw.githubusercontent.com/proj4js/proj4js/master/LICENSE.md', localFile: 'proj4js-license.txt'},
{url: 'https://raw.githubusercontent.com/aratcliffe/Leaflet.contextmenu/master/LICENSE.md', localFile: 'contextmenu-license.txt'},
{url: 'https://raw.githubusercontent.com/xguaita/Leaflet.MapCenterCoord/master/LICENCE', localFile: 'crosshair-license.txt'}
],
followLinks: false
}
}
},
jshint: {
files: ['Gruntfile.js', 'src/**/*.js','test/**/*.spec.js'],
options: {
Expand Down Expand Up @@ -198,7 +215,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-rollup');
grunt.loadNpmTasks('grunt-fetch-pages');

grunt.registerTask('licenses', ['fetchpages:dist']);
grunt.registerTask('test', ['jshint']);
grunt.registerTask('default', ['clean:dist', 'copy:main', 'copy:images', 'jshint', 'rollup',
'uglify', 'cssmin','clean:tidyup']);
Expand Down
50 changes: 50 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,53 @@ All Reports in this Repository are licensed by Contributors under the
[W3C Software and Document License](http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document).
Contributions to Specifications are made under the
[W3C CLA](https://www.w3.org/community/about/agreements/cla/).

Copyright 2015-2023 Canada Centre for Mapping and Earth Observation,
Strategic Policy and Innovation Sector, Natural Resources Canada.

License

By obtaining and/or copying this work, you (the licensee) agree that you have
read, understood, and will comply with the following terms and conditions.

Permission to copy, modify, and distribute this work, with or without
modification, for any purpose and without fee or royalty is hereby granted,
provided that you include the following on ALL copies of the work or portions
thereof, including modifications:

The full text of this NOTICE in a location viewable to users of the
redistributed or derivative work.

Any pre-existing intellectual property disclaimers, notices, or terms and
conditions. If none exist, the W3C Software and Document Short Notice should
be included.

Notice of any changes or modifications, through a copyright statement on the
new code or document such as "This software or document includes material
copied from or derived from [title and URI of the W3C document].
Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."

Disclaimers

THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS
OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE
SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.

The name and trademarks of copyright holders may NOT be used in advertising or
publicity pertaining to the work without specific, written prior permission.
Title to copyright in this work will at all times remain with copyright holders.

Dependency license

https://raw.githubusercontent.com/Leaflet/Leaflet/main/LICENSE
https://raw.githubusercontent.com/Leaflet/Leaflet.fullscreen/gh-pages/LICENSE
https://raw.githubusercontent.com/domoritz/leaflet-locatecontrol/gh-pages/LICENSE
https://raw.githubusercontent.com/kartena/Proj4Leaflet/master/LICENSE
https://raw.githubusercontent.com/proj4js/proj4js/master/LICENSE.md
https://raw.githubusercontent.com/Leaflet/Leaflet.fullscreen/gh-pages/LICENSE
https://raw.githubusercontent.com/aratcliffe/Leaflet.contextmenu/master/LICENSE.md
https://raw.githubusercontent.com/xguaita/Leaflet.MapCenterCoord/master/LICENCE
6 changes: 6 additions & 0 deletions how-to-release.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Release Guide
** Licenses

Copy the LICENSE.md file to dist
Replace the URLs to dependency license text files with the text in those files
(There should be a grunt task to do this automatically, but it's not there yet)

**Publishing packages to NPM**

In `package.json` verify the name and update the version. Add additional files
Expand Down
Loading