%global modulename remark-preset-lint-recommended %global npmlib_dir %{npmlib_sitelib} %global nodejs_dir %{nodejs_sitelib} %define __requires_exclude_from ^%{npmlib_dir}/%{modulename}/%{version}/tests?/.* Name: npmlib-remark-preset-lint-recommended Version: 3.0.2 Release: 1%{?dist} Summary: remark preset to configure remark-lint with rules that prevent mistakes or syntaxes that do not work correctly across vendors License: MIT URL: https://github.com/remarkjs/remark-lint/tree/master/packages/remark-preset-lint-recommended Source0: https://registry.npmjs.org/remark-preset-lint-recommended/-/remark-preset-lint-recommended-3.0.2.tgz BuildRequires: npmlib-packaging BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: ((npmlib(remark-lint) >= 6.0.0 with npmlib(remark-lint) < 7.0.0)) BuildRequires: ((npmlib(remark-lint-final-newline) >= 1.0.0 with npmlib(remark-lint-final-newline) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-list-item-bullet-indent) >= 1.0.0 with npmlib(remark-lint-list-item-bullet-indent) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-list-item-indent) >= 1.0.0 with npmlib(remark-lint-list-item-indent) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-auto-link-without-protocol) >= 1.0.0 with npmlib(remark-lint-no-auto-link-without-protocol) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-blockquote-without-marker) >= 2.0.0 with npmlib(remark-lint-no-blockquote-without-marker) < 3.0.0)) BuildRequires: ((npmlib(remark-lint-no-literal-urls) >= 1.0.0 with npmlib(remark-lint-no-literal-urls) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-ordered-list-marker-style) >= 1.0.0 with npmlib(remark-lint-ordered-list-marker-style) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-hard-break-spaces) >= 1.0.0 with npmlib(remark-lint-hard-break-spaces) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-duplicate-definitions) >= 1.0.0 with npmlib(remark-lint-no-duplicate-definitions) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-heading-content-indent) >= 1.0.0 with npmlib(remark-lint-no-heading-content-indent) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-inline-padding) >= 1.0.0 with npmlib(remark-lint-no-inline-padding) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-shortcut-reference-image) >= 1.0.0 with npmlib(remark-lint-no-shortcut-reference-image) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-shortcut-reference-link) >= 1.0.0 with npmlib(remark-lint-no-shortcut-reference-link) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-undefined-references) >= 1.0.0 with npmlib(remark-lint-no-undefined-references) < 2.0.0)) BuildRequires: ((npmlib(remark-lint-no-unused-definitions) >= 1.0.0 with npmlib(remark-lint-no-unused-definitions) < 2.0.0)) Requires: npmlib(%{modulename}) = %{version} %description remark preset to configure remark-lint with rules that prevent mistakes or syntaxes that do not work correctly across vendors %package 3.0.2 Summary: remark preset to configure remark-lint with rules that prevent mistakes or syntaxes that do not work correctly across vendors %description 3.0.2 remark preset to configure remark-lint with rules that prevent mistakes or syntaxes that do not work correctly across vendors %prep %autosetup -p0 -n package %build # Nothing to build %install mkdir -p %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr index.js %{buildroot}%{npmlib_dir}/%{modulename}/%{version} cp -pr package.json %{buildroot}%{npmlib_dir}/%{modulename}/%{version} 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 readme.md %{nodejs_dir}/%{modulename} %files 3.0.2 %doc readme.md %{npmlib_dir}/%{modulename}/%{version} %dir %{npmlib_dir}/%{modulename}/ %changelog * Thu Dec 6 2018 npm2srpm - 3.0.2-1 - Package automatically generated by npm2srpm