%global pypi_name iml_sos_plugin Name: %{pypi_name} Version: 2.0.4 Release: 1%{?dist} Summary: A sosreport plugin for collecting IML data. License: MIT URL: https://pypi.python.org/pypi/%{pypi_name} Source0: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python2-setuptools_scm Requires: sos Obsoletes: chroma-diagnostics %description A sosreport plugin for collecting IML data. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} mkdir -p %{buildroot}/%{python2_sitelib}/sos/plugins/ mv %{buildroot}/%{python2_sitelib}/iml_sos_plugin/iml.py* %{buildroot}/%{python2_sitelib}/sos/plugins/ %files %{_bindir}/iml-diagnostics %{_bindir}/chroma-diagnostics %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %{python2_sitelib}/sos/plugins/iml.py* %changelog * Wed Nov 15 2017 Will Johnson 2.0.4-1 - Obsoletes chroma-diagnostics - Remove zfs plugin * Thu Oct 12 2017 Joe Grund 2.0.2-1 - Fix log-size param to dash-case. * Wed Oct 11 2017 Joe Grund 2.0.1-1 - Add yum plugin to iml-diagnostics. - Ensure no log tailing is performed for chroma log collection. * Tue Sep 12 2017 Joe Grund 2.0.0-1 - Update to work with sos 3.4 * Thu Sep 7 2017 Joe Grund 1.0.2-1 - Add some more file collections. - Forward args to sosreport. * Thu Sep 7 2017 Joe Grund 1.0.1-1 - Initial Relase