Blame SPECS/nodejs-delegates.spec

4743d3
%{?scl:%scl_package nodejs-delegates}
4743d3
%{!?scl:%global pkg_name %{name}}
4743d3
4743d3
# spec file for package nodejs-nodejs-delegates
4743d3
4743d3
%global npm_name delegates
4743d3
%{?nodejs_find_provides_and_requires}
4743d3
4743d3
%global enable_tests 0
4743d3
4743d3
Name:		%{?scl_prefix}nodejs-delegates
4743d3
Version:	0.1.0
4743d3
Release:	3%{?dist}
4743d3
Summary:	Delegate methods and accessors to another property
4743d3
Url:		https://github.com/visionmedia/node-delegates
4743d3
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
4743d3
Source1:    https://raw.githubusercontent.com/tj/node-delegates/1.0.0/License
4743d3
License:	MIT
4743d3
4743d3
BuildArch:	noarch
4743d3
4743d3
%if 0%{?fedora} >= 19
4743d3
ExclusiveArch: %{nodejs_arches} noarch
4743d3
%else
4743d3
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
4743d3
%endif
4743d3
4743d3
BuildRequires:  %{?scl_prefix}nodejs-devel
4743d3
BuildRequires:  nodejs010-runtime
4743d3
%if 0%{?enable_tests}
4743d3
BuildRequires:	%{?scl_prefix}npm(mocha)
4743d3
BuildRequires:	%{?scl_prefix}npm(should)
4743d3
%endif
4743d3
4743d3
%description
4743d3
delegate methods and accessors to another property
4743d3
4743d3
%prep
4743d3
%setup -q -n package
4743d3
4743d3
cp -p %{SOURCE1} .
4743d3
4743d3
rm -rf node_modules
4743d3
4743d3
%build
4743d3
4743d3
#nothing to do
4743d3
4743d3
%install
4743d3
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
4743d3
4743d3
cp -pr package.json *.js \
4743d3
%{buildroot}%{nodejs_sitelib}/%{npm_name}
4743d3
4743d3
%{nodejs_symlink_deps}
4743d3
4743d3
%if 0%{?enable_tests}
4743d3
4743d3
%check
4743d3
%{nodejs_symlink_deps} --check
4743d3
4743d3
%endif
4743d3
4743d3
%files
4743d3
%{nodejs_sitelib}/delegates
4743d3
4743d3
%doc Readme.md
4743d3
4743d3
%changelog
4743d3
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.0-3
4743d3
- rebuilt
4743d3
4743d3
* Sat Feb 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.0-2
4743d3
- Add License
4743d3
4743d3
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 0.1.0-1
4743d3
- Initial build