Blame SPECS/nodejs-latest-version.spec

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