summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-01 15:28:57 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-01 15:28:57 -0700
commitd939fbc292aac2cad6e64c174514558c998da242 (patch)
tree1d831adbceded03d149a12a5b1c41dd58e73d825
parentbf104e15e4e7c167e9957ff3db609d498118e988 (diff)
downloadspecs-d939fbc292aac2cad6e64c174514558c998da242.tar.gz
specs-d939fbc292aac2cad6e64c174514558c998da242.tar.xz
specs-d939fbc292aac2cad6e64c174514558c998da242.zip
owo-colors: add license text from PR
-rw-r--r--rust/owo-colors-LICENSE21
-rw-r--r--rust/rust-owo-colors.spec6
2 files changed, 25 insertions, 2 deletions
diff --git a/rust/owo-colors-LICENSE b/rust/owo-colors-LICENSE
new file mode 100644
index 0000000..401d95b
--- /dev/null
+++ b/rust/owo-colors-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 - present The owo-colors 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-owo-colors.spec b/rust/rust-owo-colors.spec
index fae2e70..4035aa9 100644
--- a/rust/rust-owo-colors.spec
+++ b/rust/rust-owo-colors.spec
@@ -13,6 +13,8 @@ Summary: Zero-allocation terminal colors that'll make people go owo
License: MIT
URL: https://crates.io/crates/owo-colors
Source: %{crates_source}
+# https://github.com/jam1garner/owo-colors/issues/52
+Source1: https://raw.githubusercontent.com/michel-slm/owo-colors/add-license/LICENSE#/%{crate}-LICENSE
ExclusiveArch: %{rust_arches}
@@ -33,8 +35,7 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
-# FIXME: no license files detected
-# https://github.com/jam1garner/owo-colors/issues/52
+%license LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
@@ -77,6 +78,7 @@ use the "supports-colors" feature of the "%{crate}" crate.
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
+cp -p %{SOURCE1} LICENSE
%generate_buildrequires
%cargo_generate_buildrequires