Package init

This commit is contained in:
lei_ju 2020-08-20 20:55:25 +08:00
parent dace40b6e8
commit 1b6bfc7d18
3 changed files with 48 additions and 0 deletions

BIN
duplexer-0.1.1.tgz Normal file

Binary file not shown.

44
nodejs-duplexer.spec Normal file
View File

@ -0,0 +1,44 @@
%global enable_tests 1
%global module_name duplexer
Name: nodejs-%{module_name}
Version: 0.1.1
Release: 1
Summary: Creates a duplex stream
License: MIT
URL: https://github.com/Raynos/duplexer
Source0: http://registry.npmjs.org/duplexer/-/duplexer-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(tape) npm(through)
%endif
%description
%{summary}.
%prep
%setup -q -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
node test
%endif
%files
%doc README.md LICENCE
%{nodejs_sitelib}/%{module_name}
%changelog
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 0.1.1-1
- Package init

4
nodejs-duplexer.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: Raynos/duplexer
tag_prefix: "^v"
seperator: "."