Blame SPECS/nodejs-arrify.spec

d0ba6b
%{?scl:%scl_package nodejs-%{srcname}}
d0ba6b
%{!?scl:%global pkg_name %{name}}
d0ba6b
%{?nodejs_find_provides_and_requires}
d0ba6b
d0ba6b
# Circular dependency on ava
d0ba6b
%global enable_tests 0
d0ba6b
%global srcname arrify
d0ba6b
d0ba6b
%global commit0 4576e944677c722c356480b17a6d709d34d0733c
d0ba6b
%global gittag0 v1.0.0
d0ba6b
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
d0ba6b
d0ba6b
Name:           %{?scl_prefix}nodejs-%{srcname}
d0ba6b
Version:        1.0.0
d0ba6b
Release:        10%{?dist}
d0ba6b
Summary:        Convert a value to an array
d0ba6b
License:        MIT
d0ba6b
URL:            https://www.npmjs.com/package/%{srcname}
d0ba6b
Source0:        https://github.com/sindresorhus/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz
d0ba6b
d0ba6b
BuildArch:      noarch
d0ba6b
ExclusiveArch:  %{nodejs_arches} noarch
d0ba6b
d0ba6b
BuildRequires:  %{?scl_prefix}nodejs-devel
d0ba6b
d0ba6b
%if 0%{?enable_tests}
d0ba6b
BuildRequires:  %{?scl_prefix}npm(ava)
d0ba6b
%endif
d0ba6b
d0ba6b
%description
d0ba6b
%{summary}.
d0ba6b
d0ba6b
%prep
d0ba6b
%setup -n %{pkg_name}-%{version} -qn %{srcname}-%{commit0}
d0ba6b
rm -rf node_modules/
d0ba6b
d0ba6b
%build
d0ba6b
#nothing to do
d0ba6b
d0ba6b
%install
d0ba6b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
d0ba6b
cp -pr index.js package.json \
d0ba6b
    %{buildroot}%{nodejs_sitelib}/%{srcname}
d0ba6b
d0ba6b
%nodejs_symlink_deps
d0ba6b
d0ba6b
d0ba6b
%if 0%{?enable_tests}
d0ba6b
d0ba6b
%check
d0ba6b
%nodejs_symlink_deps --check
d0ba6b
node test.js
d0ba6b
%endif
d0ba6b
d0ba6b
%files
d0ba6b
%{!?_licensedir:%global license %doc}
d0ba6b
%doc readme.md
d0ba6b
%license license
d0ba6b
%{nodejs_sitelib}/%{srcname}
d0ba6b
d0ba6b
%changelog
d0ba6b
* Fri Jul 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-10
d0ba6b
- rh-nodejs8 rebuild
d0ba6b
d0ba6b
* Mon Jan 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-9
d0ba6b
- Clean up
d0ba6b
d0ba6b
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-8
d0ba6b
- Use macro in -runtime dependency
d0ba6b
d0ba6b
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-7
d0ba6b
- Rebuilt with updated metapackage
d0ba6b
d0ba6b
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-6
d0ba6b
- Invoke find_provides_and_requires macro
d0ba6b
d0ba6b
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-5
d0ba6b
- Enable find provides and requires macro
d0ba6b
d0ba6b
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-4
d0ba6b
- Enable find provides and requires macro
d0ba6b
d0ba6b
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-3
d0ba6b
- Enable scl macros
d0ba6b
d0ba6b
* Sat Oct 17 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.0-1
d0ba6b
- Initial package