Blame SPECS/nodejs-package-json.spec

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