%global modulename acorn %global npmlib_dir %{npmlib_sitelib} %global nodejs_dir %{nodejs_sitelib} %define __requires_exclude_from ^%{npmlib_dir}/%{modulename}/%{version}/tests?/.* Name: npmlib-acorn Version: 2.7.0 Release: 1%{?dist} Summary: ECMAScript parser License: MIT URL: https://github.com/ternjs/acorn Source0: http://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz BuildRequires: npmlib-packaging BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch Requires: npmlib(%{modulename}) = %{version} %description ECMAScript parser %package 2.7.0 Summary: ECMAScript parser %description 2.7.0 ECMAScript parser %prep %autosetup -p0 -n package %build # Nothing to build %install mkdir -p %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr .editorconfig %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr .gitattributes %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr .npmignore %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr .tern-project %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr .travis.yml %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr bin %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr dist %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr package.json %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr src %{buildroot}%{npmlib_dir}/%{modulename}/%{version} mkdir -p %{buildroot}%{_bindir} ln -s %{npmlib_dir}/%{modulename}/%{version}/bin/acorn %{buildroot}/%{_bindir}/acorn mkdir -p %{buildroot}%{nodejs_dir} ln -s %{npmlib_dir}/%{modulename}/%{version} %{buildroot}/%{nodejs_dir}/%{modulename} %{npmlib_symlink_deps} %check %{npmlib_symlink_deps} . %{__nodejs} -e 'require("./")' %files %doc AUTHORS %doc README.md %license LICENSE %{_bindir}/acorn %{nodejs_dir}/%{modulename} %files 2.7.0 %doc AUTHORS %doc README.md %license LICENSE %{npmlib_dir}/%{modulename}/%{version} %dir %{npmlib_dir}/%{modulename}/ %changelog * Wed Dec 5 2018 npm2srpm - 2.7.0-1 - Package automatically generated by npm2srpm