From e2323ec5939c0bcdeec5287abe198bd43fef852c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 22 2019 17:10:45 +0000 Subject: import redfish-finder-0.3-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..152f08b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/redfish-finder-0.3.tar.gz diff --git a/.redfish-finder.metadata b/.redfish-finder.metadata new file mode 100644 index 0000000..8068c1f --- /dev/null +++ b/.redfish-finder.metadata @@ -0,0 +1 @@ +38c07146eeb641fb358ec353a4f7b69b4b844661 SOURCES/redfish-finder-0.3.tar.gz diff --git a/SOURCES/redfish-finder-python2.patch b/SOURCES/redfish-finder-python2.patch new file mode 100644 index 0000000..5444966 --- /dev/null +++ b/SOURCES/redfish-finder-python2.patch @@ -0,0 +1,9 @@ +diff -up ./redfish-finder.py2 ./redfish-finder +--- ./redfish-finder.py2 2019-05-23 12:22:36.341603643 -0400 ++++ ./redfish-finder 2019-05-23 12:22:44.410578996 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python3 ++#!/usr/bin/python + + import sys + import os diff --git a/SPECS/redfish-finder.spec b/SPECS/redfish-finder.spec new file mode 100644 index 0000000..ee66259 --- /dev/null +++ b/SPECS/redfish-finder.spec @@ -0,0 +1,82 @@ +Name: redfish-finder +Version: 0.3 +Release: 3%{?dist} +Summary: Utility for parsing SMBIOS information and configuring canonical BMC access +BuildArch: noarch + +License: GPLv2 +URL: https://github.com/nhorman/redfish-finder +Source0: %url/archive/V%{version}/%{name}-%{version}.tar.gz + +Patch0: redfish-finder-python2.patch + +%{?systemd_requires} +BuildRequires: systemd + +Requires: python2 NetworkManager +Requires: dmidecode >= 1:3.2 + +%description +Scans Smbios information for type 42 management controller information, and uses +that to configure the appropriate network interface so that the BMC is +canonically accessible via the host name redfish-localhost + +%prep +%autosetup + + +%build +#noop here + +%install +install -D -p -m 0755 redfish-finder %{buildroot}/%{_bindir}/redfish-finder +install -D -p -m 0644 redfish-finder.1 %{buildroot}/%{_mandir}/man1/redfish-finder.1 +install -D -p -m 0644 ./redfish-finder.service %{buildroot}/%{_unitdir}/redfish-finder.service + +%post +%systemd_post redfish-finder.service + +%preun +%systemd_preun redfish-finder.service + +%postun +%systemd_postun_with_restart redfish-finder.service + + +%files +%doc README.md +%license COPYING +%{_bindir}/redfish-finder +%{_mandir}/man1/redfish-finder.1.* +%{_unitdir}/redfish-finder.service + +%changelog +* Mon Jun 03 2019 Neil Horman - 0.3-3 +- Update Requires for dmidecode (bz 1515078) + +* Thu May 23 2019 Neil Horman - 0.3-2 +- Update to use python2 and correct dmidecode dep (bz 1515078) + +* Wed Mar 06 2019 Neil Horman - 0.3-1 +- Update to latest upstream release + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Oct 19 2018 Neil Horman - 0.2-1 +- Update to new upstream release + +* Thu Oct 04 2018 Neil Horman - 0.1-3 +- Fixed missing BuildRequires/Requires +- Fixed missing dist tag +- Fixed Source url + +* Wed Oct 03 2018 Neil Horman - 0.1-2 +- Updated requires for python3 +- Removed unneeded BuildRequires +- Globed the inclusion of man page +- Fixed license file tagging + +* Mon Oct 01 2018 Neil Horman - 0.1-1 +- Initial import +