Blame nodejs-md5-o-matic.spec

Jared K. Smith 3929d95
%{?nodejs_find_provides_and_requires}
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%global packagename md5-o-matic
Jared K. Smith 3929d95
%global enable_tests 1
Jared K. Smith 3929d95
Jared K. Smith 3929d95
Name:		nodejs-md5-o-matic
Jared K. Smith 3929d95
Version:	0.1.1
e35b57b
Release:	3%{?dist}
Jared K. Smith 3929d95
Summary:	Fast and simple MD5 hashing utility with zero dependencies
Jared K. Smith 3929d95
Jared K. Smith 3929d95
License:	MIT
Jared K. Smith 3929d95
URL:		https://github.com/trentmillar/md5-o-matic.git
Jared K. Smith 3929d95
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 3929d95
Jared K. Smith 3929d95
Jared K. Smith 3929d95
BuildArch:	noarch
Jared K. Smith 3929d95
%if 0%{?fedora} >= 19
Jared K. Smith 3929d95
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 3929d95
%else
Jared K. Smith 3929d95
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 3929d95
%endif
Jared K. Smith 3929d95
Jared K. Smith 3929d95
BuildRequires:	nodejs-packaging
Jared K. Smith 3929d95
%if 0%{?enable_tests}
Jared K. Smith 3929d95
BuildRequires:	mocha
Jared K. Smith 3929d95
BuildRequires:	npm(should)
Jared K. Smith 3929d95
%endif
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%description
Jared K. Smith 3929d95
Fast and simple MD5 hashing utility with zero module dependencies. View the MD5
Jared K. Smith 3929d95
Shootout results at http://jsperf.com/md5-shootout/39
Jared K. Smith 3929d95
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%prep
Jared K. Smith 3929d95
%setup -q -n package
Jared K. Smith 3929d95
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%build
Jared K. Smith 3929d95
# nothing to do!
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%install
Jared K. Smith 3929d95
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 3929d95
cp -pr package.json lib/ \
Jared K. Smith 3929d95
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%nodejs_symlink_deps
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%check
Jared K. Smith 3929d95
%nodejs_symlink_deps --check
Jared K. Smith 3929d95
%{__nodejs} -e 'require("./")'
Jared K. Smith 3929d95
%if 0%{?enable_tests}
Jared K. Smith 3929d95
%{_bindir}/mocha -R spec
Jared K. Smith 3929d95
%else
Jared K. Smith 3929d95
%{_bindir}/echo "Tests disabled..."
Jared K. Smith 3929d95
%endif
Jared K. Smith 3929d95
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%files
Jared K. Smith 3929d95
%{!?_licensedir:%global license %doc}
Jared K. Smith 3929d95
%doc *.md
Jared K. Smith 3929d95
%license LICENSE
Jared K. Smith 3929d95
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 3929d95
Jared K. Smith 3929d95
Jared K. Smith 3929d95
%changelog
e35b57b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-3
e35b57b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e35b57b
1e91b05
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
1e91b05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1e91b05
Jared K. Smith 3929d95
* Tue Feb  9 2016 Jared Smith <jsmith@fedoraproject.org> - 0.1.1-1
Jared K. Smith 3929d95
- Initial packaging