Blame nodejs-is-fullwidth-code-point.spec

Jared K. Smith fec42b6
%{?nodejs_find_provides_and_requires}
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%global packagename is-fullwidth-code-point
Jared K. Smith fec42b6
%global enable_tests 0
Jared K. Smith fec42b6
# tests disabed until 'ava' is packaged for Fedora
Jared K. Smith fec42b6
Jared K. Smith fec42b6
Name:		nodejs-is-fullwidth-code-point
Jared K. Smith fec42b6
Version:	1.0.0
5ec07cc
Release:	9%{?dist}
Jared K. Smith fec42b6
Summary:	Check if given Unicode code point is fullwidth
Jared K. Smith fec42b6
Jared K. Smith fec42b6
License:	MIT
Jared K. Smith fec42b6
URL:		https://github.com/sindresorhus/is-fullwidth-code-point
Jared K. Smith fec42b6
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith fec42b6
# The test files are not included in the npm tarball.
Jared K. Smith fec42b6
Source1:	https://raw.githubusercontent.com/sindresorhus/is-fullwidth-code-point/v%{version}/test.js
Jared K. Smith fec42b6
Jared K. Smith fec42b6
Jared K. Smith fec42b6
ExclusiveArch:	%{nodejs_arches} noarch
Jared K. Smith fec42b6
BuildArch:	noarch
Jared K. Smith fec42b6
Jared K. Smith fec42b6
BuildRequires:	nodejs-packaging
Jared K. Smith fec42b6
BuildRequires:	npm(number-is-nan)
Jared K. Smith fec42b6
%if 0%{?enable_tests}
Jared K. Smith fec42b6
BuildRequires:	npm(ava)
Jared K. Smith fec42b6
BuildRequires:	npm(code-point-at)
Jared K. Smith fec42b6
%endif
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%description
Jared K. Smith fec42b6
Check if the character represented by a given Unicode code point is fullwidth
Jared K. Smith fec42b6
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%prep
Jared K. Smith fec42b6
%setup -q -n package
Jared K. Smith fec42b6
# setup the tests
Jared K. Smith fec42b6
cp -r %{SOURCE1} .
Jared K. Smith fec42b6
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%build
Jared K. Smith fec42b6
# nothing to do!
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%install
Jared K. Smith fec42b6
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith fec42b6
cp -pr package.json index.js \
Jared K. Smith fec42b6
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%nodejs_symlink_deps
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%check
Jared K. Smith fec42b6
%nodejs_symlink_deps --check
Jared K. Smith fec42b6
%{__nodejs} -e 'require("./")'
Jared K. Smith fec42b6
%if 0%{?enable_tests}
Jared K. Smith fec42b6
%{__nodejs} test.js
Jared K. Smith fec42b6
%else
Jared K. Smith fec42b6
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith fec42b6
%endif
Jared K. Smith fec42b6
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%files
Jared K. Smith fec42b6
%{!?_licensedir:%global license %doc}
Jared K. Smith fec42b6
%doc *.md
Jared K. Smith fec42b6
%license license
Jared K. Smith fec42b6
%{nodejs_sitelib}/%{packagename}
Jared K. Smith fec42b6
Jared K. Smith fec42b6
Jared K. Smith fec42b6
%changelog
5ec07cc
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-9
5ec07cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5ec07cc
1898298
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
1898298
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1898298
61ae8ed
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
61ae8ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
61ae8ed
c44f3ab
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
c44f3ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c44f3ab
441c47c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
441c47c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
441c47c
57787c4
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
57787c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
57787c4
fa39a67
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
fa39a67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fa39a67
4522dfe
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
4522dfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4522dfe
Jared K. Smith fec42b6
* Tue Feb 23 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-1
Jared K. Smith fec42b6
- Initial packaging