From 24a1e07208f41896ca8f9d726dd1c75ee68955e0 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 4 Apr 2022 19:46:01 -0700 Subject: nu-path: add LICENSE --- rust/nu-path-LICENSE | 21 +++++++++++++++++++++ rust/rust-nu-path.spec | 8 ++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 rust/nu-path-LICENSE diff --git a/rust/nu-path-LICENSE b/rust/nu-path-LICENSE new file mode 100644 index 0000000..084f31e --- /dev/null +++ b/rust/nu-path-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-path.spec b/rust/rust-nu-path.spec index f62119a..94480d7 100644 --- a/rust/rust-nu-path.spec +++ b/rust/rust-nu-path.spec @@ -13,6 +13,9 @@ Summary: Path handling library for Nushell License: MIT URL: https://crates.io/crates/nu-path Source: %{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 ExclusiveArch: %{rust_arches} @@ -33,7 +36,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 %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -51,6 +54,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 @@ -68,5 +72,5 @@ use the "default" feature of the "%{crate}" crate. %endif %changelog -* Sat Mar 26 2022 Michel Alexandre Salim - 0.60.0-1 +* Mon Apr 04 2022 Michel Alexandre Salim - 0.60.0-1 - Initial package -- cgit