From f4b7c3eb9a141fef6c4a9d43946b43ba61195ad5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 21 2016 06:59:43 +0000 Subject: import rh-nodejs4-nodejs-undefsafe-0.0.3-5.el7 --- diff --git a/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..caaf03a --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright © 2016 Remy Sharp, http://remysharp.com + +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/SPECS/nodejs-undefsafe.spec b/SPECS/nodejs-undefsafe.spec index 2d2e10e..fb9a64e 100644 --- a/SPECS/nodejs-undefsafe.spec +++ b/SPECS/nodejs-undefsafe.spec @@ -10,14 +10,15 @@ Summary: Undefined safe way of extracting object properties Name: %{?scl_prefix}nodejs-%{npm_name} Version: 0.0.3 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://github.com/remy/undefsafe Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz -BuildRequires: %{?scl_prefix}runtime +Source1: https://raw.githubusercontent.com/kasicka/undefsafe/454e910123b1c24d5af2e0acc151591fc6c1d4dc/LICENSE +# https://github.com/remy/undefsafe/pull/3 +BuildRequires: %{?scl_prefix}nodejs-devel ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch -Provides: %{?scl_prefix}nodejs-%{npm_name} = %{version} %if 0%{?enable_tests} BuildRequires: %{?scl_prefix}nodejs(mocha) @@ -31,6 +32,7 @@ without getting "Cannot read property 'X' of undefined" %prep %setup -q -n package +cp -p %{SOURCE1} . %build @@ -48,10 +50,13 @@ mocha --ui bdd test/**/*.test.js %endif %files -%doc README.md +%doc README.md LICENSE %{nodejs_sitelib}/%{npm_name} %changelog +* Thu Jun 09 2016 Zuzana Svetlikova - 0.0.3-5 +- Resolves: rhbz#1334856 , fixes wrong license + * Tue Feb 16 2016 Zuzana Svetlikova - 0.0.3-4 - Use macro in -runtime dependency @@ -62,4 +67,4 @@ mocha --ui bdd test/**/*.test.js - Enable scl macros * Mon Dec 14 2015 Troy Dawson - 0.0.3-1 -- Initial package \ No newline at end of file +- Initial package