Blame nodejs-normalize-path.spec

ed1888f
%global modname normalize-path
ed1888f
ed1888f
%if ! ( 0%{?fedora} || 0%{?rhel} >= 7 )
ed1888f
%{?nodejs_find_provides_and_requires}
ed1888f
%global nodejs_arches %{ix86} x86_64 %{arm}
ed1888f
%endif
ed1888f
ed1888f
Name:           nodejs-%{modname}
2ede6d5
Version:        2.0.0
3f2b758
Release:        2%{?dist}
ed1888f
Summary:        Nodejs library for normalizing filesystem paths
ed1888f
License:        MIT
ed1888f
URL:            https://github.com/jonschlinkert/normalize-path
815925f
# Upstream does not want to include tests in the npm tarballs, 
815925f
# so we use a Github snapshot instead.
815925f
# https://github.com/jonschlinkert/normalize-path/issues/2#issuecomment-72331596
815925f
#Source0:        http://registry.npmjs.org/%{modname}/-/%{modname}-%{version}.tgz
2ede6d5
%global commit defaa4b483a56e8ee93539b74e9de4df59a2a172
815925f
Source0:        https://github.com/jonschlinkert/%{modname}/archive/%{commit}/%{modname}-%{version}.tar.gz
ed1888f
BuildArch:      noarch
ed1888f
ExclusiveArch:  %{nodejs_arches} noarch
ed1888f
BuildRequires:  nodejs-packaging
ed1888f
BuildRequires:  mocha
3f2b758
BuildRequires:  npm(minimist)
aeabbe9
BuildRequires:  npm(should)
4f0b48f
BuildRequires:  /usr/bin/npm
ed1888f
ed1888f
%description
ed1888f
Normalize file path slashes to be unix-like forward slashes, regardless of OS 
ed1888f
(since in reality Windows doesn't care about slash direction anyway). Also 
ed1888f
condenses repeat slashes to a single slash and removes and trailing slashes.
ed1888f
ed1888f
%prep
815925f
%setup -q -n %{modname}-%{commit}
ed1888f
ed1888f
%build
ed1888f
# nothing to do
ed1888f
ed1888f
%check
ed1888f
%nodejs_symlink_deps --check
815925f
npm test
ed1888f
ed1888f
%install
ed1888f
mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname}
ed1888f
cp -pr package.json index.js \
ed1888f
    %{buildroot}%{nodejs_sitelib}/%{modname}/
ed1888f
ed1888f
%files
815925f
%doc README.md LICENSE
ed1888f
%{nodejs_sitelib}/%{modname}
ed1888f
ed1888f
%changelog
3f2b758
* Wed Nov 04 2015 Dan Callaghan <dcallagh@redhat.com> - 2.0.0-2
3f2b758
- added missing BR on minimist
3f2b758
2ede6d5
* Wed Nov 04 2015 Dan Callaghan <dcallagh@redhat.com> - 2.0.0-1
2ede6d5
- upstream release 2.0.0
2ede6d5
815925f
* Tue Sep 01 2015 Dan Callaghan <dcallagh@redhat.com> - 1.0.0-1
815925f
- upstream release 1.0.0: paths are no longer forced to lower case
815925f
61fb57d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
61fb57d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
61fb57d
aeabbe9
* Wed Nov 12 2014 Dan Callaghan <dcallagh@redhat.com> - 0.3.0-1
aeabbe9
- upstream release 0.3.0
aeabbe9
ed1888f
* Sun Oct 12 2014 Dan Callaghan <dcallagh@redhat.com> - 0.1.1-1
ed1888f
- initial version