fuanan add package

This commit is contained in:
fwx913451 2020-08-28 17:49:07 +08:00
parent 1977149b11
commit 7f91b05ebd
3 changed files with 50 additions and 0 deletions

Binary file not shown.

46
nodejs-findup-sync.spec Normal file
View File

@ -0,0 +1,46 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-findup-sync
Version: 0.3.0
Release: 1
Summary: Find the first file matching a given pattern
License: MIT
URL: https://github.com/gulpjs/findup-sync
Source0: https://github.com/js-cli/node-findup-sync/archive/v%{version}/nodejs-findup-sync-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(nodeunit) npm(glob) npm(lodash)
%endif
%description
Find the first file matching a given pattern in the current directory or
the nearest ancestor directory.
%prep
%autosetup -n node-findup-sync-%{version}
%nodejs_fixdep glob '^6.0.3'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/findup-sync
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/findup-sync
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/nodeunit/bin/nodeunit test/
%endif
%files
%{!?_licensedir:%global license %doc}
%doc README.md
%license LICENSE-MIT
%{nodejs_sitelib}/findup-sync
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 0.3.0-1
- package init

4
nodejs-findup-sync.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: js-cli/node-findup-sync
tag_prefix: "^v"
seperator: "."