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

7292ab
%{?scl:%scl_package nodejs-spdx-expression-parse}
7292ab
%{!?scl:%global pkg_name %{name}}
7292ab
7292ab
# spec file for package nodejs-nodejs-spdx-expression-parse
7292ab
7292ab
%global npm_name spdx-expression-parse
7292ab
%{?nodejs_find_provides_and_requires}
7292ab
7292ab
%global enable_tests 0
7292ab
7292ab
Name:		%{?scl_prefix}nodejs-spdx-expression-parse
7292ab
Version:	1.0.2
7292ab
Release:	2%{?dist}
7292ab
Summary:	Parse SPDX license expressions
7292ab
Url:		https://github.com/kemitchell/spdx-expression-parse.js#readme
7292ab
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
7292ab
# CC license that is missing from sources
7292ab
# http://creativecommons.org/licenses/by/3.0/
7292ab
Source1:    LICENSE-CC-BY-3.0
7292ab
License:	MIT AND CC-BY-3.0
7292ab
7292ab
BuildArch:	noarch
7292ab
7292ab
%if 0%{?fedora} >= 19
7292ab
ExclusiveArch: %{nodejs_arches} noarch
7292ab
%else
7292ab
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
7292ab
%endif
7292ab
7292ab
BuildRequires:  %{?scl_prefix}nodejs-devel
7292ab
7292ab
%if 0%{?enable_tests}
7292ab
BuildRequires:	%{?scl_prefix}npm(defence-cli)
7292ab
BuildRequires:	%{?scl_prefix}npm(jison)
7292ab
BuildRequires:	%{?scl_prefix}npm(replace-require-self)
7292ab
BuildRequires:	%{?scl_prefix}npm(uglify-js)
7292ab
%endif
7292ab
7292ab
BuildRequires:	%{?scl_prefix}npm(spdx-exceptions)
7292ab
BuildRequires:	%{?scl_prefix}npm(spdx-license-ids)
7292ab
7292ab
Requires:	%{?scl_prefix}npm(spdx-exceptions)
7292ab
Requires:	%{?scl_prefix}npm(spdx-license-ids)
7292ab
7292ab
%description
7292ab
parse SPDX license expressions
7292ab
7292ab
%prep
7292ab
%setup -q -n package
7292ab
cp -p %{SOURCE1} .
7292ab
7292ab
rm -rf node_modules
7292ab
7292ab
%build
7292ab
7292ab
%install
7292ab
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
7292ab
7292ab
cp -pr package.json *.js \
7292ab
%{buildroot}%{nodejs_sitelib}/%{npm_name}
7292ab
7292ab
%{nodejs_symlink_deps}
7292ab
7292ab
%if 0%{?enable_tests}
7292ab
7292ab
%check
7292ab
%{nodejs_symlink_deps} --check
7292ab
7292ab
%endif
7292ab
7292ab
%files
7292ab
%{nodejs_sitelib}/spdx-expression-parse
7292ab
7292ab
%doc README.md LICENSE LICENSE-CC-BY-3.0
7292ab
7292ab
%changelog
7292ab
* Fri Jun 10 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-2
7292ab
- Resolves: #1334856 , update, add missing license
7292ab
7292ab
* Thu Jun 09 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-3
7292ab
- Resolves: rhbz#1334856 , fixes wrong license
7292ab
7292ab
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-2
7292ab
- rebuilt
7292ab
7292ab
* Mon Nov 23 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-1
7292ab
- Initial build