Blame SPECS/nodejs-latest-version.spec

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