Blame nodejs-array-union.spec

4afd01d
%global enable_tests 1
4afd01d
%global srcname array-union
4afd01d
4afd01d
%global commit0 d0e72cc6fbff57273032e45050c51ff44c8e137c
4afd01d
%global gittag0 v1.0.1
4afd01d
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
4afd01d
4afd01d
Name:           nodejs-%{srcname}
4afd01d
Version:        1.0.1
c499361
Release:        4%{?dist}
4afd01d
Summary:        Create an array of unique values, in order, from the input arrays
4afd01d
License:        MIT
4afd01d
URL:            https://www.npmjs.com/package/%{srcname}
4afd01d
Source0:        https://github.com/sindresorhus/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz
4afd01d
4afd01d
BuildArch:      noarch
4afd01d
ExclusiveArch:  %{nodejs_arches} noarch
4afd01d
4afd01d
BuildRequires:  nodejs-packaging
4afd01d
4afd01d
%if 0%{?enable_tests}
4afd01d
BuildRequires:  npm(array-uniq)
4afd01d
BuildRequires:  npm(mocha)
4afd01d
%endif
4afd01d
4afd01d
4afd01d
%description
4afd01d
%{summary}.
4afd01d
4afd01d
%prep
4afd01d
%setup -qn %{srcname}-%{commit0}
4afd01d
rm -rf node_modules/
4afd01d
4afd01d
4afd01d
%build
4afd01d
#nothing to do
4afd01d
4afd01d
4afd01d
%install
4afd01d
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
4afd01d
cp -pr index.js package.json \
4afd01d
    %{buildroot}%{nodejs_sitelib}/%{srcname}
4afd01d
4afd01d
%nodejs_symlink_deps
4afd01d
4afd01d
4afd01d
%if 0%{?enable_tests}
4afd01d
%check
4afd01d
%nodejs_symlink_deps --check
4afd01d
mocha
4afd01d
%endif
4afd01d
4afd01d
4afd01d
%files
4afd01d
%doc readme.md
4afd01d
%license license
4afd01d
%{nodejs_sitelib}/%{srcname}
4afd01d
4afd01d
4afd01d
%changelog
c499361
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
c499361
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c499361
192bc95
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
192bc95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
192bc95
c4bc572
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
c4bc572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c4bc572
4afd01d
* Sat Oct 17 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.1-1
4afd01d
- Initial package