Blame SPECS/nodejs-hosted-git-info.spec

41b9c8
%{?scl:%scl_package nodejs-hosted-git-info}
41b9c8
%{!?scl:%global pkg_name %{name}}
41b9c8
41b9c8
# spec file for package nodejs-nodejs-hosted-git-info
41b9c8
41b9c8
%global npm_name hosted-git-info
41b9c8
%{?nodejs_find_provides_and_requires}
41b9c8
41b9c8
%global enable_tests 0
41b9c8
41b9c8
Name:           %{?scl_prefix}nodejs-hosted-git-info
41b9c8
Version:    2.1.5
5d4b9a
Release:    2%{?dist}
41b9c8
Summary:        Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
41b9c8
Url:            https://github.com/npm/hosted-git-info
41b9c8
Source0:        https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
41b9c8
License:        ISC
41b9c8
41b9c8
BuildArch:	noarch
41b9c8
ExclusiveArch:	%{nodejs_arches} noarch
41b9c8
41b9c8
BuildRequires:  %{?scl_prefix}nodejs-devel
41b9c8
41b9c8
%if 0%{?enable_tests}
41b9c8
#BuildRequires: %{?scl_prefix}npm(standard)
41b9c8
#missing dependency
41b9c8
BuildRequires: %{?scl_prefix}npm(tap)
41b9c8
%endif
41b9c8
41b9c8
%description
41b9c8
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
41b9c8
41b9c8
%prep
41b9c8
%setup -q -n package
41b9c8
41b9c8
%build
41b9c8
#nothing to do
41b9c8
41b9c8
%install
41b9c8
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
41b9c8
41b9c8
cp -pr package.json index.js git-host.js git-host-info.js \
41b9c8
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
41b9c8
41b9c8
%{nodejs_symlink_deps}
41b9c8
41b9c8
%if 0%{?enable_tests}
41b9c8
41b9c8
%check
41b9c8
%{nodejs_symlink_deps} --check
41b9c8
#standard && tap test/*.js
41b9c8
#commented out because of missing dependency
41b9c8
tap test/*.js
41b9c8
%endif
41b9c8
41b9c8
%files
41b9c8
%{nodejs_sitelib}/hosted-git-info
41b9c8
41b9c8
%doc README.md
41b9c8
%license LICENSE
41b9c8
41b9c8
%changelog
5d4b9a
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.1.5-2
5d4b9a
- Resolves: RHBZ#1543198, rebuild for multiarch
5d4b9a
41b9c8
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.1.5-1
41b9c8
- Updated with script
41b9c8
41b9c8
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.1.4-4
41b9c8
- rebuilt
41b9c8
41b9c8
* Thu Nov 26 2015 Tomas Hrcka <thrcka@redhat.com> - 2.1.4-3
41b9c8
- Enable scl macros
41b9c8
41b9c8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-2
41b9c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
41b9c8
41b9c8
* Fri May 22 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.1.4-1
41b9c8
- New upstream release with license
41b9c8
41b9c8
* Wed May 13 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.1.2-1
41b9c8
- Initial build