Jared K. Smith e587e02
%{?nodejs_find_provides_and_requires}
Jared K. Smith e587e02
Jared K. Smith e587e02
%global packagename isexe
Jared K. Smith e587e02
%global enable_tests 1
Jared K. Smith e587e02
Jared K. Smith e587e02
Name:		nodejs-isexe
Jared K. Smith e587e02
Version:	1.0.0
fbdd384
Release:	3%{?dist}
Jared K. Smith e587e02
Summary:	Minimal module to check if a file is executable
Jared K. Smith e587e02
Jared K. Smith e587e02
License:	ISC
Jared K. Smith e587e02
URL:		https://github.com/isaacs/isexe
Jared K. Smith e587e02
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith e587e02
Jared K. Smith e587e02
# No license file in the npm package or upstream github
Jared K. Smith e587e02
# Requested at https://github.com/isaacs/isexe/issues/1
Jared K. Smith e587e02
Source1:	LICENSE-ISC.txt
Jared K. Smith e587e02
Jared K. Smith e587e02
BuildArch:	noarch
Jared K. Smith e587e02
%if 0%{?fedora} >= 19
Jared K. Smith e587e02
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith e587e02
%else
Jared K. Smith e587e02
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith e587e02
%endif
Jared K. Smith e587e02
Jared K. Smith e587e02
BuildRequires:	nodejs-packaging
Jared K. Smith e587e02
%if 0%{?enable_tests}
Jared K. Smith e587e02
BuildRequires:	npm(mkdirp)
Jared K. Smith e587e02
BuildRequires:	npm(rimraf)
Jared K. Smith e587e02
BuildRequires:	npm(tap)
Jared K. Smith e587e02
%endif
Jared K. Smith e587e02
Jared K. Smith e587e02
%description
Jared K. Smith e587e02
Minimal module to check if a file is executable.
Jared K. Smith e587e02
Jared K. Smith e587e02
Jared K. Smith e587e02
%prep
Jared K. Smith e587e02
%setup -q -n package
Jared K. Smith e587e02
Jared K. Smith e587e02
#copy the license file
Jared K. Smith e587e02
cp -p %{SOURCE1} .
Jared K. Smith e587e02
Jared K. Smith e587e02
Jared K. Smith e587e02
%build
Jared K. Smith e587e02
# nothing to do!
Jared K. Smith e587e02
Jared K. Smith e587e02
%install
Jared K. Smith e587e02
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith e587e02
cp -pr package.json *.js \
Jared K. Smith e587e02
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith e587e02
Jared K. Smith e587e02
%nodejs_symlink_deps
Jared K. Smith e587e02
Jared K. Smith e587e02
%check
Jared K. Smith e587e02
%nodejs_symlink_deps --check
Jared K. Smith e587e02
%{__nodejs} -e 'require("./")'
Jared K. Smith e587e02
%if 0%{?enable_tests}
Jared K. Smith e587e02
%{_bindir}/tap test/*.js
Jared K. Smith e587e02
%else
Jared K. Smith e587e02
%{_bindir}/echo "Tests disabled..."
Jared K. Smith e587e02
%endif
Jared K. Smith e587e02
Jared K. Smith e587e02
Jared K. Smith e587e02
%files
Jared K. Smith e587e02
%{!?_licensedir:%global license %doc}
Jared K. Smith e587e02
%doc *.md
Jared K. Smith e587e02
%license LICENSE-ISC.txt
Jared K. Smith e587e02
%{nodejs_sitelib}/%{packagename}
Jared K. Smith e587e02
Jared K. Smith e587e02
Jared K. Smith e587e02
%changelog
fbdd384
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
fbdd384
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fbdd384
Jared K. Smith e587e02
* Mon Jan 18 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-2
Jared K. Smith e587e02
- Add missing build requirements
Jared K. Smith e587e02
Jared K. Smith e587e02
* Mon Jan 18 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-1
Jared K. Smith e587e02
- Initial packaging