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

60418a
%{?scl:%scl_package nodejs-validate-npm-package-license}
60418a
%{!?scl:%global pkg_name %{name}}
60418a
60418a
# spec file for package nodejs-nodejs-validate-npm-package-license
60418a
60418a
%global npm_name validate-npm-package-license
60418a
%{?nodejs_find_provides_and_requires}
60418a
60418a
%global enable_tests 0
60418a
60418a
Name:		%{?scl_prefix}nodejs-validate-npm-package-license
60418a
Version:	3.0.1
a69e5d
Release:	3%{?dist}
60418a
Summary:	Give me a string and I'll tell you if it's a valid npm package license string
60418a
Url:		https://github.com/kemitchell/validate-npm-package-license.js#readme
60418a
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
60418a
License:	Apache-2.0
60418a
60418a
BuildArch:	noarch
60418a
60418a
%if 0%{?fedora} >= 19
60418a
ExclusiveArch: %{nodejs_arches} noarch
60418a
%else
a69e5d
ExclusiveArch: %{nodejs_arches} noarch
60418a
%endif
60418a
60418a
BuildRequires:  %{?scl_prefix}nodejs-devel
60418a
60418a
%if 0%{?enable_tests}
60418a
BuildRequires:	%{?scl_prefix}npm(defence-cli)
60418a
BuildRequires:	%{?scl_prefix}npm(replace-require-self)
60418a
%endif
60418a
60418a
%description
60418a
Give me a string and I'll tell you if it's a valid npm package license string
60418a
60418a
%prep
60418a
%setup -q -n package
60418a
60418a
rm -rf node_modules
60418a
60418a
%build
60418a
60418a
%install
60418a
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
60418a
60418a
cp -pr package.json *.js \
60418a
%{buildroot}%{nodejs_sitelib}/%{npm_name}
60418a
60418a
%{nodejs_symlink_deps}
60418a
60418a
%if 0%{?enable_tests}
60418a
60418a
%check
60418a
%{nodejs_symlink_deps} --check
60418a
60418a
%endif
60418a
60418a
%files
60418a
%{nodejs_sitelib}/validate-npm-package-license
60418a
60418a
%doc README.md
60418a
%doc LICENSE
60418a
60418a
%changelog
a69e5d
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.1-3
a69e5d
- Resolves: RHBZ#1543198, rebuild for multiarch
a69e5d
60418a
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.1-2
60418a
- rebuilt
60418a
60418a
* Mon Nov 23 2015 Tomas Hrcka <thrcka@redhat.com> - 3.0.1-1
60418a
- Initial build