Blame SPECS/nodejs-uuid-js.spec

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