Blame SPECS/nodejs-caseless.spec

852d1c
%{?scl:%scl_package nodejs-caseless}
852d1c
%{!?scl:%global pkg_name %{name}}
852d1c
%global npm_name caseless
852d1c
852d1c
%{?nodejs_find_provides_and_requires}
852d1c
852d1c
%{!?scl:%global enable_tests 1}
852d1c
852d1c
Name:		%{?scl_prefix}nodejs-caseless
852d1c
Version:	0.11.0
852d1c
Release:	1%{?dist}
852d1c
Summary:	Caseless object set/get/has, very useful when working with HTTP headers.
852d1c
Url:		https://github.com/mikeal/caseless
852d1c
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
852d1c
License:	ASL 2.0
852d1c
852d1c
BuildArch:	noarch
852d1c
ExclusiveArch:	%{nodejs_arches} noarch
852d1c
852d1c
BuildRequires:	%{?scl_prefix}nodejs-devel
852d1c
852d1c
%if 0%{?enable_tests}
852d1c
BuildRequires:	npm(tape)
852d1c
%endif
852d1c
852d1c
%description
852d1c
Caseless object set/get/has, very useful when working with HTTP headers.
852d1c
852d1c
%prep
852d1c
%setup -q -n package
852d1c
852d1c
%build
852d1c
#nothing to do
852d1c
852d1c
%install
852d1c
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
852d1c
852d1c
cp -pr package.json index.js \
852d1c
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
852d1c
852d1c
%{nodejs_symlink_deps}
852d1c
852d1c
%if 0%{?enable_tests}
852d1c
%check
852d1c
%{nodejs_symlink_deps} --check
852d1c
node test.js
852d1c
%endif
852d1c
852d1c
%files
852d1c
%{nodejs_sitelib}/caseless
852d1c
852d1c
%doc README.md
852d1c
%license LICENSE
852d1c
852d1c
%changelog
852d1c
* Thu Jul 16 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.11.0-1
852d1c
- Initial build