Blame SPECS/nodejs-package-json.spec

e4f3ae
%{?scl:%scl_package nodejs-%{npm_name}}
e4f3ae
%{!?scl:%global pkg_name %{name}}
e4f3ae
e4f3ae
%{?nodejs_find_provides_and_requires}
e4f3ae
%global npm_name package-json
e4f3ae
e4f3ae
Summary:       Get the package.json of a package from the npm registry
e4f3ae
Name:          %{?scl_prefix}nodejs-%{npm_name}
e4f3ae
Version:       2.3.0
40ba11
Release:       6%{?dist}
e4f3ae
License:       MIT
e4f3ae
URL:           https://github.com/sindresorhus/package-json
e4f3ae
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
e4f3ae
BuildRequires: %{?scl_prefix}nodejs-devel
e4f3ae
ExclusiveArch: %{nodejs_arches} noarch
e4f3ae
BuildArch:     noarch
e4f3ae
e4f3ae
%description
e4f3ae
Get the package.json of a package from the npm registry.
e4f3ae
e4f3ae
%prep
e4f3ae
%setup -q -n package
e4f3ae
e4f3ae
%nodejs_fixdep semver 5.x
e4f3ae
e4f3ae
%build
e4f3ae
e4f3ae
%install
e4f3ae
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
e4f3ae
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
e4f3ae
e4f3ae
%nodejs_symlink_deps
e4f3ae
e4f3ae
%files
e4f3ae
%{!?_licensedir:%global license %doc}
e4f3ae
%doc readme.md
e4f3ae
%license license
e4f3ae
%{nodejs_sitelib}/%{npm_name}
e4f3ae
e4f3ae
%changelog
40ba11
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.0-6
40ba11
- Resolves: RHBZ#1543198, rebuild for multiarch
40ba11
e4f3ae
* Wed Feb 24 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.0-5
e4f3ae
- Fix dependency
e4f3ae
e4f3ae
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.0-4
e4f3ae
- Use macro in -runtime dependency
e4f3ae
e4f3ae
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.0-3
e4f3ae
- Rebuilt with updated metapackage
e4f3ae
e4f3ae
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 2.3.0-2
e4f3ae
- Enable scl macros
e4f3ae
e4f3ae
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.3.0-1
e4f3ae
- Initial package