commit
ef8e8b8591
48
nodejs-isexe.spec
Normal file
48
nodejs-isexe.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global packagename isexe
|
||||
%global enable_tests 0
|
||||
Name: nodejs-isexe
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Minimal module to check if a file is executable
|
||||
License: ISC
|
||||
URL: https://github.com/isaacs/isexe
|
||||
Source0: https://github.com/isaacs/isexe/archive/v%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(mkdirp) npm(rimraf) npm(tap)
|
||||
%endif
|
||||
%description
|
||||
Minimal module to check if a file is executable.
|
||||
|
||||
%prep
|
||||
%autosetup -n isexe-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
cp -pr package.json *.js \
|
||||
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
%{_bindir}/tap test/*.js
|
||||
%else
|
||||
%{_bindir}/echo "Tests disabled..."
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc *.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 2.0.0-1
|
||||
- package init
|
||||
5
nodejs-isexe.yaml
Normal file
5
nodejs-isexe.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/isaacs/isexe
|
||||
version_control: github
|
||||
src_repo: isaacs/isexe
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
v2.0.0.tar.gz
Normal file
BIN
v2.0.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user