summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-04 16:07:35 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-04 16:07:35 -0700
commitf8f48b395481d167e1b7cc0007c6747162a31c2f (patch)
treed490af2f6a135ffa20f2cb3f152e8f8922bcb312
parent147de8aa4572348fdf53d1b9cc650962d6c70be0 (diff)
downloadspecs-f8f48b395481d167e1b7cc0007c6747162a31c2f.tar.gz
specs-f8f48b395481d167e1b7cc0007c6747162a31c2f.tar.xz
specs-f8f48b395481d167e1b7cc0007c6747162a31c2f.zip
nu-utils: add LICENSE
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--rust/nu-utils-LICENSE21
-rw-r--r--rust/rust-nu-utils.spec10
2 files changed, 28 insertions, 3 deletions
diff --git a/rust/nu-utils-LICENSE b/rust/nu-utils-LICENSE
new file mode 100644
index 0000000..084f31e
--- /dev/null
+++ b/rust/nu-utils-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 - 2021 The Nushell Project Developers
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/rust/rust-nu-utils.spec b/rust/rust-nu-utils.spec
index 5bdc2c8..937295a 100644
--- a/rust/rust-nu-utils.spec
+++ b/rust/rust-nu-utils.spec
@@ -11,7 +11,10 @@ Summary: Nushell utility functions
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/nu-utils
-Source: %{crates_source}
+Source0: %{crates_source}
+# license text not included yet in most crates
+# see https://github.com/nushell/nushell/pull/5094
+Source1: https://raw.githubusercontent.com/nushell/nushell/main/LICENSE#/%{crate}-LICENSE
# Drop Windows dependencies
Patch0: nu-utils-fix-metadata.diff
@@ -30,7 +33,7 @@ Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
-# FIXME: no license files detected
+%license LICENSE
%{_bindir}/utils
%package devel
@@ -43,7 +46,7 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
-# FIXME: no license files detected
+%license LICENSE
%{crate_instdir}/
%package -n %{name}+default-devel
@@ -60,6 +63,7 @@ use the "default" feature of the "%{crate}" crate.
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
+cp -p %{SOURCE1} LICENSE
%cargo_prep
%generate_buildrequires