Blame SPECS/nodejs-touch.spec

bde22c
%{?scl:%scl_package nodejs-%{npm_name}}
bde22c
%{!?scl:%global pkg_name %{name}}
bde22c
bde22c
%{?nodejs_find_provides_and_requires}
bde22c
%global npm_name touch
bde22c
bde22c
# Tests disabled due to dependencies not in brew yet
bde22c
%global enable_tests 0
bde22c
bde22c
Summary:       like touch in node
bde22c
Name:          %{?scl_prefix}nodejs-%{npm_name}
bde22c
Version:       1.0.0
bde22c
Release:       3%{?dist}
bde22c
License:       ISC
bde22c
URL:           https://github.com/isaacs/node-touch
bde22c
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
bde22c
BuildRequires: nodejs010-runtime
bde22c
ExclusiveArch: %{nodejs_arches} noarch
bde22c
BuildArch:     noarch
bde22c
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
bde22c
bde22c
%if 0%{?enable_tests}
bde22c
BuildRequires: %{?scl_prefix}nodejs(tap)
bde22c
%endif
bde22c
bde22c
%description
bde22c
For all your node touching needs.
bde22c
bde22c
%prep
bde22c
%setup -q -n package
bde22c
%nodejs_fixdep nopt
bde22c
bde22c
%build
bde22c
bde22c
%install
bde22c
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
bde22c
cp -pr bin package.json touch.js %{buildroot}%{nodejs_sitelib}/%{npm_name}
bde22c
bde22c
mkdir -p %{buildroot}%{_bindir}
bde22c
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/touch.js %{buildroot}%{_bindir}/touch.js
bde22c
bde22c
%nodejs_symlink_deps
bde22c
bde22c
%if 0%{?enable_tests}
bde22c
bde22c
%check
bde22c
%nodejs_symlink_deps --check
bde22c
tap test/*.js
bde22c
%endif
bde22c
bde22c
%files
bde22c
%doc README.md
bde22c
%license LICENSE
bde22c
%{nodejs_sitelib}/%{npm_name}
bde22c
%{_bindir}/touch.js
bde22c
bde22c
%changelog
bde22c
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-3
bde22c
- Enable scl macros
bde22c
bde22c
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.0.0-2
bde22c
- Fix dependencies
bde22c
bde22c
* Mon Dec 14 2015 Troy Dawson <tdawson@redhat.com> - 1.0.0-1
bde22c
- Initial package