Blame nodejs-md5-hex.spec

Jared K. Smith 2e5a039
%{?nodejs_find_provides_and_requires}
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%global packagename md5-hex
Jared K. Smith 2e5a039
%global enable_tests 0
Jared K. Smith 2e5a039
# Tests disabled due to missing 'ava' in Fedora
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Name:		nodejs-md5-hex
Jared K. Smith 2e5a039
Version:	1.3.0
6dda917
Release:	8%{?dist}
Jared K. Smith 2e5a039
Summary:	Create a MD5 hash with hex encoding
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
License:	MIT
Jared K. Smith 2e5a039
URL:		https://github.com/sindresorhus/md5-hex.git
Jared K. Smith 2e5a039
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 2e5a039
# The test files are not included in the npm tarball.
Jared K. Smith 2e5a039
Source1:	https://raw.githubusercontent.com/sindresorhus/md5-hex/v%{version}/test.js
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
BuildArch:	noarch
Jared K. Smith 2e5a039
%if 0%{?fedora} >= 19
Jared K. Smith 2e5a039
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 2e5a039
%else
Jared K. Smith 2e5a039
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 2e5a039
%endif
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
BuildRequires:	nodejs-packaging
Jared K. Smith 2e5a039
BuildRequires:	npm(md5-o-matic)
Jared K. Smith 2e5a039
%if 0%{?enable_tests}
Jared K. Smith 2e5a039
BuildRequires:	npm(ava)
Jared K. Smith 2e5a039
%endif
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%description
Jared K. Smith 2e5a039
Create a MD5 hash with hex encoding
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%prep
Jared K. Smith 2e5a039
%setup -q -n package
Jared K. Smith 2e5a039
# setup the tests
Jared K. Smith 2e5a039
cp -p %{SOURCE1} .
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%build
Jared K. Smith 2e5a039
# nothing to do!
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%install
Jared K. Smith 2e5a039
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 2e5a039
cp -pr package.json index.js browser.js \
Jared K. Smith 2e5a039
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%nodejs_symlink_deps
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%check
Jared K. Smith 2e5a039
%nodejs_symlink_deps --check
Jared K. Smith 2e5a039
%{__nodejs} -e 'require("./")'
Jared K. Smith 2e5a039
%if 0%{?enable_tests}
Jared K. Smith 2e5a039
%{_bindir}/ava
Jared K. Smith 2e5a039
%else
Jared K. Smith 2e5a039
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 2e5a039
%endif
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%files
Jared K. Smith 2e5a039
%{!?_licensedir:%global license %doc}
Jared K. Smith 2e5a039
%doc *.md
Jared K. Smith 2e5a039
%license license
Jared K. Smith 2e5a039
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
%changelog
6dda917
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
6dda917
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6dda917
05b2866
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-7
05b2866
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
05b2866
a701e11
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
a701e11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a701e11
24f4138
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
24f4138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
24f4138
9b81fa1
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
9b81fa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9b81fa1
fbbcb01
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
fbbcb01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fbbcb01
d63e7b6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
d63e7b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d63e7b6
Jared K. Smith 2e5a039
* Wed Jul 13 2016 Jared Smith <jsmith@fedoraproject.org> - 1.3.0-1
Jared K. Smith 2e5a039
- Update to upstream 1.3.0 release
Jared K. Smith 2e5a039
Jared K. Smith 2e5a039
* Tue Feb  9 2016 Jared Smith <jsmith@fedoraproject.org> - 1.2.1-1
Jared K. Smith 2e5a039
- Initial packaging