!2 add package

Merge pull request !2 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-08-22 13:00:10 +08:00 committed by Gitee
commit c0b5a2e840
6 changed files with 148 additions and 73 deletions

View File

@ -1,36 +0,0 @@
# nodejs-cli-color
#### Description
Colors, formatting and other tools for the console
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,37 +0,0 @@
# nodejs-cli-color
#### 介绍
Colors, formatting and other tools for the console
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
cli-color-1.1.0.tgz Normal file

Binary file not shown.

50
nodejs-cli-color.spec Normal file
View File

@ -0,0 +1,50 @@
%{?nodejs_find_provides_and_requires}
%global packagename cli-color
%global enable_tests 0
Name: nodejs-cli-color
Version: 1.1.0
Release: 1
Summary: Colors, formatting and other tools for the console
License: MIT
URL: https://github.com/medikoo/cli-color.git
Source0: https://registry.npmjs.org/cli-color/-/cli-color-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging npm(ansi-regex) npm(d) npm(es5-ext) npm(es6-iterator)
BuildRequires: npm(memoizee) npm(timers-ext)
%if 0%{?enable_tests}
BuildRequires: npm(tad)
%endif
Requires: nodejs
%description
Colors, formatting and other tools for the console
%prep
%setup -q -n package
%nodejs_fixdep d '<2.0.0'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js lib/ bin/ \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/tad
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md examples/
%license LICENSE
%{nodejs_sitelib}/%{packagename}
%changelog
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 1.1.0-1
- package init

94
nodejs-cli-color.spec.old Normal file
View File

@ -0,0 +1,94 @@
%{?nodejs_find_provides_and_requires}
%global packagename cli-color
%global enable_tests 0
# tests disabled due to dependency on npm(tad), which hasn't been packaged
# in Fedora, and has a circular dependency on this package
Name: nodejs-cli-color
Version: 1.1.0
Release: 7%{?dist}
Summary: Colors, formatting and other tools for the console
License: MIT
URL: https://github.com/medikoo/cli-color.git
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif
BuildRequires: nodejs-packaging
BuildRequires: npm(ansi-regex)
BuildRequires: npm(d)
BuildRequires: npm(es5-ext)
BuildRequires: npm(es6-iterator)
BuildRequires: npm(memoizee)
BuildRequires: npm(timers-ext)
%if 0%{?enable_tests}
BuildRequires: npm(tad)
%endif
Requires: nodejs
%description
Colors, formatting and other tools for the console
%prep
%setup -q -n package
%nodejs_fixdep d '<2.0.0'
# Use either 0.1.x or 1.x.x versions of npm(d)
%build
# nothing to do!
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js lib/ bin/ \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/tad
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md examples/
%license LICENSE
%{nodejs_sitelib}/%{packagename}
%changelog
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Nov 6 2015 Jared Smith <jsmith@fedoraproject.org> - 1.1.0-1
- Initial packaging

4
nodejs-cli-color.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: medikoo/cli-color
tag_prefix: "^"
seperator: "."