Move redis binary executable from /usr/share/... to /usr/libexec/...
This commit is contained in:
parent
60755ab25a
commit
6ab0b7ec43
@ -16,7 +16,7 @@ end}
|
|||||||
|
|
||||||
Name: grafana-pcp
|
Name: grafana-pcp
|
||||||
Version: 5.1.1
|
Version: 5.1.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Performance Co-Pilot Grafana Plugin
|
Summary: Performance Co-Pilot Grafana Plugin
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/performancecopilot/grafana-pcp
|
URL: https://github.com/performancecopilot/grafana-pcp
|
||||||
@ -130,7 +130,7 @@ bpftrace scripts from pmdabpftrace(1), as well as several dashboards.
|
|||||||
%setup -q -T -D -b 2
|
%setup -q -T -D -b 2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%patch1 -p1
|
%patch -P1 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -153,6 +153,14 @@ cp -a dist/* %{buildroot}/%{install_dir}
|
|||||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||||
echo "L+ %{plugin_dir} - - - - %{install_dir}" > %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
echo "L+ %{plugin_dir} - - - - %{install_dir}" > %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
|
# Move redis data source executable from /usr/share to /usr/libexec and create symlink
|
||||||
|
mkdir -p %{buildroot}/%{_libexecdir}/grafana-pcp/bin
|
||||||
|
mv %{buildroot}/%{install_dir}/datasources/redis/pcp_redis_datasource_$(go env GOOS)_$(go env GOARCH) %{buildroot}/%{_libexecdir}/grafana-pcp/bin/pcp_redis_datasource_$(go env GOOS)_$(go env GOARCH)
|
||||||
|
cd %{buildroot}/%{install_dir}/datasources/redis
|
||||||
|
|
||||||
|
ln -s ../../../../libexec/grafana-pcp/bin/pcp_redis_datasource_$(go env GOOS)_$(go env GOARCH) pcp_redis_datasource_$(go env GOOS)_$(go env GOARCH)
|
||||||
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
# uninstall of old package
|
# uninstall of old package
|
||||||
%systemd_postun_with_restart grafana-server.service
|
%systemd_postun_with_restart grafana-server.service
|
||||||
@ -182,6 +190,7 @@ yarn test
|
|||||||
%files
|
%files
|
||||||
%{install_dir}
|
%{install_dir}
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%{_libexecdir}/grafana-pcp
|
||||||
# remove symlink when package is uninstalled
|
# remove symlink when package is uninstalled
|
||||||
%ghost %{plugin_dir}
|
%ghost %{plugin_dir}
|
||||||
|
|
||||||
@ -190,6 +199,9 @@ yarn test
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 13 2023 Sam Feifer <sfeifer@redhat.com> 5.1.1-4
|
||||||
|
- Move location of redis binary executable from /usr/share/... to /usr/libexec/....
|
||||||
|
|
||||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-3
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user