%global upstreamtag 1.1.0-1 # No debug file generated during build %global debug_package %{nil} Name: oled-tools Version: 1.1.0.1 Release: 1%{?dist} Summary: A collections of tools that collect and analyze data about the health of the system License: GPLv2+ URL: https://github.com/oracle/%{name} Source0: %{url}/archive/refs/tags/oled-tools-%{upstreamtag}.tar.gz BuildRequires: make BuildRequires: python3-devel BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: elfutils-devel BuildRequires: selinux-policy-devel BuildRequires: systemd-rpm-macros %description Oracle Linux Enhanced Diagnostic (OLED) tools is a collection of tools, scripts, configs, etc. that collect and analyze data about the health of the system in order to root cause and resolve any system issues. %prep %setup -q -n %{name}-%{name}-%{upstreamtag} %build %make_build %install %make_install PREFIX="%{_prefix}" mkdir -p %{buildroot}/%{_sbindir}/ mv %{buildroot}/%{_usr}/sbin/oled %{buildroot}/%{_sbindir}/ %post %systemd_post oled-tools-scripts.service %systemd_post rpm_db_snooper.service %systemd_post signal_snooper.service %preun %systemd_preun oled-tools-scripts.service %systemd_preun rpm_db_snooper.service %systemd_preun signal_snooper.service %postun %systemd_postun_with_restart oled-tools-scripts.service %systemd_postun_with_restart rpm_db_snooper.service %systemd_postun_with_restart signal_snooper.service %files %doc README.md CONTRIBUTORS CONTRIBUTING.md SECURITY.md %license LICENSE.txt %{_sysconfdir}/oled %{_sysconfdir}/sudoers.d/99-pcp-oled-oomwatch %{python3_sitelib}/memstate_lib* %{python3_sitelib}/oscheck* %{python3_sitelib}/sosdiff* %{_unitdir}/oled-tools-scripts.service %{_unitdir}/rpm_db_snooper.service %{_unitdir}/signal_snooper.service %{_libexecdir}/oled-tools %{_sbindir}/oled %{_mandir}/man8/additional-scripts.8.gz %{_mandir}/man8/kill_trace.8.gz %{_mandir}/man8/oled.8.gz %{_mandir}/man8/oled-*.8.gz %{_mandir}/man8/signal_snooper.8.gz %{_datadir}/selinux/packages/targeted/pcp-oomwatch.pp.bz2 %{_sharedstatedir}/pcp/config/pmieconf/oled %changelog * Wed Jan 14 2026 Zamir SUN 1.1.0.1-1 - initial package