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

9211e7
%global         pkgname d3-flame-graph
9211e7
%global         github https://github.com/spiermar/d3-flame-graph
9211e7
9211e7
Name:           js-d3-flame-graph
9211e7
Version:        3.0.2
9211e7
Release:        7%{?dist}
9211e7
Summary:        A D3.js plugin that produces flame graphs
9211e7
9211e7
BuildArch:      noarch
9211e7
9211e7
License:        ASL 2.0
9211e7
URL:            %{github}
9211e7
9211e7
Source0:        %{github}/archive/%{version}/%{pkgname}-%{version}.tar.gz
9211e7
Source1:        js-d3-flame-graph-vendor-%{version}-6.tar.xz
9211e7
Source2:        Makefile
9211e7
Source3:        list_bundled_nodejs_packages.py
9211e7
9211e7
Patch1:         001-remove-unused-frontend-crypto-and-update-hash-fn.patch
9211e7
Patch2:         002-webpack-update-hash-fn.vendor.patch
9211e7
9211e7
BuildRequires:  web-assets-devel
9211e7
BuildRequires:  nodejs
9211e7
Requires:       web-assets-filesystem
9211e7
9211e7
# Bundled npm packages
9211e7
Provides: bundled(npm(clean-webpack-plugin)) = 3.0.0
9211e7
Provides: bundled(npm(copy-webpack-plugin)) = 5.1.1
9211e7
Provides: bundled(npm(css-loader)) = 3.4.2
9211e7
Provides: bundled(npm(d3-array)) = 2.4.0
9211e7
Provides: bundled(npm(d3-dispatch)) = 1.0.6
9211e7
Provides: bundled(npm(d3-ease)) = 1.0.6
9211e7
Provides: bundled(npm(d3-format)) = 1.4.3
9211e7
Provides: bundled(npm(d3-hierarchy)) = 1.1.9
9211e7
Provides: bundled(npm(d3-scale)) = 3.2.1
9211e7
Provides: bundled(npm(d3-selection)) = 1.4.1
9211e7
Provides: bundled(npm(d3-transition)) = 1.3.2
9211e7
Provides: bundled(npm(eslint)) = 6.8.0
9211e7
Provides: bundled(npm(eslint-config-standard)) = 14.1.0
9211e7
Provides: bundled(npm(eslint-loader)) = 3.0.3
9211e7
Provides: bundled(npm(eslint-plugin-import)) = 2.20.1
9211e7
Provides: bundled(npm(eslint-plugin-node)) = 11.0.0
9211e7
Provides: bundled(npm(eslint-plugin-promise)) = 4.2.1
9211e7
Provides: bundled(npm(eslint-plugin-standard)) = 4.0.1
9211e7
Provides: bundled(npm(html-webpack-plugin)) = 3.2.0
9211e7
Provides: bundled(npm(script-ext-html-webpack-plugin)) = 2.1.4
9211e7
Provides: bundled(npm(style-loader)) = 1.1.3
9211e7
Provides: bundled(npm(tape)) = 4.13.2
9211e7
Provides: bundled(npm(terser-webpack-plugin)) = 1.4.3
9211e7
Provides: bundled(npm(webpack)) = 4.42.0
9211e7
Provides: bundled(npm(webpack-cli)) = 3.3.11
9211e7
Provides: bundled(npm(webpack-dev-server)) = 3.10.3
9211e7
9211e7
%description
9211e7
A D3.js plugin that produces flame graphs from hierarchical data.
9211e7
9211e7
9211e7
%package doc
9211e7
Summary: Documentation and example files for js-d3-flame-graph
9211e7
9211e7
%description doc
9211e7
Documentation and example files for js-d3-flame-graph.
9211e7
9211e7
9211e7
%prep
9211e7
%setup -q -T -D -b 0 -n %{pkgname}-%{version}
9211e7
%setup -q -T -D -b 1 -n %{pkgname}-%{version}
9211e7
9211e7
%patch1 -p1
9211e7
9211e7
9211e7
%build
9211e7
./node_modules/.bin/webpack --mode production
9211e7
9211e7
9211e7
%install
9211e7
install -d -m 755 %{buildroot}/%{_datadir}/%{pkgname}
9211e7
mv dist/templates/* %{buildroot}/%{_datadir}/%{pkgname}
9211e7
rmdir dist/templates
9211e7
9211e7
install -d -m 755 %{buildroot}/%{_jsdir}/%{pkgname}
9211e7
cp -a dist/* %{buildroot}/%{_jsdir}/%{pkgname}
9211e7
9211e7
9211e7
%files
9211e7
%{_jsdir}/%{pkgname}
9211e7
%{_datadir}/%{pkgname}
9211e7
9211e7
%license LICENSE
9211e7
%doc README.md
9211e7
9211e7
9211e7
%files doc
9211e7
%doc README.md examples
9211e7
9211e7
9211e7
%changelog
9211e7
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-7
9211e7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9211e7
  Related: rhbz#1991688
9211e7
9211e7
* Wed Jun 30 2021 Andreas Gerstmayr <agerstmayr@redhat.com> - 3.0.2-6
9211e7
- change webpack hash function to sha256
9211e7
- remove unused cryptographic implementations
9211e7
9211e7
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-5
9211e7
- Rebuilt for RHEL 9 BETA for openssl 3.0
9211e7
  Related: rhbz#1971065
9211e7
9211e7
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-4
9211e7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9211e7
9211e7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
9211e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9211e7
9211e7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
9211e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9211e7
9211e7
* Fri Mar 20 2020 Andreas Gerstmayr <agerstmayr@redhat.com> 3.0.2-1
9211e7
- initial version