Blame SPECS/nodejs-node-uuid.spec

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