commit
183e24e568
BIN
constantinople-2.0.0.tgz
Normal file
BIN
constantinople-2.0.0.tgz
Normal file
Binary file not shown.
51
nodejs-constantinople.spec
Normal file
51
nodejs-constantinople.spec
Normal file
@ -0,0 +1,51 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 1
|
||||
Name: nodejs-constantinople
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Determine whether a JavaScript expression evaluates to a constant
|
||||
License: MIT
|
||||
URL: https://github.com/ForbesLindesay/constantinople
|
||||
Source0: http://registry.npmjs.org/constantinople/-/constantinople-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: mocha uglify-js
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
find . -type f -exec chmod -x '{}' \;
|
||||
for i in LICENSE README.md; do
|
||||
sed -i -e 's/\r$//' "${i}"
|
||||
done
|
||||
%nodejs_fixdep uglify-js '^2.2'
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/constantinople
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_sitelib}/constantinople
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
if [ ! -d node_modules/uglify-js ]; then
|
||||
ln -sf /usr/lib/node_modules/uglify-js node_modules/uglify-js
|
||||
fi
|
||||
/usr/bin/mocha -R spec
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc LICENSE README.md
|
||||
%{nodejs_sitelib}/constantinople
|
||||
|
||||
%changelog
|
||||
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 2.0.0-1
|
||||
- Package init
|
||||
4
nodejs-constantinople.yaml
Normal file
4
nodejs-constantinople.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_rpeo: puhjs/constantinople
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user