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

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