Projects
Mega:24.03
nodejs-ansi-styles
_service:tar_scm:nodejs-ansi-styles.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodejs-ansi-styles.spec of Package nodejs-ansi-styles
%{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-ansi-styles Version: 2.1.0 Release: 2 Summary: ANSI escape codes for colorizing strings in the terminal License: MIT URL: https://github.com/sindresorhus/ansi-styles Source0: http://registry.npmjs.org/ansi-styles/-/ansi-styles-%{version}.tgz Source1: https://raw.githubusercontent.com/chalk/ansi-styles/v%{version}/test.js BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(mocha) npm(chalk) npm(import-fresh) %endif %description %{summary}. %prep %setup -q -n package cp -p %{SOURCE1} . %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/ansi-styles cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/ansi-styles %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %if 0%{?enable_tests} ln -s %{nodejs_sitelib}/chalk node_modules/chalk %{_bindir}/mocha -R spec %else %{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" %endif %files %{!?_licensedir:%global license %doc} %doc readme.md %license license %{nodejs_sitelib}/ansi-styles %changelog * Wed Dec 27 2023 Ge Wang <wang__Ge@126.com> - 2.1.0-2 - Adapt build require due to require-uncached updated * Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 2.1.0-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2