2020-03-23 14:08:06 +00:00
|
|
|
%global pkgname d3-flame-graph
|
|
|
|
%global github https://github.com/spiermar/d3-flame-graph
|
|
|
|
|
|
|
|
Name: js-d3-flame-graph
|
2021-10-01 12:14:59 +00:00
|
|
|
Version: 4.0.7
|
2023-01-19 13:53:36 +00:00
|
|
|
Release: 4%{?dist}
|
2020-03-23 14:08:06 +00:00
|
|
|
Summary: A D3.js plugin that produces flame graphs
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: %{github}
|
|
|
|
|
|
|
|
Source0: %{github}/archive/%{version}/%{pkgname}-%{version}.tar.gz
|
2021-10-01 12:14:59 +00:00
|
|
|
# Note: In case there were no changes to this tarball, the NVR of this tarball
|
|
|
|
# lags behind the NVR of this package.
|
|
|
|
Source1: js-d3-flame-graph-vendor-%{version}-1.tar.xz
|
2021-06-29 17:17:44 +00:00
|
|
|
Source2: Makefile
|
|
|
|
Source3: list_bundled_nodejs_packages.py
|
|
|
|
|
2021-10-01 12:14:59 +00:00
|
|
|
Patch1: 001-remove-unused-frontend-crypto-and-patch-md4.patch
|
2020-03-23 14:08:06 +00:00
|
|
|
|
|
|
|
BuildRequires: web-assets-devel
|
|
|
|
BuildRequires: nodejs
|
2021-10-01 14:21:53 +00:00
|
|
|
|
|
|
|
%if 0%{?fedora}
|
2020-03-23 14:08:06 +00:00
|
|
|
Requires: web-assets-filesystem
|
2021-10-01 14:21:53 +00:00
|
|
|
%endif
|
2020-03-23 14:08:06 +00:00
|
|
|
|
|
|
|
# Bundled npm packages
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(babel-preset-env)) = 1.7.0
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(clean-webpack-plugin)) = 3.0.0
|
|
|
|
Provides: bundled(npm(copy-webpack-plugin)) = 5.1.1
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(css-loader)) = 3.5.2
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(d3-array)) = 2.4.0
|
|
|
|
Provides: bundled(npm(d3-dispatch)) = 1.0.6
|
|
|
|
Provides: bundled(npm(d3-ease)) = 1.0.6
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(d3-format)) = 1.4.4
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(d3-hierarchy)) = 1.1.9
|
|
|
|
Provides: bundled(npm(d3-scale)) = 3.2.1
|
|
|
|
Provides: bundled(npm(d3-selection)) = 1.4.1
|
|
|
|
Provides: bundled(npm(d3-transition)) = 1.3.2
|
|
|
|
Provides: bundled(npm(eslint)) = 6.8.0
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(eslint-config-standard)) = 14.1.1
|
|
|
|
Provides: bundled(npm(eslint-loader)) = 4.0.0
|
|
|
|
Provides: bundled(npm(eslint-plugin-import)) = 2.20.2
|
|
|
|
Provides: bundled(npm(eslint-plugin-node)) = 11.1.0
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(eslint-plugin-promise)) = 4.2.1
|
|
|
|
Provides: bundled(npm(eslint-plugin-standard)) = 4.0.1
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(html-webpack-plugin)) = 4.2.0
|
|
|
|
Provides: bundled(npm(jest)) = 25.4.0
|
|
|
|
Provides: bundled(npm(prettier)) = 2.0.4
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(script-ext-html-webpack-plugin)) = 2.1.4
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(style-loader)) = 1.1.4
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(terser-webpack-plugin)) = 1.4.3
|
2021-10-01 12:14:59 +00:00
|
|
|
Provides: bundled(npm(webpack)) = 4.42.1
|
2021-06-29 17:17:44 +00:00
|
|
|
Provides: bundled(npm(webpack-cli)) = 3.3.11
|
|
|
|
Provides: bundled(npm(webpack-dev-server)) = 3.10.3
|
2020-03-23 14:08:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A D3.js plugin that produces flame graphs from hierarchical data.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation and example files for js-d3-flame-graph
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation and example files for js-d3-flame-graph.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-06-29 17:17:44 +00:00
|
|
|
%setup -q -T -D -b 0 -n %{pkgname}-%{version}
|
|
|
|
%setup -q -T -D -b 1 -n %{pkgname}-%{version}
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
2020-03-23 14:08:06 +00:00
|
|
|
|
|
|
|
%build
|
2021-06-29 17:17:44 +00:00
|
|
|
./node_modules/.bin/webpack --mode production
|
|
|
|
|
2020-03-23 14:08:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 755 %{buildroot}/%{_datadir}/%{pkgname}
|
|
|
|
mv dist/templates/* %{buildroot}/%{_datadir}/%{pkgname}
|
|
|
|
rmdir dist/templates
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}/%{_jsdir}/%{pkgname}
|
|
|
|
cp -a dist/* %{buildroot}/%{_jsdir}/%{pkgname}
|
|
|
|
|
2021-06-29 17:17:44 +00:00
|
|
|
|
2021-10-01 12:14:59 +00:00
|
|
|
%check
|
|
|
|
./node_modules/.bin/jest
|
|
|
|
|
|
|
|
|
2020-03-23 14:08:06 +00:00
|
|
|
%files
|
|
|
|
%{_jsdir}/%{pkgname}
|
|
|
|
%{_datadir}/%{pkgname}
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
2021-06-29 17:17:44 +00:00
|
|
|
|
2020-03-23 14:08:06 +00:00
|
|
|
%files doc
|
|
|
|
%doc README.md examples
|
|
|
|
|
2021-06-29 17:17:44 +00:00
|
|
|
|
2020-03-23 14:08:06 +00:00
|
|
|
%changelog
|
2023-01-19 13:53:36 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-21 15:24:17 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-20 13:57:52 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-10-01 12:14:59 +00:00
|
|
|
* Fri Oct 01 2021 Andreas Gerstmayr <agerstmayr@redhat.com> - 4.0.7-1
|
|
|
|
- update to 4.0.7 tagged upstream community sources, see CHANGELOG
|
|
|
|
|
2021-06-29 17:17:44 +00:00
|
|
|
* Wed Sep 29 2021 Andreas Gerstmayr <agerstmayr@redhat.com> - 3.0.2-5
|
|
|
|
- change webpack hash function to sha256
|
|
|
|
- remove unused cryptographic implementations
|
|
|
|
|
2021-07-22 09:15:23 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-26 15:01:13 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 02:30:41 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-03-23 14:08:06 +00:00
|
|
|
* Fri Mar 20 2020 Andreas Gerstmayr <agerstmayr@redhat.com> 3.0.2-1
|
|
|
|
- initial version
|