Blame SPECS/nodejs-concat-map.spec

8f0b12
%{?scl:%scl_package nodejs-concat-map}
8f0b12
%{!?scl:%global pkg_name %{name}}
8f0b12
8f0b12
# spec file for package nodejs-nodejs-concat-map
8f0b12
8f0b12
%global npm_name concat-map
8f0b12
%{?nodejs_find_provides_and_requires}
8f0b12
8f0b12
%global enable_tests 0
8f0b12
8f0b12
Name:		%{?scl_prefix}nodejs-concat-map
8f0b12
Version:	0.0.1
2b846f
Release:	4%{?dist}
8f0b12
Summary:	Concatenative mapdashery
8f0b12
Url:		https://github.com/substack/node-concat-map
8f0b12
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
8f0b12
License:	MIT
8f0b12
8f0b12
BuildArch:	noarch
8f0b12
8f0b12
%if 0%{?fedora} >= 19
8f0b12
ExclusiveArch: %{nodejs_arches} noarch
8f0b12
%else
2b846f
ExclusiveArch: %{nodejs_arches} noarch
8f0b12
%endif
8f0b12
8f0b12
BuildRequires:  %{?scl_prefix}nodejs-devel
8f0b12
BuildRequires:  %{?scl_prefix}runtime
8f0b12
8f0b12
%if 0%{?enable_tests}
8f0b12
BuildRequires:	%{?scl_prefix}npm(tape)
8f0b12
%endif
8f0b12
8f0b12
%description
8f0b12
Concatenative mapdashery
8f0b12
8f0b12
%prep
8f0b12
%setup -q -n package
8f0b12
8f0b12
rm -rf node_modules
8f0b12
8f0b12
%build
8f0b12
8f0b12
%install
8f0b12
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
8f0b12
8f0b12
cp -pr package.json *.js \
8f0b12
%{buildroot}%{nodejs_sitelib}/%{npm_name}
8f0b12
8f0b12
%{nodejs_symlink_deps}
8f0b12
8f0b12
%if 0%{?enable_tests}
8f0b12
8f0b12
%check
8f0b12
%{nodejs_symlink_deps} --check
8f0b12
tape test/*.js
8f0b12
%endif
8f0b12
8f0b12
%files
8f0b12
%{nodejs_sitelib}/concat-map
8f0b12
8f0b12
%doc README.markdown LICENSE
8f0b12
8f0b12
%changelog
2b846f
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.1-4
2b846f
- Resolves: RHBZ#1543198, rebuild for multiarch
2b846f
8f0b12
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.1-3
8f0b12
- Use macro in -runtime dependency
8f0b12
8f0b12
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.1-2
8f0b12
- Rebuilt with updated metapackage
8f0b12
8f0b12
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 0.0.1-1
8f0b12
- Initial build