Blob Blame History Raw
%{?scl:%scl_package nodejs-util-extend}
%{!?scl:%global pkg_name %{name}}

%nodejs_find_provides_and_requires
Name:           %{?scl_prefix}nodejs-util-extend
Version:        1.0.1
Release:        3%{?dist}
Summary:        Node's internal object extension function
License:        MIT
Group:          Development/Languages/Other
Url:            https://github.com/isaacs/util-extend
Source:         http://registry.npmjs.org/util-extend/-/util-extend-%{version}.tgz
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-build
BuildArch:      noarch
ExclusiveArch:  %{ix86} x86_64 %{arm} noarch

%description
The object extending function used with Node.js.

%prep
%setup -q -n package

%build

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/util-extend
cp -pr package.json extend.js \
        %{buildroot}%{nodejs_sitelib}/util-extend/

%files
%defattr(-,root,root,-)
%doc README.md
%{nodejs_sitelib}/util-extend

%changelog
* Tue Jan 13 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-3
-  Remove undefined macro

* Mon Jan 12 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-2
- Add dist macro

* Tue Jan 06 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-1
- Initial build