%global modname normalize-path %if ! ( 0%{?fedora} || 0%{?rhel} >= 7 ) %{?nodejs_find_provides_and_requires} %global nodejs_arches %{ix86} x86_64 %{arm} %endif Name: nodejs-%{modname} Version: 0.3.0 Release: 1%{?dist} Summary: Nodejs library for normalizing filesystem paths License: MIT URL: https://github.com/jonschlinkert/normalize-path Source0: http://registry.npmjs.org/%{modname}/-/%{modname}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: mocha BuildRequires: npm(should) %description Normalize file path slashes to be unix-like forward slashes, regardless of OS (since in reality Windows doesn't care about slash direction anyway). Also condenses repeat slashes to a single slash and removes and trailing slashes. %prep %setup -q -n package %build # nothing to do %check %nodejs_symlink_deps --check mocha %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname} cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/%{modname}/ %files %doc README.md LICENSE-MIT %{nodejs_sitelib}/%{modname} %changelog * Wed Nov 12 2014 Dan Callaghan - 0.3.0-1 - upstream release 0.3.0 * Sun Oct 12 2014 Dan Callaghan - 0.1.1-1 - initial version