%{?scl:%scl_package nodejs-hosted-git-info} %{!?scl:%global pkg_name %{name}} # spec file for package nodejs-nodejs-hosted-git-info %global npm_name hosted-git-info %{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: %{?scl_prefix}nodejs-hosted-git-info Version: 2.1.5 Release: 2%{?dist} 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: %{?scl_prefix}nodejs-devel %if 0%{?enable_tests} #BuildRequires: %{?scl_prefix}npm(standard) #missing dependency BuildRequires: %{?scl_prefix}npm(tap) %endif %description Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab %prep %setup -q -n package %build #nothing to do %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 #standard && tap test/*.js #commented out because of missing dependency tap test/*.js %endif %files %{nodejs_sitelib}/hosted-git-info %doc README.md %license LICENSE %changelog * Mon May 28 2018 Zuzana Svetlikova - 2.1.5-2 - Resolves: RHBZ#1543198, rebuild for multiarch * Wed Sep 07 2016 Zuzana Svetlikova - 2.1.5-1 - Updated with script * Sun Feb 14 2016 Zuzana Svetlikova - 2.1.4-4 - rebuilt * Thu Nov 26 2015 Tomas Hrcka - 2.1.4-3 - Enable scl macros * Wed Jun 17 2015 Fedora Release Engineering - 2.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri May 22 2015 Zuzana Svetlikova - 2.1.4-1 - New upstream release with license * Wed May 13 2015 Zuzana Svetlikova - 2.1.2-1 - Initial build