diff --git a/nodejs-fileset.spec b/nodejs-fileset.spec new file mode 100644 index 0000000..9993e8e --- /dev/null +++ b/nodejs-fileset.spec @@ -0,0 +1,48 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-fileset +Version: 0.2.1 +Release: 1 +Summary: A wrapper around glob and minimatch for Node.js +License: MIT +URL: https://github.com/mklabs/node-fileset +Source0: https://github.com/mklabs/node-fileset/archive/v%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(glob) +%endif +%description +This Node.js module exposes a basic wrapper on top of nodejs-glob and +nodejs-minimatch. It adds multiple patterns matching and allows a list +of include patterns and optional exclude patterns. + +%prep +%autosetup -n node-fileset-%{version} +%nodejs_fixdep glob +%nodejs_fixdep minimatch + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/fileset +cp -pr package.json lib/ \ + %{buildroot}%{nodejs_sitelib}/fileset +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +%__nodejs ./tests/test.js && %__nodejs ./tests/test-sync.js +%endif + +%files +%doc README.md CHANGELOG.md +%license LICENSE-MIT +%{nodejs_sitelib}/fileset + +%changelog +* Thu Aug 20 2020 Anan Fu - 0.2.1-1 +- package init diff --git a/nodejs-fileset.yaml b/nodejs-fileset.yaml new file mode 100644 index 0000000..5eeeed4 --- /dev/null +++ b/nodejs-fileset.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: mklabs/node-fileset +tag_prefix: "^v" +seperator: "." diff --git a/v0.2.1.tar.gz b/v0.2.1.tar.gz new file mode 100644 index 0000000..a32bcd1 Binary files /dev/null and b/v0.2.1.tar.gz differ