package init

This commit is contained in:
zhanghua1831 2020-08-20 10:36:31 +08:00
parent a5e8102927
commit fae3363850
3 changed files with 43 additions and 0 deletions

39
nodejs-uri-path.spec Normal file
View File

@ -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 <zhanghua40@huawei.com> - 1.0.0-1
- package init

4
nodejs-uri-path.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: UltCombo/uri-path
tag_pattern: "^v"
seperator: "."

BIN
uri-path-1.0.0.tgz Normal file

Binary file not shown.