This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nodejs-Base64/nodejs-Base64.spec
Fedora Release Engineering d329b44950 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 04:19:54 +00:00

68 lines
1.6 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
%global packagename Base64
%global enable_tests 1
Name: nodejs-Base64
Version: 1.0.1
Release: 2%{?dist}
Summary: Base64 encoding and decoding
License: (ASL 2.0 OR WTFPL)
URL: https://github.com/davidchambers/Base64.js
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
# The test files are not included in the npm tarball.
# Source1 is generated by running Source10, which pulls from the upstream
# version control repository.
Source1: tests-%{version}.tar.bz2
Source10: dl-tests.sh
ExclusiveArch: %{nodejs_arches} noarch
BuildArch: noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: coffee-script
BuildRequires: mocha
%endif
%description
Base64 encoding and decoding
%prep
%autosetup -n package
# setup the tests
%autosetup -T -D -a 1 -n package
%build
# nothing to do!
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/mocha -R spec --compilers coffee:coffee-script/register
%else
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
%endif
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/%{packagename}
%changelog
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Oct 4 2017 Jared Smith <jsmith@fedoraproject.org> - 1.0.1-1
- Initial packaging