Blame SPECS/nodejs-uuid.spec

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