Группа :: Development/Tools
Пакет: node-eslint
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define node_module eslint
%filter_from_requires /^nodejs.engine./d
%{?nodejs_find_provides_and_requires}
Name: node-eslint
Version: 7.11.0
Release: alt1
Summary: Find and fix problems in your JavaScript code
License: MIT License
Group: Development/Tools
Url: https://eslint.org/
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/eslint/eslint/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-production-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-intro >= 1.9.18
BuildRequires: rpm-build-nodejs node
BuildRequires(pre): rpm-macros-nodejs
Requires: node >= 8
# rpm-build-nodejs
Provides: nodejs-%node_module = %version-%release
Obsoletes: nodejs-%node_module < %version
Provides: %node_module = %version-%release
AutoReq: no
AutoProv: no
%description
ESLint is a tool for identifying and reporting on patterns found
in ECMAScript/JavaScript code.
In many ways, it is similar to JSLint and JSHint with a few exceptions:
* ESLint uses Espree for JavaScript parsing.
* ESLint uses an AST to evaluate patterns in code.
* ESLint is completely pluggable, every single rule is a plugin and you can add more at runtime.
%prep
%setup -a 1
%build
%install
mkdir -p %buildroot%_bindir
ln -sr %buildroot%nodejs_sitelib/%node_module/bin/eslint.js %buildroot%_bindir/%node_module
mkdir -p %buildroot%nodejs_sitelib/%node_module/
cp -a * %buildroot/%nodejs_sitelib/%node_module/
rm -rf %buildroot/%nodejs_sitelib/%node_module/{docs,tests}/
%files
%doc README.md
%doc docs/
%_bindir/%node_module
%nodejs_sitelib/%node_module/
%changelog
…
Полный changelog можно просмотреть здесь
%filter_from_requires /^nodejs.engine./d
%{?nodejs_find_provides_and_requires}
Name: node-eslint
Version: 7.11.0
Release: alt1
Summary: Find and fix problems in your JavaScript code
License: MIT License
Group: Development/Tools
Url: https://eslint.org/
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/eslint/eslint/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-production-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-intro >= 1.9.18
BuildRequires: rpm-build-nodejs node
BuildRequires(pre): rpm-macros-nodejs
Requires: node >= 8
# rpm-build-nodejs
Provides: nodejs-%node_module = %version-%release
Obsoletes: nodejs-%node_module < %version
Provides: %node_module = %version-%release
AutoReq: no
AutoProv: no
%description
ESLint is a tool for identifying and reporting on patterns found
in ECMAScript/JavaScript code.
In many ways, it is similar to JSLint and JSHint with a few exceptions:
* ESLint uses Espree for JavaScript parsing.
* ESLint uses an AST to evaluate patterns in code.
* ESLint is completely pluggable, every single rule is a plugin and you can add more at runtime.
%prep
%setup -a 1
%build
%install
mkdir -p %buildroot%_bindir
ln -sr %buildroot%nodejs_sitelib/%node_module/bin/eslint.js %buildroot%_bindir/%node_module
mkdir -p %buildroot%nodejs_sitelib/%node_module/
cp -a * %buildroot/%nodejs_sitelib/%node_module/
rm -rf %buildroot/%nodejs_sitelib/%node_module/{docs,tests}/
%files
%doc README.md
%doc docs/
%_bindir/%node_module
%nodejs_sitelib/%node_module/
%changelog
…
Полный changelog можно просмотреть здесь