You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
3.0 KiB
98 lines
3.0 KiB
## START: Set by rpmautospec
|
|
## (rpmautospec version 0.6.5)
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
release_number = 6;
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
print(release_number + base_release_number - 1);
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
## END: Set by rpmautospec
|
|
|
|
Name: redfish-finder
|
|
Version: 0.4
|
|
Release: %autorelease -b 9
|
|
Summary: Utility for parsing SMBIOS information and configuring canonical BMC access
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
%define debug_package %{nil}
|
|
|
|
License: GPL-2.0-or-later
|
|
URL: https://github.com/nhorman/redfish-finder
|
|
Source: %url/archive/V%{version}/%{name}-%{version}.tar.gz
|
|
|
|
# Fix shabang python interpreter: https://github.com/nhorman/redfish-finder/commit/59fc5f964bf6971da552d059520d7798fccbd4fc
|
|
Patch0: redfish-finder-python3.patch
|
|
|
|
# Fix parsing HostConfig for DHCP: https://github.com/nhorman/redfish-finder/commit/581327fd45351dd53c06a26517bb7f92e19d8f31
|
|
Patch1: hostconfig-dhcp-parse.patch
|
|
|
|
# Fix DHCP mode: https://github.com/nhorman/redfish-finder/commit/c624c9dfe03c0e066eea1240b4b9ca8f3ed07eb8
|
|
Patch2: fix-dhcp-mode.patch
|
|
|
|
# Support AutoConfig mode: https://github.com/nhorman/redfish-finder/commit/f6248933605e051992e5a0c29b2c9753e0dc4e76
|
|
Patch3: support-autoconf-mode.patch
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
Requires: python3
|
|
Requires: NetworkManager
|
|
Requires: 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
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.4-14
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
## START: Generated by rpmautospec
|
|
* Thu Aug 15 2024 Joel Savitz <jsavitz@redhat.com> - 0.4-14
|
|
- set baserelease to fix NVR comparison
|
|
|
|
* Wed Jul 31 2024 Joel Savitz <joelsavitz@gmail.com> - 0.4-5
|
|
- fix build by disabling irrelevant debug package
|
|
|
|
* Tue Jul 30 2024 Joel Savitz <joelsavitz@gmail.com> - 0.4-4
|
|
- restrict package arches appropriately
|
|
|
|
* Wed Jul 24 2024 Joel Savitz <jsavitz@redhat.com> - 0.4-3
|
|
- fix gating.yaml by generalizing rhel product version string
|
|
|
|
* Tue Jul 23 2024 Joel Savitz <jsavitz@redhat.com> - 0.4-2
|
|
- add gating.yaml copied from c9s branch
|
|
|
|
* Tue Jul 23 2024 Joel Savitz <jsavitz@redhat.com> - 0.4-1
|
|
- import latest fedora sources
|
|
## END: Generated by rpmautospec
|