Blame SPECS/nodejs-arrify.spec

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