From acdc087d83257b86c45727ea790a4d1128bd7c44 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Mon, 26 Nov 2018 12:48:00 -0500 Subject: [PATCH] Resolves: bz 1641250 --- .gitignore | 1 + redfish-finder.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 redfish-finder.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7122408 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/redfish-finder-0.2.tar.gz diff --git a/redfish-finder.spec b/redfish-finder.spec new file mode 100644 index 0000000..097a031 --- /dev/null +++ b/redfish-finder.spec @@ -0,0 +1,67 @@ +Name: redfish-finder +Version: 0.2 +Release: 1%{?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 + +%{?systemd_requires} +BuildRequires: systemd + +Requires: python3 NetworkManager dmidecode + +%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 +* 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 + diff --git a/sources b/sources new file mode 100644 index 0000000..634742c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4ef2e03a056972a218594cd058a0334b redfish-finder-0.2.tar.gz