%{?nodejs_find_provides_and_requires} %global packagename memoizee %global enable_tests 0 # tests disabled due to missing npm(tad) test suite Name: nodejs-memoizee Version: 0.3.9 Release: 11%{?dist} Summary: Memoize/cache function results License: MIT URL: https://github.com/medikoo/memoize.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tad) %endif %description Memoize/cache function results %prep %setup -q -n package %nodejs_fixdep es6-weak-map ~2.0.1 # allow newer version of npm(es6-weak-map) %nodejs_fixdep d "<=2.0.0" # allow either the 0.1.x or 1.x.x series of npm(d) %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js lib/ ext/ normalizers/ \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %{__nodejs} %{nodejs_sitelib}/tad/bin/tad %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Wed Jan 29 2020 Fedora Release Engineering - 0.3.9-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.3.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.3.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.3.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.3.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.3.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.3.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.3.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Dec 22 2015 Jared Smith - 0.3.9-3 - Allow newer version of npm(d) * Tue Nov 10 2015 Jared Smith - 0.3.9-2 - Initial packaging