From 4afd01de276bd1c3dd518ea596ec47b5754368e5 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Nov 02 2015 15:08:57 +0000 Subject: Initial import (#1272667). --- diff --git a/.gitignore b/.gitignore index e69de29..13ff6d3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/array-union-d0e72cc.tar.gz diff --git a/nodejs-array-union.spec b/nodejs-array-union.spec new file mode 100644 index 0000000..2eda292 --- /dev/null +++ b/nodejs-array-union.spec @@ -0,0 +1,62 @@ +%global enable_tests 1 +%global srcname array-union + +%global commit0 d0e72cc6fbff57273032e45050c51ff44c8e137c +%global gittag0 v1.0.1 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: nodejs-%{srcname} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Create an array of unique values, in order, from the input arrays +License: MIT +URL: https://www.npmjs.com/package/%{srcname} +Source0: https://github.com/sindresorhus/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(array-uniq) +BuildRequires: npm(mocha) +%endif + + +%description +%{summary}. + +%prep +%setup -qn %{srcname}-%{commit0} +rm -rf node_modules/ + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr index.js package.json \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +mocha +%endif + + +%files +%doc readme.md +%license license +%{nodejs_sitelib}/%{srcname} + + +%changelog +* Sat Oct 17 2015 Piotr Popieluch - 1.0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..a2dd721 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +95546f8d103af57a8934b2f8c6e9bb6b array-union-d0e72cc.tar.gz