Blame SPECS/nodejs-package-json.spec

596775
%{?scl:%scl_package nodejs-%{npm_name}}
596775
%{!?scl:%global pkg_name %{name}}
596775
596775
%{?nodejs_find_provides_and_requires}
596775
%global npm_name package-json
596775
596775
Summary:       Get the package.json of a package from the npm registry
596775
Name:          %{?scl_prefix}nodejs-%{npm_name}
596775
Version:       2.3.0
596775
Release:       2%{?dist}
596775
License:       MIT
596775
URL:           https://github.com/sindresorhus/package-json
596775
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
596775
BuildRequires: nodejs010-runtime
596775
ExclusiveArch: %{nodejs_arches} noarch
596775
BuildArch:     noarch
596775
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
596775
596775
%description
596775
Get the package.json of a package from the npm registry.
596775
596775
%prep
596775
%setup -q -n package
596775
596775
%build
596775
596775
%install
596775
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
596775
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
596775
596775
%nodejs_symlink_deps
596775
596775
%files
596775
%{!?_licensedir:%global license %doc}
596775
%doc readme.md
596775
%license license
596775
%{nodejs_sitelib}/%{npm_name}
596775
596775
%changelog
596775
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 2.3.0-2
596775
- Enable scl macros
596775
596775
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.3.0-1
596775
- Initial package