Blame SPECS/nodejs-spdx-expression-parse.spec

67680b
%{?scl:%scl_package nodejs-spdx-expression-parse}
67680b
%{!?scl:%global pkg_name %{name}}
67680b
67680b
# spec file for package nodejs-nodejs-spdx-expression-parse
67680b
67680b
%global npm_name spdx-expression-parse
67680b
%{?nodejs_find_provides_and_requires}
67680b
67680b
%global enable_tests 0
67680b
67680b
Name:		%{?scl_prefix}nodejs-spdx-expression-parse
67680b
Version:	1.0.1
67680b
Release:	1%{?dist}
67680b
Summary:	parse SPDX license expressions
67680b
Url:		https://github.com/kemitchell/spdx-expression-parse.js#readme
67680b
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
67680b
License:	(MIT AND CC-BY-3.0)
67680b
67680b
BuildArch:	noarch
67680b
67680b
%if 0%{?fedora} >= 19
67680b
ExclusiveArch: %{nodejs_arches} noarch
67680b
%else
67680b
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
67680b
%endif
67680b
67680b
BuildRequires:  %{?scl_prefix}nodejs-devel
67680b
67680b
%if 0%{?enable_tests}
67680b
BuildRequires:	%{?scl_prefix}npm(defence-cli)
67680b
BuildRequires:	%{?scl_prefix}npm(jison)
67680b
BuildRequires:	%{?scl_prefix}npm(replace-require-self)
67680b
BuildRequires:	%{?scl_prefix}npm(uglify-js)
67680b
%endif
67680b
67680b
BuildRequires:	%{?scl_prefix}npm(spdx-exceptions)
67680b
BuildRequires:	%{?scl_prefix}npm(spdx-license-ids)
67680b
67680b
Requires:	%{?scl_prefix}npm(spdx-exceptions)
67680b
Requires:	%{?scl_prefix}npm(spdx-license-ids)
67680b
67680b
%description
67680b
parse SPDX license expressions
67680b
67680b
%prep
67680b
%setup -q -n package
67680b
67680b
rm -rf node_modules
67680b
67680b
%build
67680b
67680b
%install
67680b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
67680b
67680b
cp -pr package.json *.js \
67680b
%{buildroot}%{nodejs_sitelib}/%{npm_name}
67680b
67680b
%{nodejs_symlink_deps}
67680b
67680b
%if 0%{?enable_tests}
67680b
67680b
%check
67680b
%{nodejs_symlink_deps} --check
67680b
67680b
%endif
67680b
67680b
%files
67680b
%{nodejs_sitelib}/spdx-expression-parse
67680b
67680b
%doc README.md
67680b
67680b
%changelog
67680b
* Mon Nov 23 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-1
67680b
- Initial build