Jared K. Smith 1b85894
%{?nodejs_find_provides_and_requires}
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%global packagename imurmurhash
Jared K. Smith 1b85894
%global enable_tests 1
Jared K. Smith 1b85894
Jared K. Smith 1b85894
Name:		nodejs-imurmurhash
Jared K. Smith 1b85894
Version:	0.1.4
6a24c99
Release:	10%{?dist}
Jared K. Smith 1b85894
Summary:	An incremental implementation of MurmurHash3
Jared K. Smith 1b85894
Jared K. Smith 1b85894
License:	MIT
Jared K. Smith 1b85894
URL:		https://github.com/jensyt/imurmurhash-js
Jared K. Smith 1b85894
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 1b85894
Source1:	https://raw.githubusercontent.com/jensyt/imurmurhash-js/%{version}/LICENSE
Jared K. Smith 1b85894
Jared K. Smith 1b85894
Jared K. Smith 1b85894
BuildArch:	noarch
Jared K. Smith 1b85894
%if 0%{?fedora} >= 19
Jared K. Smith 1b85894
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 1b85894
%else
Jared K. Smith 1b85894
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 1b85894
%endif
Jared K. Smith 1b85894
Jared K. Smith 1b85894
BuildRequires:	nodejs-packaging
Jared K. Smith 1b85894
%if 0%{?enable_tests}
Jared K. Smith 1b85894
BuildRequires:	uglify-js
Jared K. Smith 1b85894
%endif
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%description
Jared K. Smith 1b85894
An incremental implementation of MurmurHash3
Jared K. Smith 1b85894
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%prep
Jared K. Smith 1b85894
%setup -q -n package
Jared K. Smith 1b85894
# setup the LICENSE file
Jared K. Smith 1b85894
cp -p %{SOURCE1} .
Jared K. Smith 1b85894
Jared K. Smith 1b85894
# remove pre-compressed script
Jared K. Smith 1b85894
rm imurmurhash.min.js
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%build
Jared K. Smith 1b85894
# nothing to do!
Jared K. Smith 1b85894
%{_bindir}/uglifyjs imurmurhash.js -o imurmurhash.min.js --comments
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%install
Jared K. Smith 1b85894
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 1b85894
cp -pr package.json *.js \
Jared K. Smith 1b85894
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%nodejs_symlink_deps
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%if 0%{?enable_tests}
Jared K. Smith 1b85894
%check
Jared K. Smith 1b85894
%nodejs_symlink_deps --check
Jared K. Smith 1b85894
%{__nodejs} -e 'require("./")'
Jared K. Smith 1b85894
echo "This modules contains no test suite..."
Jared K. Smith 1b85894
%endif
Jared K. Smith 1b85894
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%files
Jared K. Smith 1b85894
%{!?_licensedir:%global license %doc}
Jared K. Smith 1b85894
%doc *.md
Jared K. Smith 1b85894
%license LICENSE
Jared K. Smith 1b85894
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 1b85894
Jared K. Smith 1b85894
Jared K. Smith 1b85894
Jared K. Smith 1b85894
%changelog
6a24c99
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-10
6a24c99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6a24c99
57c5e16
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-9
57c5e16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
57c5e16
76f67fb
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-8
76f67fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
76f67fb
2b53fc6
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-7
2b53fc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2b53fc6
4a9424d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-6
4a9424d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4a9424d
5de81ef
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-5
5de81ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5de81ef
a903729
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
a903729
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a903729
d41df81
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-3
d41df81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d41df81
95122b3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-2
95122b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
95122b3
Jared K. Smith 1b85894
* Wed Dec 16 2015 Jared Smith <jsmith@fedoraproject.org> - 0.1.4-1
Jared K. Smith 1b85894
- Initial packaging