Blame SPECS/nodejs-uuid.spec

46c332
%{?scl:%scl_package nodejs-%{npm_name}}
46c332
%{!?scl:%global pkg_name %{name}}
46c332
%{?nodejs_find_provides_and_requires}
46c332
46c332
%global npm_name uuid
46c332
46c332
# Disable until dependencies are met
46c332
%global enable_tests 0
46c332
46c332
Summary:       Rigorous implementation of RFC4122 (v1 and v4) UUIDs
46c332
Name:          %{?scl_prefix}nodejs-%{npm_name}
46c332
Version:       2.0.1
46c332
Release:       5%{?dist}
46c332
License:       MIT
46c332
URL:           https://github.com/shtylman/node-uuid
46c332
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
46c332
BuildRequires: nodejs010-runtime
46c332
ExclusiveArch: %{nodejs_arches} noarch
46c332
BuildArch:     noarch
46c332
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
46c332
46c332
%if 0%{?enable_tests}
46c332
BuildRequires:  %{?scl_prefix}npm(mocha)
46c332
BuildRequires:  %{?scl_prefix}npm(coveralls)
46c332
%endif
46c332
46c332
%description
46c332
Simple, fast generation of RFC4122 UUIDS.
46c332
46c332
Features:
46c332
 - Generate RFC4122 version 1 or version 4 UUIDs
46c332
 - Runs in node.js and all browsers.
46c332
 - Cryptographically strong random # generation on supporting platforms
46c332
 - 1185 bytes minified and gzip'ed
46c332
 - Annotated source code
46c332
46c332
%prep
46c332
%setup -q -n package
46c332
%nodejs_fixdep uuid-js '0.7.5'
46c332
46c332
%build
46c332
46c332
%install
46c332
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
46c332
cp -pr *.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
46c332
46c332
%nodejs_symlink_deps
46c332
46c332
%if 0%{?enable_tests}
46c332
46c332
%check
46c332
%nodejs_symlink_deps --check
46c332
mocha test/test.js
46c332
%endif
46c332
46c332
%files
46c332
%{!?_licensedir:%global license %doc}
46c332
%doc benchmark README.md
46c332
%license LICENSE.md
46c332
%{nodejs_sitelib}/%{npm_name}
46c332
46c332
%changelog
46c332
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-5
46c332
- Fix dependency on uuid-js
46c332
46c332
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-2
46c332
- Enable scl macros
46c332
46c332
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.0.1-1
46c332
- Initial package