Blame SPECS/nodejs-spdx-correct.spec

7747e2
%{?scl:%scl_package nodejs-spdx-correct}
7747e2
%{!?scl:%global pkg_name %{name}}
7747e2
7747e2
# spec file for package nodejs-nodejs-spdx-correct
7747e2
7747e2
%global npm_name spdx-correct
7747e2
%{?nodejs_find_provides_and_requires}
7747e2
7747e2
%global enable_tests 0
7747e2
7747e2
Name:		%{?scl_prefix}nodejs-spdx-correct
7747e2
Version:	1.0.2
7747e2
Release:	2%{?dist}
7747e2
Summary:	correct invalid SPDX identifiers
7747e2
Url:		https://github.com/kemitchell/spdx-correct.js#readme
7747e2
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
7747e2
License:	Apache-2.0
7747e2
7747e2
BuildArch:	noarch
7747e2
7747e2
%if 0%{?fedora} >= 19
7747e2
ExclusiveArch: %{nodejs_arches} noarch
7747e2
%else
7747e2
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
7747e2
%endif
7747e2
7747e2
BuildRequires:  %{?scl_prefix}nodejs-devel
7747e2
7747e2
%if 0%{?enable_tests}
7747e2
BuildRequires:	%{?scl_prefix}npm(defence-cli)
7747e2
BuildRequires:	%{?scl_prefix}npm(replace-require-self)
7747e2
BuildRequires:	%{?scl_prefix}npm(spdx-expression-parse)
7747e2
BuildRequires:	%{?scl_prefix}npm(tape)
7747e2
%endif
7747e2
7747e2
BuildRequires:	%{?scl_prefix}npm(spdx-license-ids)
7747e2
7747e2
Requires:	%{?scl_prefix}npm(spdx-license-ids)
7747e2
7747e2
%description
7747e2
correct invalid SPDX identifiers
7747e2
7747e2
%prep
7747e2
%setup -q -n package
7747e2
%nodejs_fixdep spdx-license-ids '>=1.0.1'
7747e2
rm -rf node_modules
7747e2
7747e2
%build
7747e2
7747e2
%install
7747e2
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
7747e2
7747e2
cp -pr package.json *.js \
7747e2
%{buildroot}%{nodejs_sitelib}/%{npm_name}
7747e2
7747e2
%{nodejs_symlink_deps}
7747e2
7747e2
%if 0%{?enable_tests}
7747e2
7747e2
%check
7747e2
%{nodejs_symlink_deps} --check
7747e2
7747e2
%endif
7747e2
7747e2
%files
7747e2
%{nodejs_sitelib}/spdx-correct
7747e2
7747e2
%doc README.md
7747e2
%doc LICENSE
7747e2
7747e2
%changelog
7747e2
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-2
7747e2
- rebuilt
7747e2
7747e2
* Mon Nov 23 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-1
7747e2
- Initial build