Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > b56d5d5fbb89cda814d2a16c27609f88 > files > 2

nodejs-atob-2.1.1-5.mga9.src.rpm

%global npm_name atob
%global enable_tests 1

Name: nodejs-%{npm_name}
Version: 2.1.1
Release: %mkrel 5
Summary: atob for Node
License: MIT OR ASL 2.0
Group: Development/Other
URL: https://git.coolaj86.com/coolaj86/atob.js.git
Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
BuildRequires: nodejs-packaging
BuildArch: noarch

%description
%{summary}

%prep
%setup -q -n package

%build
# Nothing to do here

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr bin %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr browser-atob.js %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr node-atob.js %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr test.js %{buildroot}%{nodejs_sitelib}/%{npm_name}

mkdir -p %{buildroot}%{_bindir}
chmod 0755 %{buildroot}%{nodejs_sitelib}/%{npm_name}/bin/atob.js
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/atob.js %{buildroot}%{_bindir}/atob.js

%nodejs_symlink_deps

%if 0%{?enable_tests}
%check
%{nodejs_symlink_deps} --check
%endif

%files
%{nodejs_sitelib}/%{npm_name}
%{_bindir}/atob.js
%license LICENSE
%license LICENSE.DOCS
%doc README.md



%changelog
* Tue Mar 22 2022 umeabot <umeabot> 2.1.1-5.mga9
+ Revision: 1819299
- Mageia 9 Mass Rebuild

* Fri Feb 14 2020 umeabot <umeabot> 2.1.1-4.mga8
+ Revision: 1520002
- Mageia 8 Mass Rebuild

* Wed Oct 31 2018 joequant <joequant> 2.1.1-3.mga7
+ Revision: 1326837
- check executable name to avoid conflict with atob in nss

* Thu Sep 20 2018 umeabot <umeabot> 2.1.1-2.mga7
+ Revision: 1280161
- Mageia 7 Mass Rebuild

* Thu May 03 2018 kekepower <kekepower> 2.1.1-1.mga7
+ Revision: 1225788
- imported package nodejs-atob