diff --git a/nodejs-uri-path.spec b/nodejs-uri-path.spec new file mode 100644 index 0000000..b23ad07 --- /dev/null +++ b/nodejs-uri-path.spec @@ -0,0 +1,39 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-uri-path +Version: 1.0.0 +Release: 1 +Summary: Convert relative file system paths into safe URI paths +License: MIT +URL: https://www.npmjs.com/package/uri-path +Source0: https://registry.npmjs.org/uri-path/-/uri-path-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +BuildRequires: npm(mocha) npm(should) +%description +%{summary}. + +%prep +%autosetup -n package +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/uri-path +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/uri-path +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" +%{nodejs_sitelib}/mocha/bin/mocha + +%files +%doc README.md CONTRIBUTING.md +%license LICENSE-WTFPL LICENSE-MIT +%{nodejs_sitelib}/uri-path + +%changelog +* Tue Aug 11 2020 zhanghua - 1.0.0-1 +- package init diff --git a/nodejs-uri-path.yaml b/nodejs-uri-path.yaml new file mode 100644 index 0000000..724117d --- /dev/null +++ b/nodejs-uri-path.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: UltCombo/uri-path +tag_pattern: "^v" +seperator: "." diff --git a/uri-path-1.0.0.tgz b/uri-path-1.0.0.tgz new file mode 100644 index 0000000..c2e8ee8 Binary files /dev/null and b/uri-path-1.0.0.tgz differ