fuanan add package

This commit is contained in:
fwx913451 2020-08-20 09:29:40 +08:00
parent 515313f01f
commit 0d56cc5d8c
4 changed files with 71 additions and 0 deletions

BIN
charm-0.1.2.tgz Normal file

Binary file not shown.

32
nodejs-charm.spec Normal file
View File

@ -0,0 +1,32 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-charm
Version: 0.1.2
Release: 1
Summary: ANSI control sequences for terminal cursor hopping and colors
License: MIT
URL: https://github.com/substack/node-charm
Source0: https://registry.npmjs.org/charm/-/charm-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging
%description
Uses ANSI control sequences to write colors and cursor positions to terminals.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/charm
cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/charm
%nodejs_symlink_deps
%files
%{nodejs_sitelib}/charm
%doc README.markdown example
%changelog
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 0.1.2-1
- Package init

35
nodejs-charm.spec.old Normal file
View File

@ -0,0 +1,35 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-charm
Version: 0.1.2
Release: 1
Summary: ANSI control sequences for terminal cursor hopping and colors
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif
License: MIT
URL: https://github.com/substack/node-charm
Source0: https://registry.npmjs.org/charm/-/charm-%{version}.tgz
BuildRequires: nodejs-packaging
%description
Uses ANSI control sequences to write colors and cursor positions to terminals.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/charm
cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/charm
%nodejs_symlink_deps
%files
%{nodejs_sitelib}/charm
%doc README.markdown example
%changelog
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 0.1.2-1
- Package init

4
nodejs-charm.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: substack/node-charm
tag_prefix: "^"
seperator: "."