Blame SPECS/nodejs-validate-npm-package-name.spec

4da84d
%{?scl:%scl_package nodejs-validate-npm-package-name}
4da84d
%{!?scl:%global pkg_name %{name}}
4da84d
4da84d
# spec file for package nodejs-nodejs-validate-npm-package-name
4da84d
4da84d
%global npm_name validate-npm-package-name
4da84d
%global commit 3af92c881549f1b96f05ab6bfb5768bba94ad72d
4da84d
%{?nodejs_find_provides_and_requires}
4da84d
4da84d
%global enable_tests 0
4da84d
4da84d
Name:		%{?scl_prefix}nodejs-validate-npm-package-name
4da84d
Version:	2.2.2
4da84d
Release:	3%{?dist}
4da84d
Summary:	Give me a string and I'll tell you if it's a valid npm package name
4da84d
Url:		https://github.com/npm/validate-npm-package-name
4da84d
Source0:	https://github.com/npm/%{npm_name}/archive/%{commit}/%{npm_name}-%{commit}.tar.gz
4da84d
License:	ISC
4da84d
4da84d
BuildArch:	noarch
4da84d
ExclusiveArch:	%{nodejs_arches} noarch
4da84d
4da84d
4da84d
%if 0%{?enable_tests}
4da84d
BuildRequires:	%{?scl_prefix}npm(tap)
4da84d
%endif
4da84d
4da84d
BuildRequires:	%{?scl_prefix}npm(builtins)
4da84d
4da84d
%description
4da84d
Give me a string and I'll tell you if it's a valid npm package name
4da84d
4da84d
%prep
4da84d
%setup -q -n %{npm_name}-%{commit}
4da84d
4da84d
%nodejs_fixdep builtins
4da84d
4da84d
%build
4da84d
#nothing to do
4da84d
4da84d
%install
4da84d
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
4da84d
4da84d
cp -pr package.json index.js \
4da84d
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
4da84d
4da84d
%{nodejs_symlink_deps}
4da84d
4da84d
%if 0%{?enable_tests}
4da84d
4da84d
%check
4da84d
%{nodejs_symlink_deps} --check
4da84d
tap test/*.js
4da84d
%endif
4da84d
4da84d
%files
4da84d
%{nodejs_sitelib}/validate-npm-package-name
4da84d
4da84d
%doc README.md
4da84d
%doc LICENSE
4da84d
4da84d
%changelog
4da84d
* Fri Nov 27 2015 Tomas Hrcka <thrcka@redhat.com> - 2.2.2-3
4da84d
- Enable SCL macros
4da84d
4da84d
* Tue Jul 28 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.2-2
4da84d
- Add nodejs_fixdep macro
4da84d
4da84d
* Tue Jun 30 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.2-1
4da84d
- Initial build