%{?nodejs_find_provides_and_requires} %global packagename autoprefixer Name: nodejs-autoprefixer Version: 7.1.6 Release: 1%{?dist} Summary: Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website License: MIT URL: https://github.com/postcss/autoprefixer.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(browserslist) BuildRequires: npm(caniuse-lite) BuildRequires: npm(normalize-range) BuildRequires: npm(num2fraction) BuildRequires: npm(postcss) BuildRequires: npm(postcss-value-parser) Provides: npm(%{packagename}) %description Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website %prep %setup -n "package" rm -Rf node_modules %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