Blame SPECS/nodejs-path-is-inside.spec

f19d37
%{?scl:%scl_package nodejs-path-is-inside}
f19d37
%{!?scl:%global pkg_name %{name}}
f19d37
f19d37
# spec file for package nodejs-nodejs-path-is-inside_1.0.0
f19d37
f19d37
%global npmname path-is-inside
f19d37
%{?nodejs_find_provides_and_requires}
f19d37
f19d37
Name:           %{?scl_prefix}nodejs-path-is-inside
f19d37
Version:        1.0.0
f19d37
Release:        1%{?dist}
f19d37
Summary:        Tests whether one path is inside another path
f19d37
Url:            https://github.com/domenic/path-is-inside
f19d37
Source0:        http://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.0.tgz
f19d37
License:        WTFPL
f19d37
f19d37
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
f19d37
f19d37
BuildRequires:  %{?scl_prefix}nodejs-devel
f19d37
f19d37
%description
f19d37
Tests whether one path is inside another path
f19d37
f19d37
%prep
f19d37
%setup -q -n package
f19d37
f19d37
%build
f19d37
#nothing to do
f19d37
f19d37
%install
f19d37
rm -rf %buildroot
f19d37
f19d37
mkdir -p %{buildroot}%{nodejs_sitelib}/path-is-inside
f19d37
cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/path-is-inside
f19d37
%nodejs_symlink_deps
f19d37
f19d37
%clean
f19d37
rm -rf %buildroot
f19d37
f19d37
%files
f19d37
%defattr(-,root,root,-)
f19d37
%{nodejs_sitelib}/path-is-inside
f19d37
f19d37
%doc LICENSE.txt README.md
f19d37
f19d37
%changelog
f19d37
* Wed Feb 12 2014 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-1
f19d37
- Initial build
f19d37