Blame SPECS/nodejs-node-uuid.spec

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