diff --git a/hosted-git-info-2.1.4.tgz b/hosted-git-info-2.1.4.tgz new file mode 100644 index 0000000..e4ec89e Binary files /dev/null and b/hosted-git-info-2.1.4.tgz differ diff --git a/nodejs-hosted-git-info.spec b/nodejs-hosted-git-info.spec new file mode 100644 index 0000000..462dd96 --- /dev/null +++ b/nodejs-hosted-git-info.spec @@ -0,0 +1,44 @@ +%global npm_name hosted-git-info +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-hosted-git-info +Version: 2.1.4 +Release: 1 +Summary: Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab +Url: https://github.com/npm/hosted-git-info +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: ISC +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-devel nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(tap) +%endif +%description +Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pr package.json index.js git-host.js git-host-info.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} +%{nodejs_symlink_deps} +%if 0%{?enable_tests} + +%check +%{nodejs_symlink_deps} --check +tap test/*.js +%endif + +%files +%{nodejs_sitelib}/hosted-git-info +%doc README.md +%license LICENSE + +%changelog +* Thu Aug 20 2020 yaokai - 2.1.4-1 +- package init diff --git a/nodejs-hosted-git-info.yaml b/nodejs-hosted-git-info.yaml new file mode 100644 index 0000000..66b14c0 --- /dev/null +++ b/nodejs-hosted-git-info.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: npm/hosted-git-info +tag_pattern: "^v" +seperator: "."