commit
5a412321ce
45
nodejs-caseless.spec
Normal file
45
nodejs-caseless.spec
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
%global enable_tests 1
|
||||||
|
%global srcname caseless
|
||||||
|
Name: nodejs-%{srcname}
|
||||||
|
Version: 0.11.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Encode and decode streams into string streams
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: https://github.com/mikeal/caseless
|
||||||
|
Source0: https://github.com/request/caseless/archive/v%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tape)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{srcname}-%{version}
|
||||||
|
rm -rf node_modules
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
node test.js
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{srcname}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 0.11.1-1
|
||||||
|
- Package init
|
||||||
4
nodejs-caseless.yaml
Normal file
4
nodejs-caseless.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: mikeal/caseless
|
||||||
|
tag_prefix: "v"
|
||||||
|
seperator: "."
|
||||||
BIN
v0.11.1.tar.gz
Normal file
BIN
v0.11.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user