Blame SPECS/nodejs-uuid-js.spec

b71e8f
%{?scl:%scl_package nodejs-uuid-js}
b71e8f
%{!?scl:%global pkg_name %{name}}
b71e8f
b71e8f
# spec file for package nodejs-nodejs-uuid-js
b71e8f
b71e8f
%global npm_name uuid-js
b71e8f
%{?nodejs_find_provides_and_requires}
b71e8f
b71e8f
%global enable_tests 0
b71e8f
b71e8f
Name:		%{?scl_prefix}nodejs-uuid-js
b71e8f
Version:	0.7.5
b71e8f
Release:	1%{?dist}
b71e8f
Summary:	A js library to generate and parse UUIDs,TimeUUIDs and generate TimeUUID based on Date for range selections
b71e8f
Url:		http://github.com/pnegri/uuid-js
b71e8f
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
b71e8f
License:        ASL-2.0	
b71e8f
b71e8f
BuildArch:	noarch
b71e8f
b71e8f
%if 0%{?fedora} >= 19
b71e8f
ExclusiveArch: %{nodejs_arches} noarch
b71e8f
%else
b71e8f
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
b71e8f
%endif
b71e8f
b71e8f
BuildRequires:  %{?scl_prefix}nodejs-devel
b71e8f
BuildRequires:  %{?scl_prefix}runtime
b71e8f
b71e8f
%if 0%{?enable_tests}
b71e8f
BuildRequires:	%{?scl_prefix}npm(sinon)
b71e8f
%endif
b71e8f
b71e8f
%description
b71e8f
A js library to generate and parse UUIDs,TimeUUIDs and generate TimeUUID based on Date for range selections
b71e8f
b71e8f
%prep
b71e8f
%setup -q -n package
b71e8f
b71e8f
rm -rf node_modules
b71e8f
b71e8f
%build
b71e8f
b71e8f
#nothing to do
b71e8f
b71e8f
%install
b71e8f
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
b71e8f
b71e8f
cp -pr package.json lib/ \
b71e8f
%{buildroot}%{nodejs_sitelib}/%{npm_name}
b71e8f
b71e8f
%{nodejs_symlink_deps}
b71e8f
b71e8f
%if 0%{?enable_tests}
b71e8f
b71e8f
%check
b71e8f
%{nodejs_symlink_deps} --check
b71e8f
b71e8f
%endif
b71e8f
b71e8f
%files
b71e8f
%{!?_licensedir:%global license %doc}
b71e8f
%{nodejs_sitelib}/uuid-js
b71e8f
b71e8f
%doc README.md
b71e8f
%license LICENSE.txt
b71e8f
b71e8f
%changelog
b71e8f
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 0.7.5-1
b71e8f
- Initial build