Name: cssnano Version: 7.0.6 Release: %autorelease Summary: Modular minifier built on top of the PostCSS ecosystem License: BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND CC-BY-4.0 AND ISC AND MIT URL: https://cssnano.github.io/cssnano/ Source0: https://registry.npmjs.org/%{name}/-/%{name}-%{version}.tgz Source1: %{name}-%{version}-nm-prod.tgz Source2: %{name}-%{version}-nm-dev.tgz Source3: %{name}-%{version}-bundled-licenses.txt BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Requires: nodejs BuildRequires: nodejs-devel %description cssnano is a modern, modular compression tool written on top of the PostCSS ecosystem, which allows us to use a lot of powerful features in order to compact CSS appropriately. %prep %setup -q -n package cp %{SOURCE3} . # Setup bundled runtime(prod) node modules tar xfz %{SOURCE1} mkdir -p node_modules pushd node_modules ln -s ../node_modules_prod/* . ln -s ../node_modules_prod/.bin . popd %build # nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{name} cp -pr package.json src/ %{buildroot}%{nodejs_sitelib}/%{name}/ %check %{__nodejs} -e 'require("./")' %files %doc README.md %license LICENSE-MIT %{name}-%{version}-bundled-licenses.txt %{nodejs_sitelib}/%{name}/ %changelog %autochangelog