File uuid.spec of Package nodejs-uuid

%{?nodejs_find_provides_and_requires}

%define module uuid
%define pkg_name nodejs-%{module}
%define version 3.1.0
%define release 1
%define buildroot %(mktemp -ud %{_tmppath}/%{module}-%{version}-%{release}-XXXXXX)

Name: %{pkg_name}
Version: %{version}
Release: %{release}
Summary: RFC4122 (v1, v4, and v5) UUIDs

Group: Installation Script
License: MIT
Source: %{module}-%{version}.tgz
BuildRoot: %{buildroot}
BuildArch:  noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch

Requires: nodejs

BuildRequires: nodejs
%{?el6:BuildRequires: npm}
#AutoReqProv: no

%description
RFC4122 (v1, v4, and v5) UUIDs

%clean
rm -rf %{buildroot}

%prep
%setup -q -n package

%build
# Nothing needed here!

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module}
cp -prv . %{buildroot}%{nodejs_sitelib}/%{module}

%nodejs_symlink_deps

%files
%defattr(644, root, root, 755)
%{nodejs_sitelib}/%{module}