Blame SPECS/nodejs-spdx-exceptions.spec

31c6d3
%{?scl:%scl_package nodejs-spdx-exceptions}
31c6d3
%{!?scl:%global pkg_name %{name}}
31c6d3
31c6d3
# spec file for package nodejs-nodejs-spdx-exceptions
31c6d3
31c6d3
%global npm_name spdx-exceptions
31c6d3
%{?nodejs_find_provides_and_requires}
31c6d3
31c6d3
%global enable_tests 0
31c6d3
31c6d3
Name:		%{?scl_prefix}nodejs-spdx-exceptions
31c6d3
Version:	1.0.4
8d89c3
Release:	3%{?dist}
8d89c3
Summary:	List of SPDX standard license exceptions
31c6d3
Url:		https://github.com/kemitchell/spdx-exceptions.json#readme
31c6d3
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
8d89c3
Source1:    https://raw.githubusercontent.com/kasicka/spdx-exceptions.json/c4d5127e472c035588c8d8707f8d08419fe6a431/LICENSE
31c6d3
License:	CC-BY-3.0
31c6d3
31c6d3
BuildArch:	noarch
31c6d3
31c6d3
%if 0%{?fedora} >= 19
31c6d3
ExclusiveArch: %{nodejs_arches} noarch
31c6d3
%else
31c6d3
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
31c6d3
%endif
31c6d3
31c6d3
BuildRequires:  %{?scl_prefix}nodejs-devel
31c6d3
31c6d3
%if 0%{?enable_tests}
31c6d3
%endif
31c6d3
31c6d3
%description
31c6d3
list of SPDX standard license exceptions
31c6d3
31c6d3
%prep
31c6d3
%setup -q -n package
31c6d3
8d89c3
cp -p %{SOURCE1} .
8d89c3
31c6d3
rm -rf node_modules
31c6d3
31c6d3
%build
31c6d3
31c6d3
%install
31c6d3
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
31c6d3
31c6d3
cp -pr package.json index.json \
31c6d3
%{buildroot}%{nodejs_sitelib}/%{npm_name}
31c6d3
31c6d3
%{nodejs_symlink_deps}
31c6d3
31c6d3
%if 0%{?enable_tests}
31c6d3
31c6d3
%check
31c6d3
%{nodejs_symlink_deps} --check
31c6d3
31c6d3
%endif
31c6d3
31c6d3
%files
31c6d3
%{nodejs_sitelib}/spdx-exceptions
31c6d3
8d89c3
%doc README.md LICENSE
31c6d3
31c6d3
%changelog
8d89c3
* Thu Jun 09 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.4-3
8d89c3
- Resolves: rhbz#1334856 , fixes wrong license
8d89c3
31c6d3
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.4-2
31c6d3
- rebuilt
31c6d3
31c6d3
* Mon Nov 23 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.4-1
31c6d3
- Initial build