Skip to content

Commit adcc68b

Browse files
authored
Switch NuGet to use a license expression to assist with SBOM analysis (#93)
The COPYING.txt file, which was ported from the original C++ implementation, appears to be the basic BSD-3-Clause license except for the parts about the testdata. However, the testdata is not included in the NuGet package so isn't relevant. Update the NuGet copyright to match the copyright notice in COPYING.txt. Also embed the README.md file in the package. Fixes #92
1 parent 0993527 commit adcc68b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Snappier/Snappier.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<Authors>btburnett3</Authors>
1212
<PackageTags>snappy;compression;fast;io</PackageTags>
1313
<!-- Copyright remains with Google since this is a direct port of the C++ source from https://github.com/google/snappy -->
14-
<Copyright>Copyright 2011, Google Inc. All rights reserved.</Copyright>
14+
<Copyright>Copyright 2011-2020, Google, Inc. and Snappier Authors</Copyright>
1515
<Description>
1616
A near-C++ performance implementation of the Snappy compression algorithm for .NET. Snappier is ported to C# directly
1717
from the official C++ implementation, with the addition of support for the framed stream format.
@@ -20,7 +20,8 @@
2020
by .NET Core. However, Snappier performs best in .NET Core 3.0 and later on little-endian x86/64 processors with the
2121
help of System.Runtime.Instrinsics.
2222
</Description>
23-
<PackageLicenseFile>COPYING.txt</PackageLicenseFile>
23+
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
24+
<PackageReadmeFile>README.md</PackageReadmeFile>
2425
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2526
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2627
<EmbedUntrackedSources>true</EmbedUntrackedSources>
@@ -38,7 +39,7 @@
3839
</PropertyGroup>
3940

4041
<ItemGroup>
41-
<None Include="..\COPYING.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
42+
<None Include="..\README.md" Pack="true" PackagePath="$(PackageReadmeFile)" />
4243
</ItemGroup>
4344

4445
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">

0 commit comments

Comments
 (0)