Blame SPECS/js-d3-flame-graph.spec

eaab14
%global         pkgname d3-flame-graph
eaab14
%global         github https://github.com/spiermar/d3-flame-graph
eaab14
eaab14
Name:           js-d3-flame-graph
25018a
Version:        4.0.7
25018a
Release:        1%{?dist}
eaab14
Summary:        A D3.js plugin that produces flame graphs
eaab14
eaab14
BuildArch:      noarch
eaab14
eaab14
License:        ASL 2.0
eaab14
URL:            %{github}
eaab14
eaab14
Source0:        %{github}/archive/%{version}/%{pkgname}-%{version}.tar.gz
25018a
# Note: In case there were no changes to this tarball, the NVR of this tarball
25018a
# lags behind the NVR of this package.
25018a
Source1:        js-d3-flame-graph-vendor-%{version}-1.tar.xz
25018a
Source2:        Makefile
25018a
Source3:        list_bundled_nodejs_packages.py
25018a
25018a
Patch1:         001-remove-unused-frontend-crypto-and-patch-md4.patch
eaab14
eaab14
BuildRequires:  web-assets-devel
eaab14
BuildRequires:  nodejs
eaab14
25018a
%if 0%{?fedora}
25018a
Requires:       web-assets-filesystem
25018a
%endif
25018a
eaab14
# Bundled npm packages
25018a
Provides: bundled(npm(babel-preset-env)) = 1.7.0
25018a
Provides: bundled(npm(clean-webpack-plugin)) = 3.0.0
25018a
Provides: bundled(npm(copy-webpack-plugin)) = 5.1.1
25018a
Provides: bundled(npm(css-loader)) = 3.5.2
25018a
Provides: bundled(npm(d3-array)) = 2.4.0
25018a
Provides: bundled(npm(d3-dispatch)) = 1.0.6
25018a
Provides: bundled(npm(d3-ease)) = 1.0.6
25018a
Provides: bundled(npm(d3-format)) = 1.4.4
25018a
Provides: bundled(npm(d3-hierarchy)) = 1.1.9
25018a
Provides: bundled(npm(d3-scale)) = 3.2.1
25018a
Provides: bundled(npm(d3-selection)) = 1.4.1
25018a
Provides: bundled(npm(d3-transition)) = 1.3.2
25018a
Provides: bundled(npm(eslint)) = 6.8.0
25018a
Provides: bundled(npm(eslint-config-standard)) = 14.1.1
25018a
Provides: bundled(npm(eslint-loader)) = 4.0.0
25018a
Provides: bundled(npm(eslint-plugin-import)) = 2.20.2
25018a
Provides: bundled(npm(eslint-plugin-node)) = 11.1.0
25018a
Provides: bundled(npm(eslint-plugin-promise)) = 4.2.1
25018a
Provides: bundled(npm(eslint-plugin-standard)) = 4.0.1
25018a
Provides: bundled(npm(html-webpack-plugin)) = 4.2.0
25018a
Provides: bundled(npm(jest)) = 25.4.0
25018a
Provides: bundled(npm(prettier)) = 2.0.4
25018a
Provides: bundled(npm(script-ext-html-webpack-plugin)) = 2.1.4
25018a
Provides: bundled(npm(style-loader)) = 1.1.4
25018a
Provides: bundled(npm(terser-webpack-plugin)) = 1.4.3
25018a
Provides: bundled(npm(webpack)) = 4.42.1
25018a
Provides: bundled(npm(webpack-cli)) = 3.3.11
25018a
Provides: bundled(npm(webpack-dev-server)) = 3.10.3
eaab14
eaab14
%description
eaab14
A D3.js plugin that produces flame graphs from hierarchical data.
eaab14
eaab14
eaab14
%package doc
eaab14
Summary: Documentation and example files for js-d3-flame-graph
eaab14
eaab14
%description doc
eaab14
Documentation and example files for js-d3-flame-graph.
eaab14
eaab14
eaab14
%prep
25018a
%setup -q -T -D -b 0 -n %{pkgname}-%{version}
25018a
%setup -q -T -D -b 1 -n %{pkgname}-%{version}
25018a
25018a
%patch1 -p1
25018a
eaab14
eaab14
%build
25018a
./node_modules/.bin/webpack --mode production
25018a
eaab14
eaab14
%install
eaab14
install -d -m 755 %{buildroot}/%{_datadir}/%{pkgname}
eaab14
mv dist/templates/* %{buildroot}/%{_datadir}/%{pkgname}
eaab14
rmdir dist/templates
eaab14
eaab14
install -d -m 755 %{buildroot}/%{_jsdir}/%{pkgname}
eaab14
cp -a dist/* %{buildroot}/%{_jsdir}/%{pkgname}
eaab14
25018a
25018a
%check
25018a
./node_modules/.bin/jest
25018a
25018a
eaab14
%files
eaab14
%{_jsdir}/%{pkgname}
eaab14
%{_datadir}/%{pkgname}
eaab14
eaab14
%license LICENSE
eaab14
%doc README.md
eaab14
25018a
eaab14
%files doc
eaab14
%doc README.md examples
eaab14
25018a
eaab14
%changelog
25018a
* Fri Oct 01 2021 Andreas Gerstmayr <agerstmayr@redhat.com> - 4.0.7-1
25018a
- update to 4.0.7 tagged upstream community sources, see CHANGELOG
25018a
eaab14
* Fri Mar 20 2020 Andreas Gerstmayr <agerstmayr@redhat.com> 3.0.2-1
eaab14
- initial version