|
|
f9b0e7 |
%{?scl:%scl_package nodejs-%{modname}}
|
|
|
f9b0e7 |
%{!?scl:%global pkg_name %{name}}
|
|
|
f9b0e7 |
%{?nodejs_find_provides_and_requires}
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%global modname normalize-path
|
|
|
f9b0e7 |
%global enable_tests 0
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
Name: %{?scl_prefix}nodejs-%{modname}
|
|
|
f9b0e7 |
Version: 2.0.1
|
|
|
f9b0e7 |
Release: 11%{?dist}
|
|
|
f9b0e7 |
Summary: Nodejs library for normalizing filesystem paths
|
|
|
f9b0e7 |
License: MIT
|
|
|
f9b0e7 |
URL: https://github.com/jonschlinkert/normalize-path
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
# Upstream does not want to include tests in the npm tarballs,
|
|
|
f9b0e7 |
# so we use a Github snapshot instead.
|
|
|
f9b0e7 |
# https://github.com/jonschlinkert/normalize-path/issues/2#issuecomment-72331596
|
|
|
f9b0e7 |
#Source0: http://registry.npmjs.org/%{modname}/-/%{modname}-%{version}.tgz
|
|
|
f9b0e7 |
%global commit 3ad522d516a41c4f4212c8a4bd5c8005ef62b382
|
|
|
f9b0e7 |
Source0: https://github.com/jonschlinkert/%{modname}/archive/%{commit}/%{modname}-%{version}.tar.gz
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
BuildArch: noarch
|
|
|
f9b0e7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
f9b0e7 |
BuildRequires: %{?scl_prefix}runtime
|
|
|
f9b0e7 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%if 0%{?enable_tests}
|
|
|
f9b0e7 |
BuildRequires: %{?scl_prefix}mocha
|
|
|
f9b0e7 |
BuildRequires: %{?scl_prefix}npm(minimist)
|
|
|
f9b0e7 |
BuildRequires: %{?scl_prefix}npm(should)
|
|
|
f9b0e7 |
BuildRequires: /usr/bin/npm
|
|
|
f9b0e7 |
%endif
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%description
|
|
|
f9b0e7 |
Normalize file path slashes to be unix-like forward slashes, regardless of OS
|
|
|
f9b0e7 |
(since in reality Windows doesn't care about slash direction anyway). Also
|
|
|
f9b0e7 |
condenses repeat slashes to a single slash and removes and trailing slashes.
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%prep
|
|
|
f9b0e7 |
%setup -q -n %{modname}-%{commit}
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%build
|
|
|
f9b0e7 |
# nothing to do
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%install
|
|
|
f9b0e7 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname}
|
|
|
f9b0e7 |
cp -pr package.json index.js \
|
|
|
f9b0e7 |
%{buildroot}%{nodejs_sitelib}/%{modname}/
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%nodejs_symlink_deps
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%if 0%{?enable_tests}
|
|
|
f9b0e7 |
%check
|
|
|
f9b0e7 |
%nodejs_symlink_deps --check
|
|
|
f9b0e7 |
npm test
|
|
|
f9b0e7 |
%endif
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%files
|
|
|
f9b0e7 |
%{!?_licensedir:%global license %doc}
|
|
|
f9b0e7 |
%doc README.md
|
|
|
f9b0e7 |
%license LICENSE
|
|
|
f9b0e7 |
%{nodejs_sitelib}/%{modname}
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
%changelog
|
|
|
f9b0e7 |
* Fri Jul 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-11
|
|
|
f9b0e7 |
- rh-nodejs8-rebuild
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Tue Apr 19 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-10
|
|
|
f9b0e7 |
- Add nodejs-devel dependency
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Thu Mar 03 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-8
|
|
|
f9b0e7 |
- Move %%check section after %%install
|
|
|
f9b0e7 |
- add %%nodejs_symlink_deps macro
|
|
|
f9b0e7 |
- remove dependency
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Wed Feb 17 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-5
|
|
|
f9b0e7 |
- Move find_provides macro out of if
|
|
|
f9b0e7 |
- Use macro in -runtime dependency
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-3
|
|
|
f9b0e7 |
- Rebuilt with updated metapackage
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-2
|
|
|
f9b0e7 |
- Enable scl macros
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Mon Nov 30 2015 Dan Callaghan <dcallagh@redhat.com> - 2.0.1-1
|
|
|
f9b0e7 |
- upstream bug fix release 2.0.1: no longer strips leading ./
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Wed Nov 04 2015 Dan Callaghan <dcallagh@redhat.com> - 2.0.0-2
|
|
|
f9b0e7 |
- added missing BR on minimist
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Wed Nov 04 2015 Dan Callaghan <dcallagh@redhat.com> - 2.0.0-1
|
|
|
f9b0e7 |
- upstream release 2.0.0
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Tue Sep 01 2015 Dan Callaghan <dcallagh@redhat.com> - 1.0.0-1
|
|
|
f9b0e7 |
- upstream release 1.0.0: paths are no longer forced to lower case
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
f9b0e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Wed Nov 12 2014 Dan Callaghan <dcallagh@redhat.com> - 0.3.0-1
|
|
|
f9b0e7 |
- upstream release 0.3.0
|
|
|
f9b0e7 |
|
|
|
f9b0e7 |
* Sun Oct 12 2014 Dan Callaghan <dcallagh@redhat.com> - 0.1.1-1
|
|
|
f9b0e7 |
- initial version
|