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

80c103
%global         pkgname d3-flame-graph
80c103
%global         github https://github.com/spiermar/d3-flame-graph
80c103
80c103
Name:           js-d3-flame-graph
80c103
Version:        4.0.7
80c103
Release:        1%{?dist}
80c103
Summary:        A D3.js plugin that produces flame graphs
80c103
80c103
BuildArch:      noarch
80c103
80c103
License:        ASL 2.0
80c103
URL:            %{github}
80c103
80c103
Source0:        %{github}/archive/%{version}/%{pkgname}-%{version}.tar.gz
80c103
# Note: In case there were no changes to this tarball, the NVR of this tarball
80c103
# lags behind the NVR of this package.
80c103
Source1:        js-d3-flame-graph-vendor-%{version}-1.tar.xz
80c103
Source2:        Makefile
80c103
Source3:        list_bundled_nodejs_packages.py
80c103
80c103
Patch1:         001-remove-unused-frontend-crypto-and-patch-md4.patch
80c103
80c103
BuildRequires:  web-assets-devel
80c103
BuildRequires:  nodejs
80c103
80c103
%if 0%{?fedora}
80c103
Requires:       web-assets-filesystem
80c103
%endif
80c103
80c103
# Bundled npm packages
80c103
Provides: bundled(npm(babel-preset-env)) = 1.7.0
80c103
Provides: bundled(npm(clean-webpack-plugin)) = 3.0.0
80c103
Provides: bundled(npm(copy-webpack-plugin)) = 5.1.1
80c103
Provides: bundled(npm(css-loader)) = 3.5.2
80c103
Provides: bundled(npm(d3-array)) = 2.4.0
80c103
Provides: bundled(npm(d3-dispatch)) = 1.0.6
80c103
Provides: bundled(npm(d3-ease)) = 1.0.6
80c103
Provides: bundled(npm(d3-format)) = 1.4.4
80c103
Provides: bundled(npm(d3-hierarchy)) = 1.1.9
80c103
Provides: bundled(npm(d3-scale)) = 3.2.1
80c103
Provides: bundled(npm(d3-selection)) = 1.4.1
80c103
Provides: bundled(npm(d3-transition)) = 1.3.2
80c103
Provides: bundled(npm(eslint)) = 6.8.0
80c103
Provides: bundled(npm(eslint-config-standard)) = 14.1.1
80c103
Provides: bundled(npm(eslint-loader)) = 4.0.0
80c103
Provides: bundled(npm(eslint-plugin-import)) = 2.20.2
80c103
Provides: bundled(npm(eslint-plugin-node)) = 11.1.0
80c103
Provides: bundled(npm(eslint-plugin-promise)) = 4.2.1
80c103
Provides: bundled(npm(eslint-plugin-standard)) = 4.0.1
80c103
Provides: bundled(npm(html-webpack-plugin)) = 4.2.0
80c103
Provides: bundled(npm(jest)) = 25.4.0
80c103
Provides: bundled(npm(prettier)) = 2.0.4
80c103
Provides: bundled(npm(script-ext-html-webpack-plugin)) = 2.1.4
80c103
Provides: bundled(npm(style-loader)) = 1.1.4
80c103
Provides: bundled(npm(terser-webpack-plugin)) = 1.4.3
80c103
Provides: bundled(npm(webpack)) = 4.42.1
80c103
Provides: bundled(npm(webpack-cli)) = 3.3.11
80c103
Provides: bundled(npm(webpack-dev-server)) = 3.10.3
80c103
80c103
%description
80c103
A D3.js plugin that produces flame graphs from hierarchical data.
80c103
80c103
80c103
%package doc
80c103
Summary: Documentation and example files for js-d3-flame-graph
80c103
80c103
%description doc
80c103
Documentation and example files for js-d3-flame-graph.
80c103
80c103
80c103
%prep
80c103
%setup -q -T -D -b 0 -n %{pkgname}-%{version}
80c103
%setup -q -T -D -b 1 -n %{pkgname}-%{version}
80c103
80c103
%patch1 -p1
80c103
80c103
80c103
%build
80c103
./node_modules/.bin/webpack --mode production
80c103
80c103
80c103
%install
80c103
install -d -m 755 %{buildroot}/%{_datadir}/%{pkgname}
80c103
mv dist/templates/* %{buildroot}/%{_datadir}/%{pkgname}
80c103
rmdir dist/templates
80c103
80c103
install -d -m 755 %{buildroot}/%{_jsdir}/%{pkgname}
80c103
cp -a dist/* %{buildroot}/%{_jsdir}/%{pkgname}
80c103
80c103
80c103
%check
80c103
./node_modules/.bin/jest
80c103
80c103
80c103
%files
80c103
%{_jsdir}/%{pkgname}
80c103
%{_datadir}/%{pkgname}
80c103
80c103
%license LICENSE
80c103
%doc README.md
80c103
80c103
80c103
%files doc
80c103
%doc README.md examples
80c103
80c103
80c103
%changelog
80c103
* Fri Oct 01 2021 Andreas Gerstmayr <agerstmayr@redhat.com> - 4.0.7-1
80c103
- update to 4.0.7 tagged upstream community sources, see CHANGELOG
80c103
80c103
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-7
80c103
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
80c103
  Related: rhbz#1991688
80c103
80c103
* Wed Jun 30 2021 Andreas Gerstmayr <agerstmayr@redhat.com> - 3.0.2-6
80c103
- change webpack hash function to sha256
80c103
- remove unused cryptographic implementations
80c103
80c103
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-5
80c103
- Rebuilt for RHEL 9 BETA for openssl 3.0
80c103
  Related: rhbz#1971065
80c103
80c103
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-4
80c103
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
80c103
80c103
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
80c103
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
80c103
80c103
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
80c103
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
80c103
80c103
* Fri Mar 20 2020 Andreas Gerstmayr <agerstmayr@redhat.com> 3.0.2-1
80c103
- initial version