Changeset 201
- Timestamp:
- Apr 28, 2018, 1:21:43 PM (7 years ago)
- Location:
- trunk/project-meta
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/project-meta/Makefile
r185 r201 17 17 update: 18 18 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR) 19 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/licen ce.d19 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/license.d 20 20 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/template.d 21 21 @install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR) … … 27 27 28 28 install -m 0644 -o root -g root PROJECT-META.sample.yml $(DESTDIR)/$(SHAREDIR) 29 install -m 0644 -o root -g root licen ce.d/*.txt $(DESTDIR)/$(SHAREDIR)/licence.d29 install -m 0644 -o root -g root license.d/*.txt $(DESTDIR)/$(SHAREDIR)/license.d 30 30 install -m 0644 -o root -g root template.d/*.tt $(DESTDIR)/$(SHAREDIR)/template.d 31 31 -
trunk/project-meta/PROJECT-META.sample.yml
r184 r201 35 35 36 36 public-dap: 37 data-licen ce: license-ouverte-v2.037 data-license: licence-ouverte-v2.0 38 38 39 39 doi: XXXX/zeodo.YYYY -
trunk/project-meta/cadaverrc
r187 r201 5 5 mput *.html 6 6 mput PROJECT-META.sample.yml 7 mput LICEN CE.txt7 mput LICENSE.txt 8 8 9 9 quit -
trunk/project-meta/licence.d/license-ouverte-v2.0.txt
r150 r201 1 Licence Ouverte V 2.0 2 3 LICENCE OUVERTE / OPEN LICENCE 4 Version 2.0 1 LICENCE OUVERTE / OPEN LICENCE - Version 2.0 5 2 6 3 « REUTILISATION » DE Lâ « INFORMATION » SOUS CETTE LICENCE … … 10 7 conditions exprimées ci-dessous. 11 8 Le « Réutilisateur » est libre de réutiliser lâ « Information » : 12 ï·de la reproduire, la copier,13 ï·de lâadapter, la modifier, lâextraire et la transformer, pour créer des9 - de la reproduire, la copier, 10 - de lâadapter, la modifier, lâextraire et la transformer, pour créer des 14 11 « Informations dérivées », des produits ou des services, 15 ï·de la communiquer, la diffuser, la redistribuer, la publier et la transmettre,16 ï·de lâexploiter à titre commercial, par exemple en la combinant avec dâautres12 - de la communiquer, la diffuser, la redistribuer, la publier et la transmettre, 13 - de lâexploiter à titre commercial, par exemple en la combinant avec dâautres 17 14 informations, ou en lâincluant dans son propre produit ou application. 18 15 Sous réserve de : … … 36 33 être librement réutilisée, dans le cadre des droits accordés par la présente licence, à 37 34 38 Avril 201739 40 1/441 42 43 Licence Ouverte V 2.044 35 condition de respecter le cadre légal relatif à la protection des données à 45 36 caractÚre personnel. … … 77 68 et « Open Data Commons Attribution » (ODC-BY) de lâOpen Knowledge Foundation. 78 69 79 Avril 201780 81 2/482 83 84 Licence Ouverte V 2.085 86 70 DEFINITIONS 87 71 … … 112 96 présente licence. 113 97 114 Avril 2017115 116 98 Des « Données à caractÚre personnel » : 117 99 toute information se rapportant à une … … 136 118 donnéesâŠ). 137 119 138 3/4139 140 141 Licence Ouverte V 2.0142 120 143 121 à PROPOS DE CETTE LICENCE … … 164 142 Cependant, les « Réutilisateurs » pourront continuer à réutiliser les informations quâils 165 143 ont obtenues sous cette licence sâils le souhaitent. 166 167 Avril 2017168 169 4/4170 171 -
trunk/project-meta/project-meta
r200 r201 32 32 'make-zip' => \&cmd_make_zip, 33 33 'make-author' => \&cmd_make_author, 34 'make-licen ce' => \&cmd_make_licence,34 'make-license' => \&cmd_make_license, 35 35 'make-copyright' => \&cmd_make_copyright, 36 'list-licen ce' => \&cmd_list_licence,36 'list-license' => \&cmd_list_license, 37 37 ); 38 38 … … 90 90 project-meta remove-link 91 91 project-meta make-zip 92 project-meta list-licen ce93 project-meta make-licen ce92 project-meta list-license 93 project-meta make-license 94 94 project-meta make-author 95 95 project-meta make-copyright … … 128 128 my $data_set = $meta->{'public-dap'}{'data-set'}; 129 129 130 push @{$data_set}, 'AUTHORS.txt', 'COPYRIGHT.txt', 'LICEN CE.txt';130 push @{$data_set}, 'AUTHORS.txt', 'COPYRIGHT.txt', 'LICENSE.txt'; 131 131 { 132 132 # Remove doublon … … 187 187 my $acronym = $meta->{'project'}{'acronym'}; 188 188 189 push @{$data_set}, 'AUTHORS.txt', 'COPYRIGHT.txt', 'LICEN CE.txt';189 push @{$data_set}, 'AUTHORS.txt', 'COPYRIGHT.txt', 'LICENSE.txt'; 190 190 { 191 191 # Remove doublon … … 266 266 ################################################################ 267 267 268 sub cmd_make_licen ce {269 my $meta = YAML::Syck::LoadFile("PROJECT-META.yml"); 270 271 my $current_dir = Cwd::getcwd(); 272 273 if (-f "$current_dir/LICEN CE.txt") {274 print "Warning: LICEN CE.txt already exists\n";268 sub cmd_make_license { 269 my $meta = YAML::Syck::LoadFile("PROJECT-META.yml"); 270 271 my $current_dir = Cwd::getcwd(); 272 273 if (-f "$current_dir/LICENSE.txt") { 274 print "Warning: LICENSE.txt already exists\n"; 275 275 return; 276 276 } 277 277 278 my $licen ce = $meta->{'public-dap'}{'data-licence'};279 280 if (not -f "/usr/share/project-meta/licen ce.d/$licence.txt") {281 print "Error: licen ce $licence doesn't exists in project-meta database\n";278 my $license = $meta->{'public-dap'}{'data-license'}; 279 280 if (not -f "/usr/share/project-meta/license.d/$license.txt") { 281 print "Error: license $license doesn't exists in project-meta database\n"; 282 282 exit 1; 283 283 } 284 284 285 copy("/usr/share/project-meta/licen ce.d/$licence.txt", "$current_dir/LICENCE.txt")286 or die "Error: licen ce copy failed - $!";287 288 print "Info: LICEN CE.txt file create\n";285 copy("/usr/share/project-meta/license.d/$license.txt", "$current_dir/LICENSE.txt") 286 or die "Error: license copy failed - $!"; 287 288 print "Info: LICENSE.txt file create\n"; 289 289 return; 290 290 } … … 326 326 authorlist => $meta->{'project'}{'authors'}, 327 327 description => $meta->{'project'}{'short-description'}, 328 licen ce => $meta->{'public-dap'}{'data-licence'},328 license => $meta->{'public-dap'}{'data-license'}, 329 329 doi => $meta->{'publication'}{'doi'}, 330 330 }, \$msg_format) || die $tt->error; … … 337 337 ################################################################ 338 338 339 sub cmd_list_licen ce {340 opendir my $dh, '/usr/share/project-meta/licen ce.d/' or die $!;341 for my $licen ce (readdir $dh) {339 sub cmd_list_license { 340 opendir my $dh, '/usr/share/project-meta/license.d/' or die $!; 341 for my $license (readdir $dh) { 342 342 # Keep only file 343 next if not -f "/usr/share/project-meta/licen ce.d/$licence";343 next if not -f "/usr/share/project-meta/license.d/$license"; 344 344 345 345 # Keep only .txt file 346 next if not $licen ce =~ m/\.txt$/;347 348 $licen ce =~ s/\.txt$//;349 print "$licen ce\n";346 next if not $license =~ m/\.txt$/; 347 348 $license =~ s/\.txt$//; 349 print "$license\n"; 350 350 } 351 351 closedir $dh; … … 371 371 project-meta remove-link 372 372 project-meta make-zip 373 project-meta list-licen ce374 project-meta make-licen ce373 project-meta list-license 374 project-meta make-license 375 375 project-meta make-author 376 376 project-meta make-copyright … … 408 408 409 409 Create UNIX soft links on the OpeNDAP folder to the real data. 410 Files F<AUTHORS.txt>, F<LICEN CE.txt> and F<COPYRIGHT.txt> are mandatory but could be generated (see below).410 Files F<AUTHORS.txt>, F<LICENSE.txt> and F<COPYRIGHT.txt> are mandatory but could be generated (see below). 411 411 The main keys use in the F<PROJECT-META.yml> are: 412 412 … … 443 443 444 444 Create a ZIP archive with the open data set. 445 Files F<AUTHORS.txt>, F<LICEN CE.txt> and F<COPYRIGHT.txt> are mandatory but could be generated (see below).445 Files F<AUTHORS.txt>, F<LICENSE.txt> and F<COPYRIGHT.txt> are mandatory but could be generated (see below). 446 446 The main keys use in the F<PROJECT-META.yml> are: 447 447 … … 454 454 =back 455 455 456 =head2 list-licen ce457 458 project-meta list-licen ce459 460 Give the list of all the open data licen ce supported by the project-meta licence database.461 At this time the possible licen ce are:456 =head2 list-license 457 458 project-meta list-license 459 460 Give the list of all the open data license supported by the project-meta license database. 461 At this time the possible license are: 462 462 463 463 license-ouverte-v2.0 464 464 open-database-license-v1.0 465 465 466 Note that these licen ces are dedicated to open data.467 Please do not use open licence that have been written for code or documentation fordata.468 469 =head2 make-licen ce470 471 project-meta make-licen ce472 473 Copy the licen ce file from the project-meta licence database at the current folder474 with the file name: F<LICEN CE.txt>.475 476 The licen ce is defined in the F<PROJECT-META.yml> specification under the key C<public-dap/data-licence>.477 The list of possible licen ce is given with the command L</list-licence>.466 Note that these licenses are dedicated to open data. 467 Please do not use an open license that would have been thought for source code or documentation and not for open data. 468 469 =head2 make-license 470 471 project-meta make-license 472 473 Copy the license file from the project-meta license database at the current folder 474 with the file name: F<LICENSE.txt>. 475 476 The license is defined in the F<PROJECT-META.yml> specification under the key C<public-dap/data-license>. 477 The list of possible license is given with the command L</list-license>. 478 478 479 479 =head2 make-author … … 489 489 490 490 Create or update the F<COPYRIGHT.txt> file at the current folder. 491 Authors, licen ce and copyright data are extracted from the C<PROJECT-META.yml> file.491 Authors, license and copyright data are extracted from the C<PROJECT-META.yml> file. 492 492 493 493 … … 508 508 =head1 SEE ALSO 509 509 510 yamllint(1), ysh(1) 511 512 In Debian , package for C<yamllint> and C<ysh> are510 yamllint(1), ysh(1), YAML, Archive::Zip 511 512 In Debian GNU/Linux distribution, packages for C<yamllint> and C<ysh> are: 513 513 514 514 =over … … 517 517 518 518 =item * C<libyaml-shell-perl> - YAML test shell (Perl) 519 520 =back 521 522 523 Own project ressources: 524 525 =over 526 527 =item * L<Web site|http://servforge.legi.grenoble-inp.fr/projects/soft-trokata/wiki/SoftWare/ProjectMeta> 528 529 =item * L<Online Manual|http://servforge.legi.grenoble-inp.fr/pub/soft-trokata/project-meta/project-meta.html> 530 531 =item * L<SVN repository|http://servforge.legi.grenoble-inp.fr/svn/soft-trokata/trunk/project-meta> 519 532 520 533 =back … … 539 552 =head1 LICENSE AND COPYRIGHT 540 553 541 Licen ce GNU GPL version 2 or later and Perl equivalent554 License GNU GPL version 2 or later and Perl equivalent 542 555 543 556 Copyright (C) 2017-2018 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>. -
trunk/project-meta/template.d/COPYRIGHT.tt
r176 r201 15 15 [% description %] 16 16 17 OpenData Licen ce: [% licence %]17 OpenData License: [% license %] 18 18 19 19
Note: See TracChangeset
for help on using the changeset viewer.