commit
f8c2b356b5
49
nodejs-samsam.spec
Normal file
49
nodejs-samsam.spec
Normal file
@ -0,0 +1,49 @@
|
||||
%global enable_tests 0
|
||||
%global srcname samsam
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 1.1.2
|
||||
Release: 1
|
||||
Summary: Value identification and comparison functions
|
||||
License: BSD
|
||||
URL: https://github.com/busterjs/samsam
|
||||
Source0: https://registry.npmjs.org/samsam/-/samsam-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(buster)
|
||||
%endif
|
||||
%description
|
||||
samsam is a collection of predicate and comparison functions useful to
|
||||
identify the type of values and to compare values with varying degrees of
|
||||
strictness.
|
||||
samsam is a general-purpose library with no dependencies. It works in browsers
|
||||
(including old and rowdy ones, like IE6) and Node. It will define itself as an
|
||||
AMD module if you want it to (i.e. if there's a define function available).
|
||||
samsam was originally extracted from the referee assertion library, which
|
||||
ships with the Buster.JS testing framework.
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} test/samsam-test.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc AUTHORS Readme.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 1.1.2-1
|
||||
- package init
|
||||
4
nodejs-samsam.yaml
Normal file
4
nodejs-samsam.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: sinonjs/samsam
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
BIN
samsam-1.1.2.tgz
Normal file
BIN
samsam-1.1.2.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user