Blame SPECS/nodejs-uuid.spec

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