The package rpms/grafana-pcp.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/grafana-pcp.git/commit/?id=c17155....
Change:
+ExclusiveArch: %{nodejs_arches}
Thanks.
Full change:
============
commit c17155187aa6505dd9f57647f917e51d5d47ebb5
Author: Andreas Gerstmayr <andreas(a)gerstmayr.me>
Date: Fri Aug 30 11:56:40 2019 +0200
Initial import (#1744132).
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bacbfb6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/grafana-pcp-0.0.7.tar.gz
+/grafana-pcp-deps-0.0.7.tar.xz
diff --git a/create_dependency_bundle.sh b/create_dependency_bundle.sh
new file mode 100755
index 0000000..a3a6ad6
--- /dev/null
+++ b/create_dependency_bundle.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+
+VER="${1:?Usage: $0 version destination}"
+DEST="${2:?Usage: $0 version destination}"
+
+if [ -f "$DEST" ]; then
+ echo "File $DEST exists already."
+ exit 0
+fi
+
+pushd $(mktemp -d)
+wget
https://github.com/performancecopilot/grafana-pcp/archive/v$VER/grafana-p...
+tar xfz grafana-pcp-$VER.tar.gz
+cd grafana-pcp-$VER
+yarn install
+echo "Compressing..."
+XZ_OPT=-9 tar cJf $DEST node_modules
+popd
diff --git a/grafana-pcp.spec b/grafana-pcp.spec
new file mode 100644
index 0000000..f274ff9
--- /dev/null
+++ b/grafana-pcp.spec
@@ -0,0 +1,109 @@
+Name: grafana-pcp
+Version: 0.0.7
+Release: 1%{?dist}
+Summary: Performance Co-Pilot App for Grafana
+
+%global github
https://github.com/performancecopilot/grafana-pcp
+%global install_dir %{_sharedstatedir}/grafana/plugins/grafana-pcp
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches}
+
+License: ASL 2.0
+URL: %{github}
+
+Source0: %{github}/archive/v%{version}/%{name}-%{version}.tar.gz
+Source1: grafana-pcp-deps-%{version}.tar.xz
+Source2: create_dependency_bundle.sh
+
+BuildRequires: nodejs
+Requires: pcp >= 4.3.4
+Requires: grafana >= 6.2.2
+Suggests: redis >= 5.0.4
+
+# Bundled npm packages
+Provides: bundled(nodejs-@babel/cli) = 7.5.5
+Provides: bundled(nodejs-@babel/core) = 7.5.5
+Provides: bundled(nodejs-@babel/preset-env) = 7.5.5
+Provides: bundled(nodejs-@babel/preset-typescript) = 7.3.3
+Provides: bundled(nodejs-@types/benchmark) = 1.0.31
+Provides: bundled(nodejs-@types/grafana) = 4.6.3
+Provides: bundled(nodejs-@types/jest) = 23.3.14
+Provides: bundled(nodejs-@types/lodash) = 4.14.136
+Provides: bundled(nodejs-babel-jest) = 24.8.0
+Provides: bundled(nodejs-babel-loader) = 8.0.6
+Provides: bundled(nodejs-benchmark) = 2.1.4
+Provides: bundled(nodejs-clean-webpack-plugin) = 0.1.19
+Provides: bundled(nodejs-copy-webpack-plugin) = 4.6.0
+Provides: bundled(nodejs-core-js) = 3.1.4
+Provides: bundled(nodejs-css-loader) = 1.0.1
+Provides: bundled(nodejs-expr-eval) = 1.2.3
+Provides: bundled(nodejs-jest) = 24.8.0
+Provides: bundled(nodejs-jest-date-mock) = 1.0.7
+Provides: bundled(nodejs-jsdom) = 9.12.0
+Provides: bundled(nodejs-lodash) = 4.17.15
+Provides: bundled(nodejs-mocha) = 6.2.0
+Provides: bundled(nodejs-ng-annotate-webpack-plugin) = 0.3.0
+Provides: bundled(nodejs-prunk) = 1.3.1
+Provides: bundled(nodejs-q) = 1.5.1
+Provides: bundled(nodejs-regenerator-runtime) = 0.12.1
+Provides: bundled(nodejs-request) = 2.88.0
+Provides: bundled(nodejs-style-loader) = 0.22.1
+Provides: bundled(nodejs-ts-jest) = 24.0.2
+Provides: bundled(nodejs-ts-loader) = 4.5.0
+Provides: bundled(nodejs-tslint) = 5.18.0
+Provides: bundled(nodejs-tslint-config-airbnb) = 5.11.1
+Provides: bundled(nodejs-typescript) = 3.5.3
+Provides: bundled(nodejs-uglifyjs-webpack-plugin) = 2.2.0
+Provides: bundled(nodejs-weak) = 1.0.1
+Provides: bundled(nodejs-webpack) = 4.39.1
+Provides: bundled(nodejs-webpack-cli) = 3.3.6
+
+
+%description
+This Grafana plugin for Performance Co-Pilot includes datasources for
+pmseries, live metrics and the bpftrace PMDA, and several example dashboards.
+
+%prep
+%setup -q
+%setup -q -a 1
+
+%build
+rm -rf dist
+./node_modules/webpack/bin/webpack.js --config webpack.config.prod.js
+
+%check
+./node_modules/jest/bin/jest.js --silent
+
+%install
+install -d -m 755 %{buildroot}/%{install_dir}
+cp -a dist/* %{buildroot}/%{install_dir}
+
+%files
+%{install_dir}
+
+%license LICENSE NOTICE
+%doc README.md
+
+%changelog
+* Fri Aug 16 2019 Andreas Gerstmayr <agerstmayr(a)redhat.com> 0.0.7-1
+- converted into a Grafana app plugin, renamed to grafana-pcp
+- redis: support for instance domains, labels, autocompletion, automatic rate
conversation
+- live and bpftrace: initial commit of datasources
+
+* Tue Jun 11 2019 Mark Goodwin <mgoodwin(a)redhat.com> 0.0.6-1
+- renamed package to grafana-pcp-redis, updated README, etc
+
+* Wed Jun 05 2019 Mark Goodwin <mgoodwin(a)redhat.com> 0.0.5-1
+- renamed package to grafana-pcp-datasource, README, etc
+
+* Fri May 17 2019 Mark Goodwin <mgoodwin(a)redhat.com> 0.0.4-1
+- add suggested pmproxy URL in config html
+- updated instructions and README.md now that grafana is in Fedora
+
+* Fri Apr 12 2019 Mark Goodwin <mgoodwin(a)redhat.com> 0.0.3-1
+- require grafana v6.1.3 or later
+- install directory is now below /var/lib/grafana/plugins
+
+* Wed Mar 20 2019 Mark Goodwin <mgoodwin(a)redhat.com> 0.0.2-1
+- initial version
diff --git a/sources b/sources
new file mode 100644
index 0000000..18ec1b5
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (grafana-pcp-0.0.7.tar.gz) =
c484150cc06c760cf2e4885c933cf9aa8bbc9d24f8ecfadef87aca72b7f2d7d94844e4443fdf6b5a8103eadbecaec6d89851efb35d31df83223e643cb3d7cfa3
+SHA512 (grafana-pcp-deps-0.0.7.tar.xz) =
d24c2c9d71527be6477ec53332914411049aabeaab35797fa53ca1029ca0fddc27276b16075cf21c53e2078650a51cc1e09959eccab611173526bd05561f8181