diff --git a/nodejs-findup-sync.spec b/nodejs-findup-sync.spec new file mode 100644 index 0000000..7d3b9a4 --- /dev/null +++ b/nodejs-findup-sync.spec @@ -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/js-cli/node-findup-sync +Source0: https://github.com/js-cli/node-findup-sync/archive/v%{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 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 - 0.3.0-1 +- package init diff --git a/nodejs-findup-sync.yaml b/nodejs-findup-sync.yaml new file mode 100644 index 0000000..f75192e --- /dev/null +++ b/nodejs-findup-sync.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: js-cli/node-findup-sync +tag_prefix: "^v" +seperator: "." diff --git a/v0.3.0.tar.gz b/v0.3.0.tar.gz new file mode 100644 index 0000000..528f4b9 Binary files /dev/null and b/v0.3.0.tar.gz differ