Blame SPECS/nodejs-spdx-license-ids.spec

291e84
%{?scl:%scl_package nodejs-spdx-license-ids}
291e84
%{!?scl:%global pkg_name %{name}}
291e84
291e84
# spec file for package nodejs-nodejs-spdx-license-ids
291e84
291e84
%global commit 05c7466fcd62c8642006ef354c95064fcade3a03
291e84
291e84
%global npm_name spdx-license-ids
291e84
%{?nodejs_find_provides_and_requires}
291e84
291e84
%global enable_tests 0
291e84
291e84
Name:		%{?scl_prefix}nodejs-spdx-license-ids
291e84
Version:	1.0.1
291e84
Release:	2%{?dist}
291e84
Summary:	A list of SPDX license identifiers
291e84
Url:		https://github.com/shinnn/spdx-license-ids
291e84
Source0:	https://github.com/shinnn/spdx-license-ids/archive/%{commit}/%{npm_name}-%{commit}.tar.gz
291e84
License:	Unlicense
291e84
291e84
BuildArch:	noarch
291e84
ExclusiveArch:	%{nodejs_arches} noarch
291e84
291e84
BuildRequires:	%{?scl_prefix}nodejs-devel
291e84
291e84
%if 0%{?enable_tests}
291e84
BuildRequires:	%{?scl_prefix}npm(@shinnn/eslintrc)
291e84
BuildRequires:	%{?scl_prefix}npm(each-async)
291e84
BuildRequires:	%{?scl_prefix}npm(eslint)
291e84
BuildRequires:	%{?scl_prefix}npm(got)
291e84
BuildRequires:	%{?scl_prefix}npm(istanbul-coveralls)
291e84
BuildRequires:	%{?scl_prefix}npm(istanbul)
291e84
BuildRequires:	%{?scl_prefix}npm(require-bower-files)
291e84
BuildRequires:	%{?scl_prefix}npm(rm-rf)
291e84
BuildRequires:	%{?scl_prefix}npm(stringify-object)
291e84
BuildRequires:	%{?scl_prefix}npm(tape)
291e84
%endif
291e84
291e84
%description
291e84
A list of SPDX license identifiers
291e84
291e84
%prep
291e84
%setup -q -n %{npm_name}-%{commit}
291e84
291e84
chmod -x README.md
291e84
chmod -x build.js bower.json
291e84
291e84
%build
291e84
#nothing to do
291e84
291e84
%install
291e84
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
291e84
291e84
cp -pr package.json bower.json build.js spdx-license-ids.json spdx-license-ids-browser.js \
291e84
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
291e84
291e84
%{nodejs_symlink_deps}
291e84
291e84
%if 0%{?enable_tests}
291e84
291e84
%check
291e84
%{nodejs_symlink_deps} --check
291e84
node --harmony_arrow_functions test.js
291e84
%endif
291e84
291e84
%files
291e84
%{nodejs_sitelib}/spdx-license-ids
291e84
291e84
%doc README.md
291e84
%license LICENSE
291e84
291e84
%changelog
291e84
* Wed Nov 25 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-2
291e84
- Enable scl macros
291e84
291e84
* Wed Jun 10 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-1
291e84
- Initial build