Blame SPECS/nodejs-normalize-git-url.spec

b362a8
%{?scl:%scl_package nodejs-normalize-git-url}
b362a8
%{!?scl:%global pkg_name %{name}}
b362a8
b362a8
# spec file for package nodejs-nodejs-normalize-git-url
b362a8
b362a8
%global npm_name normalize-git-url
b362a8
%{?nodejs_find_provides_and_requires}
b362a8
b362a8
%global enable_tests 0
b362a8
b362a8
Name:		%{?scl_prefix}nodejs-normalize-git-url
b362a8
Version:    3.0.2
b362a8
Release:    1%{?dist}
b362a8
Summary:	Normalizes Git URLs. For npm, but you can use it too.
b362a8
Url:		https://github.com/npm/normalize-git-url
b362a8
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
b362a8
License:	ISC
b362a8
b362a8
BuildArch:	noarch
b362a8
ExclusiveArch:	%{nodejs_arches} noarch
b362a8
b362a8
BuildRequires:	%{?scl_prefix}nodejs-devel
b362a8
b362a8
%if 0%{?enable_tests}
b362a8
BuildRequires:	%{?scl_prefix}npm(tap)
b362a8
%endif
b362a8
b362a8
%description
b362a8
Normalizes Git URLs. For npm, but you can use it too.
b362a8
b362a8
%prep
b362a8
%setup -q -n package
b362a8
b362a8
%build
b362a8
#nothing to do
b362a8
b362a8
%install
b362a8
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
b362a8
b362a8
cp -pr package.json normalize-git-url.js \
b362a8
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
b362a8
b362a8
%{nodejs_symlink_deps}
b362a8
b362a8
%if 0%{?enable_tests}
b362a8
b362a8
%check
b362a8
%{nodejs_symlink_deps} --check
b362a8
tap test/*.js
b362a8
%endif
b362a8
b362a8
%files
b362a8
%{nodejs_sitelib}/normalize-git-url
b362a8
b362a8
%doc README.md
b362a8
%doc LICENSE
b362a8
b362a8
%changelog
b362a8
* Thu Sep 22 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.2-1
b362a8
- Updated with script
b362a8
b362a8
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.1-2
b362a8
- rebuilt
b362a8
b362a8
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 3.0.1-1
b362a8
- New upstream release
b362a8
b362a8
* Fri Nov 27 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-3
b362a8
- Enable SCL macros
b362a8
b362a8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
b362a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b362a8
b362a8
* Fri May 22 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-1
b362a8
- Rebuilt with new release containing license text
b362a8
b362a8
* Wed May 13 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-1
b362a8
- Initial build