|
|
5240c7 |
%{?scl:%scl_package nodejs-read-cmd-shim}
|
|
|
5240c7 |
%{!?scl:%global pkg_name %{name}}
|
|
|
5240c7 |
|
|
|
5240c7 |
%{?nodejs_find_provides_and_requires}
|
|
|
5240c7 |
|
|
|
5240c7 |
%global packagename read-cmd-shim
|
|
|
5240c7 |
%global enable_tests 0
|
|
|
5240c7 |
|
|
|
5240c7 |
Name: %{?scl_prefix}nodejs-read-cmd-shim
|
|
|
5240c7 |
Version: 1.0.1
|
|
|
5240c7 |
Release: 4%{?dist}
|
|
|
5240c7 |
Summary: Figure out what a cmd-shim is pointing at
|
|
|
5240c7 |
|
|
|
5240c7 |
License: ISC
|
|
|
5240c7 |
URL: https://github.com/npm/read-cmd-shim.git
|
|
|
5240c7 |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
|
5240c7 |
Source1: LICENSE-ISC.txt
|
|
|
5240c7 |
# license file requested upstream at https://github.com/npm/read-cmd-shim/issues/1
|
|
|
5240c7 |
|
|
|
5240c7 |
Patch0: read-cmd-shim_fix-tests.patch
|
|
|
5240c7 |
# patch to fix the tests, submitted upstream at https://github.com/npm/read-cmd-shim/pull/2
|
|
|
5240c7 |
|
|
|
5240c7 |
BuildArch: noarch
|
|
|
5240c7 |
%if 0%{?fedora} >= 19
|
|
|
5240c7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
5240c7 |
%else
|
|
|
5240c7 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
5240c7 |
%endif
|
|
|
5240c7 |
|
|
|
5240c7 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
5240c7 |
%if 0%{?enable_tests}
|
|
|
5240c7 |
BuildRequires: %{?scl_prefix}npm(cmd-shim)
|
|
|
5240c7 |
BuildRequires: %{?scl_prefix}npm(graceful-fs)
|
|
|
5240c7 |
BuildRequires: %{?scl_prefix}npm(rimraf)
|
|
|
5240c7 |
BuildRequires: %{?scl_prefix}npm(tap)
|
|
|
5240c7 |
%endif
|
|
|
5240c7 |
|
|
|
5240c7 |
%description
|
|
|
5240c7 |
Figure out what a cmd-shim is pointing at. This acts as the equivalent of
|
|
|
5240c7 |
fs.readlink.
|
|
|
5240c7 |
|
|
|
5240c7 |
%prep
|
|
|
5240c7 |
%setup -q -n package
|
|
|
5240c7 |
cp -p %{SOURCE1} .
|
|
|
5240c7 |
%patch0 -p1
|
|
|
5240c7 |
|
|
|
5240c7 |
%build
|
|
|
5240c7 |
# nothing to do!
|
|
|
5240c7 |
|
|
|
5240c7 |
%install
|
|
|
5240c7 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
|
5240c7 |
cp -pr package.json *.js \
|
|
|
5240c7 |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
|
5240c7 |
|
|
|
5240c7 |
%nodejs_symlink_deps
|
|
|
5240c7 |
|
|
|
5240c7 |
%if 0%{?enable_tests}
|
|
|
5240c7 |
|
|
|
5240c7 |
%check
|
|
|
5240c7 |
%nodejs_symlink_deps --check
|
|
|
5240c7 |
%{__nodejs} -e 'require("./")'
|
|
|
5240c7 |
%{_bindir}/tap test/*.js
|
|
|
5240c7 |
%endif
|
|
|
5240c7 |
|
|
|
5240c7 |
%files
|
|
|
5240c7 |
%{!?_licensedir:%global license %doc}
|
|
|
5240c7 |
%doc *.md
|
|
|
5240c7 |
%license LICENSE-ISC.txt
|
|
|
5240c7 |
%{nodejs_sitelib}/%{packagename}
|
|
|
5240c7 |
|
|
|
5240c7 |
%changelog
|
|
|
5240c7 |
* Thu Sep 15 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-4
|
|
|
5240c7 |
- Built for RHSCL
|
|
|
5240c7 |
|
|
|
5240c7 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
|
|
5240c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
5240c7 |
|
|
|
5240c7 |
* Thu Dec 31 2015 Tom Hughes <tom@compton.nu> - 1.0.1-2
|
|
|
5240c7 |
- Require npm(graceful-fs) for tests
|
|
|
5240c7 |
|
|
|
5240c7 |
* Thu Dec 17 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.1-1
|
|
|
5240c7 |
- Initial packaging
|