From 7668f96c9925f4ef5f747a0839f5f03171d6215e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Dec 16 2015 15:18:54 +0000 Subject: import nodejs010-nodejs-is-absolute-0.2.3-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e4b6c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/is-absolute-0.2.3.tgz diff --git a/.nodejs010-nodejs-is-absolute.metadata b/.nodejs010-nodejs-is-absolute.metadata new file mode 100644 index 0000000..8ce8303 --- /dev/null +++ b/.nodejs010-nodejs-is-absolute.metadata @@ -0,0 +1 @@ +fff8822a1028e104b10bd9049012211f272b07fc SOURCES/is-absolute-0.2.3.tgz 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-is-absolute.spec b/SPECS/nodejs-is-absolute.spec new file mode 100644 index 0000000..3d48f39 --- /dev/null +++ b/SPECS/nodejs-is-absolute.spec @@ -0,0 +1,42 @@ +%{?scl:%scl_package nodejs-%{npm_name}} +%{!?scl:%global pkg_name %{name}} + +%global npm_name is-absolute +%{?nodejs_find_provides_and_requires} + +Summary: Returns true if a file path is absolute +Name: %{?scl_prefix}nodejs-%{npm_name} +Version: 0.2.3 +Release: 3%{?dist} +License: MIT +URL: https://github.com/jonschlinkert/is-absolute +Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch +Provides: %{?scl_prefix}nodejs-%{npm_name} = %{version} + +%description +Returns true if a file path is absolute. + +Based on the isAbsolute utility method in express. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{npm_name} + +%changelog +* Mon Nov 30 2015 Tomas Hrcka - 0.2.3-3 +- Enable scl macros + +* Tue Nov 24 2015 Troy Dawson - 0.2.3-1 +- Initial package