Skip to content

Commit 99c21ba

Browse files
authored
Merge pull request #9813 from ffaf1/fix-licence-text
Conform BSD-2-Clause and BSD-3-Clause text to SPDX
2 parents b3840d2 + 1e86730 commit 99c21ba

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

cabal-install/src/Distribution/Client/Init/Licenses.hs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ bsd2 :: String -> String -> License
3030
bsd2 authors year =
3131
unlines
3232
[ "Copyright (c) " ++ year ++ ", " ++ authors
33-
, "All rights reserved."
3433
, ""
3534
, "Redistribution and use in source and binary forms, with or without"
3635
, "modification, are permitted provided that the following conditions are"
@@ -48,7 +47,7 @@ bsd2 authors year =
4847
, "\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT"
4948
, "LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR"
5049
, "A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT"
51-
, "OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,"
50+
, "HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,"
5251
, "SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT"
5352
, "LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,"
5453
, "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY"
@@ -62,7 +61,6 @@ bsd3 authors year =
6261
unlines
6362
[ "Copyright (c) " ++ year ++ ", " ++ authors
6463
, ""
65-
, "All rights reserved."
6664
, ""
6765
, "Redistribution and use in source and binary forms, with or without"
6866
, "modification, are permitted provided that the following conditions are met:"
@@ -75,15 +73,15 @@ bsd3 authors year =
7573
, " disclaimer in the documentation and/or other materials provided"
7674
, " with the distribution."
7775
, ""
78-
, " * Neither the name of " ++ authors ++ " nor the names of other"
76+
, " * Neither the name of the copyright holder nor the names of its"
7977
, " contributors may be used to endorse or promote products derived"
8078
, " from this software without specific prior written permission."
8179
, ""
8280
, "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"
8381
, "\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT"
8482
, "LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR"
8583
, "A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT"
86-
, "OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,"
84+
, "HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,"
8785
, "SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT"
8886
, "LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,"
8987
, "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY"

changelog.d/pr-9813

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
synopsis: Adjust BSD-2-Clause and BSD-3-Clause licence text
2+
packages: cabal-install
3+
prs: #9813
4+
issues: #9812
5+
6+
description: {
7+
8+
This change matters to BSD-2-Clause and BSD-3-Clause licences. For these two
9+
licences, `cabal init` created a licence file that slightly differed from
10+
wording published at SPDX. This has been rectified.
11+
12+
}

0 commit comments

Comments
 (0)