From a5b87b39096f4857ff6a8e454b8d15188af4806e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 09:39:55 +0000 Subject: import rh-nodejs6-nodejs-normalize-path-2.0.1-10.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c97e9d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/normalize-path-2.0.1.tar.gz diff --git a/.rh-nodejs6-nodejs-normalize-path.metadata b/.rh-nodejs6-nodejs-normalize-path.metadata new file mode 100644 index 0000000..8c72f3e --- /dev/null +++ b/.rh-nodejs6-nodejs-normalize-path.metadata @@ -0,0 +1 @@ +9f62d166a20f760ab2b6eab3642f751434ebd603 SOURCES/normalize-path-2.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-normalize-path.spec b/SPECS/nodejs-normalize-path.spec new file mode 100644 index 0000000..f643ee1 --- /dev/null +++ b/SPECS/nodejs-normalize-path.spec @@ -0,0 +1,102 @@ +%{?scl:%scl_package nodejs-%{modname}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global modname normalize-path +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-%{modname} +Version: 2.0.1 +Release: 10%{?dist} +Summary: Nodejs library for normalizing filesystem paths +License: MIT +URL: https://github.com/jonschlinkert/normalize-path + +# Upstream does not want to include tests in the npm tarballs, +# so we use a Github snapshot instead. +# https://github.com/jonschlinkert/normalize-path/issues/2#issuecomment-72331596 +#Source0: http://registry.npmjs.org/%{modname}/-/%{modname}-%{version}.tgz +%global commit 3ad522d516a41c4f4212c8a4bd5c8005ef62b382 +Source0: https://github.com/jonschlinkert/%{modname}/archive/%{commit}/%{modname}-%{version}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: %{?scl_prefix}runtime +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}mocha +BuildRequires: %{?scl_prefix}npm(minimist) +BuildRequires: %{?scl_prefix}npm(should) +BuildRequires: /usr/bin/npm +%endif + +%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 %{modname}-%{commit} + +%build +# nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname} +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{modname}/ + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +npm test +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{modname} + +%changelog +* Tue Apr 19 2016 Zuzana Svetlikova - 2.0.1-10 +- Add nodejs-devel dependency + +* Thu Mar 03 2016 Zuzana Svetlikova - 2.0.1-8 +- Move %%check section after %%install +- add %%nodejs_symlink_deps macro +- remove dependency + +* Wed Feb 17 2016 Tomas Hrcka - 2.0.1-5 +- Move find_provides macro out of if +- Use macro in -runtime dependency + +* Sun Feb 14 2016 Zuzana Svetlikova - 2.0.1-3 +- Rebuilt with updated metapackage + +* Mon Jan 11 2016 Tomas Hrcka - 2.0.1-2 +- Enable scl macros + +* Mon Nov 30 2015 Dan Callaghan - 2.0.1-1 +- upstream bug fix release 2.0.1: no longer strips leading ./ + +* Wed Nov 04 2015 Dan Callaghan - 2.0.0-2 +- added missing BR on minimist + +* Wed Nov 04 2015 Dan Callaghan - 2.0.0-1 +- upstream release 2.0.0 + +* Tue Sep 01 2015 Dan Callaghan - 1.0.0-1 +- upstream release 1.0.0: paths are no longer forced to lower case + +* Wed Jun 17 2015 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* 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