Blame SPECS/nodejs-node-uuid.spec

eb5004
%{?scl:%scl_package nodejs-node-uuid}
eb5004
%{!?scl:%global pkg_name %{name}}
eb5004
%{?nodejs_find_provides_and_requires}
eb5004
%global enable_tests 1
eb5004
eb5004
Name:       %{?scl_prefix}nodejs-node-uuid
eb5004
Version:    1.4.7
eb5004
Release:    2%{?dist}
eb5004
Summary:    Simple and fast generation of RFC4122 (v1 and v4) UUIDs for Node.js
eb5004
License:    MIT
eb5004
URL:        https://github.com/broofa/node-uuid
eb5004
Source0:    http://registry.npmjs.org/node-uuid/-/node-uuid-%{version}.tgz
eb5004
eb5004
BuildArch:  noarch
eb5004
%if 0%{?fedora} >= 19
eb5004
ExclusiveArch: %{nodejs_arches} noarch
eb5004
%else
eb5004
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
eb5004
%endif
eb5004
eb5004
BuildRequires:  %{?scl_prefix}nodejs-devel
eb5004
eb5004
%description
eb5004
This Node.js module provides simple and fast generation of RFC4122 (v1 and v4)
eb5004
UUIDs. It runs in Node.js and all browsers and can also generate
eb5004
cryptographically strong random numbers.
eb5004
eb5004
%prep
eb5004
%setup -q -n package
eb5004
eb5004
%build
eb5004
#nothing to do
eb5004
eb5004
%install
eb5004
mkdir -p %{buildroot}%{nodejs_sitelib}/node-uuid
eb5004
cp -pr package.json uuid.js \
eb5004
    %{buildroot}%{nodejs_sitelib}/node-uuid
eb5004
eb5004
%nodejs_symlink_deps
eb5004
eb5004
eb5004
%if 0%{?enable_tests}
eb5004
eb5004
%check
eb5004
%{?scl:scl enable %{scl} "}
eb5004
ln -sf %{nodejs_sitelib} .
eb5004
%__nodejs test/test.js
eb5004
%{?scl:"}
eb5004
%endif
eb5004
eb5004
%files
eb5004
%doc LICENSE.md README.md
eb5004
%{nodejs_sitelib}/node-uuid
eb5004
eb5004
%changelog
eb5004
* Tue Jan 17 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.7-2
eb5004
- Bump
eb5004
eb5004
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.7-1
eb5004
- Updated with script
eb5004
eb5004
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.1-3
eb5004
- rebuilt
eb5004
eb5004
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 1.4.1-2
eb5004
- replace provides and requires with macro
eb5004
eb5004
* Mon Aug 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.1-1
eb5004
- update to upstream release 1.4.1
eb5004
eb5004
* Sun Jul 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.0-5
eb5004
- add ExclusiveArch logic
eb5004
eb5004
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.4.0-4
eb5004
- restrict to compatible arches
eb5004
eb5004
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.4.0-3
eb5004
- add macro to enable dependency generation in EPEL
eb5004
eb5004
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.0-3
eb5004
- Add support for software collections
eb5004
eb5004
* Fri Apr 05 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.0-2
eb5004
- do not include benchmark/ directory
eb5004
eb5004
* Wed Feb 13 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.0-1
eb5004
- initial package