diff --git a/.gitignore b/.gitignore index 301a3dc..7a66070 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /extend-1.3.0.tgz /extend-2.0.1.tgz /extend-3.0.0.tgz +/extend-3.0.2.tgz +/nodejs-extend-3.0.2.tar.gz diff --git a/nodejs-extend.spec b/nodejs-extend.spec index df94ad1..86a0c68 100644 --- a/nodejs-extend.spec +++ b/nodejs-extend.spec @@ -1,64 +1,41 @@ -# This macro is needed at the start for building on EL6 -%{?nodejs_find_provides_and_requires} +Name: nodejs-extend +Version: 3.0.2 +Release: 1%{?dist} +Summary: Port of jQuery.extend for node.js and the browser -%global enable_tests 1 +License: MIT +URL: https://www.npmjs.org/package/extend +Source0: https://github.com/justmoon/node-extend/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch -%global barename extend - -Name: nodejs-extend -Version: 3.0.0 -Release: 7%{?dist} -Summary: Port of jQuery.extend for node.js and the browser - -License: MIT -URL: https://www.npmjs.org/package/extend -Source0: https://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz -# https://raw.githubusercontent.com/justmoon/node-extend/148e7270cab2e9413af2cd0cab147070d755ed6d/test/index.js -Source1: test-index.js -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif - -BuildRequires: nodejs-packaging >= 6 - - -%if 0%{?enable_tests} -BuildRequires: npm(tape) -%endif +BuildRequires: nodejs-packaging >= 6 +BuildRequires: npm(tape) %description nodejs-extend is a port of the classic extend() method from jQuery. It behaves as you expect. It is simple, tried and true. -%prep -%setup -q -n package -install -D -p -m0644 %{SOURCE1} test/index.js - -# Remove bundled node_modules if there are any.. -rm -rf node_modules/ +%prep +%autosetup -n node-extend-%{version} %nodejs_fixdep --caret +rm -rf node_modules + %build -# nothing to build + %install mkdir -p %{buildroot}%{nodejs_sitelib}/extend -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/extend - +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/extend %nodejs_symlink_deps %check -%if 0%{?enable_tests} %nodejs_symlink_deps --check -node test/index.js -%endif +%__nodejs test/index.js %files @@ -66,7 +43,11 @@ node test/index.js %license LICENSE %{nodejs_sitelib}/extend/ + %changelog +* Fri May 10 2019 Tom Hughes - 3.0.2-1 +- Update to 3.0.2 upstream release + * Fri Feb 01 2019 Fedora Release Engineering - 3.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 21074cb..e95c0cb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3e2615988a9007b365b6e059c5b60bfa extend-3.0.0.tgz +SHA512 (nodejs-extend-3.0.2.tar.gz) = 6e170d9857adf4a0d6a73412a9f11fe7312361547882f99d4799acf4ae5d778a2a8b9f747f76600f3858eb2d01f25ca2b5bea3053b26bfba31cddb4e5ca7b7ea