%{?nodejs_find_provides_and_requires} %global packagename reduce-css-calc Name: nodejs-reduce-css-calc Version: 1.3.0 Release: 1%{?dist} Summary: Reduce CSS calc() function to the maximum License: MIT URL: https://github.com/MoOx/reduce-css-calc.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(balanced-match) BuildRequires: npm(math-expression-evaluator) BuildRequires: npm(reduce-function-call) Provides: npm(%{packagename}) %description Reduce CSS calc() function to the maximum %prep %setup -n "package" rm -Rf node_modules %nodejs_fixdep balanced-match %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr * %{buildroot}%{nodejs_sitelib}/%{packagename} %{nodejs_symlink_deps} %check %{nodejs_symlink_deps} --check %{__nodejs} -e 'require("./")' %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog