2018-02-28 10:42:19 +00:00
|
|
|
%global project skiboot
|
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
Name: opal-prd
|
2021-10-26 09:38:16 +00:00
|
|
|
Version: 7.0
|
2022-01-20 22:14:44 +00:00
|
|
|
Release: 2%{?dist}
|
2016-02-26 03:28:16 +00:00
|
|
|
Summary: OPAL Processor Recovery Diagnostics Daemon
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://github.com/open-power/skiboot
|
2016-02-26 06:29:48 +00:00
|
|
|
|
|
|
|
# Presently opal-prd is supported on ppc64le architecture only.
|
|
|
|
ExclusiveArch: ppc64le
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
BuildRequires: systemd
|
2020-08-10 14:22:00 +00:00
|
|
|
BuildRequires: openssl
|
2018-02-28 10:42:19 +00:00
|
|
|
BuildRequires: gcc
|
2017-04-19 06:08:09 +00:00
|
|
|
BuildRequires: openssl-devel
|
2020-11-03 09:27:26 +00:00
|
|
|
BuildRequires: python3-devel
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
2018-09-21 13:49:28 +00:00
|
|
|
Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}-%{version}.tar.gz
|
2018-09-27 11:20:37 +00:00
|
|
|
Source1: opal-prd-rsyslog
|
|
|
|
Source2: opal-prd-logrotate
|
2021-05-10 10:15:31 +00:00
|
|
|
Source3: ffspart.man
|
2019-08-19 07:53:44 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a daemon to load and run the OpenPower firmware's
|
|
|
|
Processor Recovery Diagnostics binary. This is responsible for run time
|
|
|
|
maintenance of OpenPower Systems hardware.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n opal-utils
|
|
|
|
Summary: OPAL firmware utilities
|
|
|
|
|
|
|
|
%description -n opal-utils
|
|
|
|
This package contains utility programs.
|
|
|
|
|
|
|
|
The 'gard' utility, can read, parse and clear hardware gard partitions
|
|
|
|
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
|
|
|
|
an interface to query or modify the registers of the different chipsets
|
|
|
|
of an OpenPower system. 'pflash' is a tool to access the flash modules
|
|
|
|
on such systems and update the OpenPower firmware.
|
|
|
|
|
|
|
|
|
2019-08-19 07:53:44 +00:00
|
|
|
%prep
|
2020-08-10 14:22:00 +00:00
|
|
|
%autosetup -p1 -n %{project}-%{version}
|
2019-08-19 07:53:44 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
%build
|
2018-09-21 13:49:28 +00:00
|
|
|
OPAL_PRD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" ASFLAGS="-m64 -Wa,--generate-missing-build-notes=yes" -C external/opal-prd
|
2020-11-03 09:51:31 +00:00
|
|
|
GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard
|
|
|
|
PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash
|
|
|
|
XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils
|
|
|
|
FFSPART_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/ffspart
|
2018-02-26 13:15:37 +00:00
|
|
|
|
2019-08-19 07:53:44 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
%install
|
2020-11-03 09:51:31 +00:00
|
|
|
OPAL_PRD_VERSION=%{version} make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
|
|
|
|
GARD_VERSION=%{version} make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
|
|
|
|
PFLASH_VERSION=%{version} make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
|
|
|
|
XSCOM_VERSION=%{version} make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
|
|
|
|
FFSPART_VERSION=%{version} make -C external/ffspart install DESTDIR=%{buildroot} prefix=/usr
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
2017-04-18 17:16:27 +00:00
|
|
|
install -m 644 -p external/opal-prd/opal-prd.service %{buildroot}%{_unitdir}/opal-prd.service
|
2016-02-26 03:28:16 +00:00
|
|
|
|
2018-09-27 11:20:37 +00:00
|
|
|
# log opal-prd messages to /var/log/opal-prd.log
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/{rsyslog.d,logrotate.d}
|
2020-11-03 09:30:05 +00:00
|
|
|
install -m 644 -p %{SOURCE1} %{buildroot}/%{_sysconfdir}/rsyslog.d/opal-prd.conf
|
|
|
|
install -m 644 -p %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/opal-prd
|
2018-09-27 11:20:37 +00:00
|
|
|
|
2020-11-03 09:27:26 +00:00
|
|
|
# install phberr script
|
|
|
|
install -D -p -m 644 external/pci-scripts/ppc.py %{buildroot}%{python3_sitelib}/ppc/__init__.py
|
|
|
|
install -D -p -m 755 external/pci-scripts/phberr.py %{buildroot}%{_bindir}/phberr
|
|
|
|
|
2021-05-10 10:15:31 +00:00
|
|
|
# install ffspart manpage
|
|
|
|
install -m 644 -p %{SOURCE3} %{buildroot}%{_mandir}/man1/ffspart.1
|
2019-08-19 07:53:44 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
%post
|
|
|
|
%systemd_post opal-prd.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun opal-prd.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart opal-prd.service
|
|
|
|
|
2019-08-19 07:53:44 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
%files
|
2017-04-19 06:08:09 +00:00
|
|
|
%doc README.md
|
2016-02-26 03:28:16 +00:00
|
|
|
%license LICENCE
|
2019-05-24 12:37:13 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/opal-prd
|
|
|
|
%config(noreplace) %{_sysconfdir}/rsyslog.d/opal-prd.conf
|
2016-02-26 03:28:16 +00:00
|
|
|
%{_sbindir}/opal-prd
|
|
|
|
%{_unitdir}/opal-prd.service
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%files -n opal-utils
|
2017-04-19 06:08:09 +00:00
|
|
|
%doc README.md
|
2016-02-26 03:28:16 +00:00
|
|
|
%license LICENCE
|
2020-11-03 09:27:26 +00:00
|
|
|
%{_bindir}/phberr
|
2016-02-26 03:28:16 +00:00
|
|
|
%{_sbindir}/opal-gard
|
|
|
|
%{_sbindir}/getscom
|
|
|
|
%{_sbindir}/putscom
|
|
|
|
%{_sbindir}/pflash
|
2018-12-20 13:38:22 +00:00
|
|
|
%{_sbindir}/getsram
|
2020-08-10 14:22:00 +00:00
|
|
|
%{_sbindir}/ffspart
|
2020-11-03 09:27:26 +00:00
|
|
|
%{python3_sitelib}/ppc/
|
2016-02-26 03:28:16 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2019-08-19 07:53:44 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
%changelog
|
2022-01-20 22:14:44 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-10-26 09:38:16 +00:00
|
|
|
* Tue Oct 26 2021 Dan Horák <dan@danny.cz> - 7.0-1
|
|
|
|
- update to 7.0
|
|
|
|
|
2021-09-29 12:18:09 +00:00
|
|
|
* Thu Jul 22 2021 Dan Horák <dan@danny.cz> - 6.8.1-1
|
|
|
|
- update to 6.8.1
|
|
|
|
|
2021-07-22 17:06:49 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-12 10:18:08 +00:00
|
|
|
* Mon Jul 12 2021 Dan Horák <dan@danny.cz> - 6.8-2
|
|
|
|
- drop the firmware subpackage
|
|
|
|
|
|
|
|
* Mon May 31 2021 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 6.8-1
|
2021-09-29 12:18:09 +00:00
|
|
|
- update to 6.8 (#1965683)
|
2021-05-31 06:52:27 +00:00
|
|
|
|
2021-05-26 08:44:19 +00:00
|
|
|
* Wed May 26 2021 Than Ngo <than@redhat.com> - 6.7.1-4
|
|
|
|
- using stop instead ~ action as it's deprecated in rsyslog
|
|
|
|
|
2021-05-10 10:15:31 +00:00
|
|
|
* Mon May 10 2021 Than Ngo <than@redhat.com> - 6.7.1-3
|
|
|
|
- Add missing manpage for ffspart
|
|
|
|
|
2021-01-26 22:24:00 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-07 10:58:20 +00:00
|
|
|
* Thu Jan 07 2021 Dan Horák <dan@danny.cz> - 6.7.1-1
|
|
|
|
- update to 6.7.1 (#1913304)
|
|
|
|
|
2020-11-03 10:02:05 +00:00
|
|
|
* Tue Nov 03 2020 Dan Horák <dan@danny.cz> - 6.7-2
|
|
|
|
- install phberr script
|
|
|
|
- fix %%install to avoid recompilation
|
|
|
|
|
2020-11-03 08:16:33 +00:00
|
|
|
* Tue Nov 03 2020 Dan Horák <dan@danny.cz> - 6.7-1
|
|
|
|
- update to 6.7
|
|
|
|
|
2020-10-23 07:35:16 +00:00
|
|
|
* Fri Oct 23 2020 Dan Horák <dan@danny.cz> - 6.6.4-1
|
|
|
|
- update to 6.6.4 (#1890868)
|
|
|
|
|
2020-09-10 09:44:29 +00:00
|
|
|
* Thu Sep 10 2020 Dan Horák <dan@danny.cz> - 6.6.3-1
|
|
|
|
- update to 6.6.3
|
|
|
|
|
2020-08-10 14:22:00 +00:00
|
|
|
* Mon Aug 10 2020 Dan Horák <dan@danny.cz> - 6.6.2-3
|
|
|
|
- build and install ffspart
|
|
|
|
- add BR: openssl for skibot image signing
|
|
|
|
|
2020-07-28 12:35:56 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-03 07:26:51 +00:00
|
|
|
* Fri Jul 03 2020 Dan Horák <dan@danny.cz> - 6.6.2-1
|
|
|
|
- update to 6.6.2
|
|
|
|
|
2020-06-09 08:02:54 +00:00
|
|
|
* Tue Jun 09 2020 Dan Horák <dan@danny.cz> - 6.6.1-1
|
|
|
|
- update to 6.6.1
|
|
|
|
|
2020-04-23 09:08:06 +00:00
|
|
|
* Thu Apr 23 2020 Dan Horák <dan@danny.cz> - 6.6-1
|
|
|
|
- update to 6.6
|
|
|
|
|
2020-03-20 09:30:43 +00:00
|
|
|
* Fri Mar 20 2020 Dan Horák <dan@danny.cz> - 6.5.4-1
|
|
|
|
- update to 6.5.4
|
|
|
|
|
2020-03-11 10:01:18 +00:00
|
|
|
* Wed Mar 11 2020 Dan Horák <dan@danny.cz> - 6.5.3-1
|
|
|
|
- update to 6.5.3
|
|
|
|
|
2020-01-29 20:08:11 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-12 09:51:48 +00:00
|
|
|
* Thu Dec 12 2019 Dan Horák <dan@danny.cz> - 6.5.2-1
|
|
|
|
- update to 6.5.2
|
|
|
|
|
2019-10-24 08:11:37 +00:00
|
|
|
* Thu Oct 24 2019 Dan Horák <dan@danny.cz> - 6.5.1-1
|
|
|
|
- update to 6.5.1
|
|
|
|
|
2019-08-19 07:53:44 +00:00
|
|
|
* Mon Aug 19 2019 Dan Horák <dan@danny.cz> - 6.5-1
|
|
|
|
- update to 6.5
|
|
|
|
|
2019-07-25 23:19:02 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-16 08:04:50 +00:00
|
|
|
* Tue Jul 16 2019 Dan Horák <dan@danny.cz> - 6.4-1
|
|
|
|
- update to 6.4
|
|
|
|
|
2019-05-24 12:37:13 +00:00
|
|
|
* Fri May 24 2019 Than Ngo <than@redhat.com> - 6.3.1-1
|
|
|
|
- update to 6.3.1
|
|
|
|
- log messages to /var/log/opal-prd.log
|
|
|
|
|
2019-02-01 17:15:53 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-20 13:38:22 +00:00
|
|
|
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-2
|
|
|
|
- add man pages
|
|
|
|
|
2018-12-20 11:24:08 +00:00
|
|
|
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-1
|
|
|
|
- update to 6.2
|
|
|
|
|
2018-09-27 11:20:37 +00:00
|
|
|
* Thu Sep 27 2018 Than Ngo <than@redhat.com> - 6.1-4
|
|
|
|
- log opal-prd messages to /var/log/opal-prd.log
|
|
|
|
|
2018-09-21 13:49:28 +00:00
|
|
|
* Fri Sep 21 2018 Than Ngo <than@redhat.com> - 6.1-3
|
|
|
|
- Fixed opal-prd crash
|
|
|
|
- Fixed annocheck distro flag failures
|
|
|
|
|
2018-07-13 15:00:50 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-12 08:19:54 +00:00
|
|
|
* Thu Jul 12 2018 Dan Horák <dan@danny.cz> - 6.1-1
|
|
|
|
- Update to latest upstream 6.1
|
|
|
|
|
2018-05-28 10:45:27 +00:00
|
|
|
* Mon May 28 2018 Dan Horák <dan@danny.cz> - 6.0.4-1
|
|
|
|
- Update to latest upstream 6.0.4
|
|
|
|
|
2018-05-17 13:30:43 +00:00
|
|
|
* Thu May 17 2018 Dan Horák <dan@danny.cz> - 6.0.1-1
|
|
|
|
- Update to latest upstream 6.0.1
|
|
|
|
|
2018-04-09 08:06:11 +00:00
|
|
|
* Mon Apr 09 2018 Dan Horák <dan@danny.cz> - 5.11-1
|
|
|
|
- Update to latest upstream 5.11
|
|
|
|
|
2018-03-12 15:56:18 +00:00
|
|
|
* Mon Mar 12 2018 Than Ngo <than@redhat.com> - 5.10.2-1
|
|
|
|
- update to latest upstream 5.10.2
|
|
|
|
|
2018-03-08 09:24:16 +00:00
|
|
|
* Thu Mar 08 2018 Than Ngo <than@redhat.com> - 5.10.1-2
|
|
|
|
- fixed bz#1552650 - incomplete Fedora build flags injection
|
|
|
|
|
2018-03-02 08:58:04 +00:00
|
|
|
* Fri Mar 02 2018 Dan Horák <dan[at]danny.cz> - 5.10.1-1
|
|
|
|
- Update to latest upstream 5.10.1
|
|
|
|
|
2018-02-28 10:42:19 +00:00
|
|
|
* Wed Feb 28 2018 Dan Horák <dan[at]danny.cz> - 5.10-1
|
|
|
|
- Update to latest upstream 5.10
|
|
|
|
|
2018-02-26 13:15:37 +00:00
|
|
|
* Mon Feb 26 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-3
|
|
|
|
- fix firmware build (#1545784)
|
|
|
|
|
2018-02-08 09:19:21 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-25 16:09:08 +00:00
|
|
|
* Thu Jan 25 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-1
|
|
|
|
- Update to latest upstream 5.9.8
|
|
|
|
|
2017-08-04 09:03:15 +00:00
|
|
|
* Fri Aug 4 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.7.0-1
|
|
|
|
- Update to latest upstream 5.7.0
|
|
|
|
|
2017-08-03 04:28:13 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 01:42:40 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-08-04 09:03:15 +00:00
|
|
|
* Wed Apr 19 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-2
|
2017-04-19 06:08:09 +00:00
|
|
|
- Fix build warning
|
|
|
|
- Include skiboot.lid.xz file
|
|
|
|
|
2017-08-04 09:03:15 +00:00
|
|
|
* Tue Apr 18 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-1
|
2017-04-18 17:16:27 +00:00
|
|
|
- Update to latest upstream 5.5.0
|
|
|
|
|
2017-02-11 00:46:39 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-03-21 14:31:50 +00:00
|
|
|
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.2.0
|
|
|
|
- Update to latest upstream 5.2.0
|
|
|
|
|
2016-02-26 06:27:42 +00:00
|
|
|
* Fri Feb 26 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-4
|
|
|
|
- Fix stack frame compilation issue on gcc6
|
2016-02-26 06:29:48 +00:00
|
|
|
- Remove ppc64 from ExclusiveArch list
|
2016-02-26 06:27:42 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-3
|
|
|
|
- Fix opal-prd recompilation issse during install
|
|
|
|
|
|
|
|
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-2
|
|
|
|
- Added "Requires(post|preun|postun) tags"
|
|
|
|
|
|
|
|
* Tue Feb 09 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13
|
|
|
|
- Update to latest upstream 5.1.13
|
|
|
|
- Fixed specfile based on Dan's review comment (#1284527)
|
|
|
|
|
|
|
|
* Wed Nov 25 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-4
|
|
|
|
- Fixed specfile based on Dan's review comment (#1284527)
|
|
|
|
|
|
|
|
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-3
|
|
|
|
- Consistent use of build macros
|
|
|
|
- Removed defattr from files section
|
|
|
|
|
|
|
|
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-2
|
|
|
|
- Minor update to spec file
|
|
|
|
|
|
|
|
* Mon Nov 23 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11
|
|
|
|
- Initial Fedora packaging
|