Blame SPECS/nodejs-touch.spec

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