Blame SPECS/nodejs-is-absolute.spec

7668f9
%{?scl:%scl_package nodejs-%{npm_name}}
7668f9
%{!?scl:%global pkg_name %{name}}
7668f9
7668f9
%global npm_name is-absolute
7668f9
%{?nodejs_find_provides_and_requires}
7668f9
7668f9
Summary:       Returns true if a file path is absolute
7668f9
Name:          %{?scl_prefix}nodejs-%{npm_name}
7668f9
Version:       0.2.3
7668f9
Release:       3%{?dist}
7668f9
License:       MIT
7668f9
URL:           https://github.com/jonschlinkert/is-absolute
7668f9
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
7668f9
7668f9
ExclusiveArch: %{nodejs_arches} noarch
7668f9
BuildArch:     noarch
7668f9
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
7668f9
7668f9
%description
7668f9
Returns true if a file path is absolute.
7668f9
7668f9
Based on the isAbsolute utility method in express.
7668f9
7668f9
%prep
7668f9
%setup -q -n package
7668f9
7668f9
%build
7668f9
7668f9
%install
7668f9
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
7668f9
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
7668f9
7668f9
%files
7668f9
%doc README.md LICENSE
7668f9
%{nodejs_sitelib}/%{npm_name}
7668f9
7668f9
%changelog
7668f9
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 0.2.3-3
7668f9
- Enable scl macros
7668f9
7668f9
* Tue Nov 24 2015 Troy Dawson <tdawson@redhat.com> - 0.2.3-1
7668f9
- Initial package