# This macro is needed at the start for building on EL6 %{?nodejs_find_provides_and_requires} %global srcname grunt-util-options Name: nodejs-%{srcname} Version: 0.0.2 Release: 2%{?dist} Summary: Grunt util for getting options # license requested: https://github.com/mikaelkaron/grunt-util-options/pull/1 License: MIT URL: https://github.com/mikaelkaron/grunt-util-options Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz Source1: %{name}-LICENSE-MIT BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %description %{summary}. %prep %setup -q -n package rm -rf node_modules/ cp -p %{SOURCE1} LICENSE-MIT %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json main.js %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %files %doc README.md %license LICENSE-MIT %{nodejs_sitelib}/%{srcname} %changelog * Mon Jul 06 2015 Piotr Popieluch - 0.0.2-2 - Add license * Fri Jan 02 2015 Piotr Popieluch - 0.0.2-1 - Initial package