Blame SPECS/nodejs-xtend.spec

d5b91a
%{?scl:%scl_package nodejs-%{module_name}}
d5b91a
%{!?scl:%global pkg_name %{name}}
d5b91a
%{?nodejs_find_provides_and_requires}
d5b91a
d5b91a
%global module_name xtend
d5b91a
d5b91a
Name:           %{?scl_prefix}nodejs-%{module_name}
d5b91a
Version:        4.0.0
d5b91a
Release:        5%{?dist}
d5b91a
Summary:        Extend like a boss
d5b91a
d5b91a
License:        MIT
d5b91a
URL:            https://github.com/Raynos/%{module_name}
d5b91a
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
d5b91a
BuildArch:      noarch
d5b91a
ExclusiveArch:  %{nodejs_arches} noarch
d5b91a
d5b91a
BuildRequires:  %{?scl_prefix}nodejs-devel
d5b91a
#BuildRequires:  %{?scl_prefix}npm(tape)
d5b91a
 
d5b91a
d5b91a
%description
d5b91a
xtend is a basic utility library which allows you to extend an object by
d5b91a
appending all of the properties from each object in a list. When there
d5b91a
are identical properties, the right-most property takes precedence.
d5b91a
d5b91a
%prep
d5b91a
%setup -q -n package
d5b91a
rm -rf node_modules
d5b91a
d5b91a
# Fix upstream file name
d5b91a
mv LICENCE LICENSE
d5b91a
d5b91a
%build
d5b91a
#nothing to build
d5b91a
d5b91a
%install
d5b91a
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
d5b91a
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
d5b91a
%nodejs_symlink_deps
d5b91a
d5b91a
#%check
d5b91a
#%nodejs_symlink_deps --check
d5b91a
#node test.js
d5b91a
d5b91a
%files
d5b91a
%doc LICENSE README.md
d5b91a
%{nodejs_sitelib}/%{module_name}
d5b91a
d5b91a
%changelog
d5b91a
* Thu Sep 15 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 4.0.0-5
d5b91a
- Built for RHSCL
d5b91a
- turn off tests
d5b91a
d5b91a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-4
d5b91a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d5b91a
d5b91a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-3
d5b91a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d5b91a
d5b91a
* Fri Oct 24 2014 Parag Nemade <pnemade AT redhat DOT com> - 4.0.0-2
d5b91a
- Add missing BR: npm(tape)
d5b91a
- fixed whitespace typo
d5b91a
d5b91a
* Fri Sep 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 4.0.0-1
d5b91a
- Initial packaging