Blob Blame History Raw
%global enable_tests 1
%global srcname oop

Name:           nodejs-%{srcname}
Version:        0.0.3
Release:        3%{?dist}
Summary:        Node.js module for simple & light-weight oop
License:        MIT
URL:            https://github.com/felixge/node-oop
Source0:        https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
Source1:        https://raw.githubusercontent.com/felixge/node-oop/master/LICENSE

BuildArch:      noarch
ExclusiveArch:  %{nodejs_arches} noarch

BuildRequires:  nodejs-packaging

%description
%{summary}.

%prep
%setup -q -n package
rm -rf node_modules
cp -p %{SOURCE1} .

%build
#nothing to do

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

mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}/lib
cp -pr lib/index.js lib/oop.js \
    %{buildroot}%{nodejs_sitelib}/%{srcname}/lib

%nodejs_symlink_deps

%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
node test/integration/test-*.js
%endif

%files
%doc Readme.md
%license LICENSE
%{nodejs_sitelib}/%{srcname}

%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sat Oct 24 2015 Piotr Popieluch <piotr1212@gmail.com> - 0.0.3-1
- Initial package