|
Jared K. Smith |
f92ef7a |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%global packagename json-stable-stringify
|
|
Jared K. Smith |
f92ef7a |
%global enable_tests 1
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
Name: nodejs-json-stable-stringify
|
|
Jared K. Smith |
f92ef7a |
Version: 1.0.1
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2d3bd6d |
Release: 7%{?dist}
|
|
Jared K. Smith |
f92ef7a |
Summary: Deterministic JSON.stringify() with custom sorting
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
License: MIT
|
|
Jared K. Smith |
f92ef7a |
URL: https://github.com/substack/json-stable-stringify.git
|
|
Jared K. Smith |
f92ef7a |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
BuildArch: noarch
|
|
Jared K. Smith |
f92ef7a |
%if 0%{?fedora} >= 19
|
|
Jared K. Smith |
f92ef7a |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
f92ef7a |
%else
|
|
Jared K. Smith |
f92ef7a |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
Jared K. Smith |
f92ef7a |
%endif
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
f92ef7a |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
f92ef7a |
BuildRequires: npm(tape)
|
|
Jared K. Smith |
f92ef7a |
%endif
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%description
|
|
Jared K. Smith |
f92ef7a |
Deterministic JSON.stringify() with custom sorting to get deterministic hashes
|
|
Jared K. Smith |
f92ef7a |
from stringified results.
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%prep
|
|
Jared K. Smith |
f92ef7a |
%setup -q -n package
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%build
|
|
Jared K. Smith |
f92ef7a |
# nothing to do!
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%install
|
|
Jared K. Smith |
f92ef7a |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
f92ef7a |
cp -pr package.json index.js \
|
|
Jared K. Smith |
f92ef7a |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%nodejs_symlink_deps
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%check
|
|
Jared K. Smith |
f92ef7a |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
f92ef7a |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
f92ef7a |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
f92ef7a |
%{_bindir}/tape test/*.js
|
|
Jared K. Smith |
f92ef7a |
%else
|
|
Jared K. Smith |
f92ef7a |
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%endif
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%files
|
|
Jared K. Smith |
f92ef7a |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
f92ef7a |
%doc *.markdown
|
|
Jared K. Smith |
f92ef7a |
%license LICENSE
|
|
Jared K. Smith |
f92ef7a |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
|
|
Jared K. Smith |
f92ef7a |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2d3bd6d |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2d3bd6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
2d3bd6d |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
59a4a2a |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
59a4a2a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
59a4a2a |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
eefefd3 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
eefefd3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
eefefd3 |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
819f2c3 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
819f2c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
819f2c3 |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
19b6218 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
19b6218 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
19b6218 |
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
3ca0fa5 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
3ca0fa5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/66cca4ddfe914918eb13788577f8ad64d709ccf9f83b384b49228bb9a83a1533?s=16&d=retro) |
3ca0fa5 |
|
|
Jared K. Smith |
f92ef7a |
* Sat Feb 20 2016 Jared Smith <jsmith@fedoraproject.org> - 1.0.1-1
|
|
Jared K. Smith |
f92ef7a |
- Initial packaging
|