Blame SPECS/opal-prd.spec

a25768
%global project skiboot
a25768
a25768
Name:		opal-prd
a25768
Version:	6.7.1
d3e020
Release:	7%{?dist}
a25768
Summary:	OPAL Processor Recovery Diagnostics Daemon
a25768
a25768
License:	ASL 2.0
a25768
URL:		http://github.com/open-power/skiboot
a25768
a25768
# Presently opal-prd is supported on ppc64le architecture only.
a25768
ExclusiveArch:	ppc64le
a25768
a25768
BuildRequires:	systemd
a25768
BuildRequires:	openssl
a25768
BuildRequires:	gcc
a25768
%if 0%{?fedora}
a25768
BuildRequires:	gcc-powerpc64-linux-gnu
a25768
%endif
a25768
BuildRequires:	openssl-devel
a25768
BuildRequires:	python3-devel
a25768
a25768
Requires(post):		systemd
a25768
Requires(preun):	systemd
a25768
Requires(postun):	systemd
a25768
a25768
Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}-%{version}.tar.gz
a25768
Source1: opal-prd-rsyslog
a25768
Source2: opal-prd-logrotate
a25768
a25768
a25768
%description
a25768
This package provides a daemon to load and run the OpenPower firmware's
a25768
Processor Recovery Diagnostics binary. This is responsible for run time
a25768
maintenance of OpenPower Systems hardware.
a25768
a25768
a25768
%package -n	opal-utils
a25768
Summary:	OPAL firmware utilities
a25768
a25768
%description -n opal-utils
a25768
This package contains utility programs.
a25768
a25768
The 'gard' utility, can read, parse and clear hardware gard partitions
a25768
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
a25768
an interface to query or modify the registers of the different chipsets
a25768
of an OpenPower system. 'pflash' is a tool to access the flash modules
a25768
on such systems and update the OpenPower firmware.
a25768
a25768
%package -n	opal-firmware
a25768
Summary:	OPAL firmware
a25768
BuildArch:	noarch
a25768
a25768
%description -n	opal-firmware
a25768
OPAL firmware, aka skiboot, loads the bootloader and provides runtime
a25768
services to the OS (Linux) on IBM Power and OpenPower systems.
a25768
a25768
a25768
%prep
a25768
%autosetup -p1 -n %{project}-%{version}
a25768
a25768
a25768
%build
a25768
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
a25768
GARD_VERSION=%{version}     make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard
a25768
PFLASH_VERSION=%{version}   make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash
a25768
XSCOM_VERSION=%{version}    make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils
d3e020
FFSPART_VERSION=%{version}  make V=1 CC="gcc" CFLAGS="%{build_cflags} -pie -Wl,-z,now" LDFLAGS="%{build_ldflags}" -C external/ffspart
a25768
a25768
# build skiboot with a cross-compiler on Fedora and with system compiler otherwise
a25768
# and always use upstream compiler flags for the firmware (no CFLAGS override)
a25768
%if 0%{?fedora}
a25768
SKIBOOT_VERSION=%{version} make V=1 CROSS="powerpc64-linux-gnu-"
a25768
%else
a25768
SKIBOOT_VERSION=%{version} make V=1 CROSS=
a25768
%endif
a25768
a25768
a25768
%install
a25768
OPAL_PRD_VERSION=%{version} make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
a25768
GARD_VERSION=%{version}     make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
a25768
PFLASH_VERSION=%{version}   make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
a25768
XSCOM_VERSION=%{version}    make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
a25768
FFSPART_VERSION=%{version}  make -C external/ffspart install DESTDIR=%{buildroot} prefix=/usr
a25768
a25768
mkdir -p %{buildroot}%{_unitdir}
a25768
install -m 644 -p external/opal-prd/opal-prd.service %{buildroot}%{_unitdir}/opal-prd.service
a25768
a25768
mkdir -p %{buildroot}%{_datadir}/qemu
a25768
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
a25768
install -m 644 -p skiboot.lid.xz %{buildroot}%{_datadir}/qemu/skiboot.lid.xz
a25768
a25768
# log opal-prd messages to /var/log/opal-prd.log
a25768
mkdir -p %{buildroot}%{_sysconfdir}/{rsyslog.d,logrotate.d}
a25768
install -m 644 -p %{SOURCE1} %{buildroot}/%{_sysconfdir}/rsyslog.d/opal-prd.conf
a25768
install -m 644 -p %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/opal-prd
a25768
a25768
# install phberr script
a25768
install -D -p -m 644 external/pci-scripts/ppc.py %{buildroot}%{python3_sitelib}/ppc/__init__.py
a25768
install -D -p -m 755 external/pci-scripts/phberr.py %{buildroot}%{_bindir}/phberr
a25768
a25768
a25768
%post
a25768
%systemd_post opal-prd.service
a25768
a25768
%preun
a25768
%systemd_preun opal-prd.service
a25768
a25768
%postun
a25768
%systemd_postun_with_restart opal-prd.service
a25768
a25768
a25768
%files
a25768
%doc README.md
a25768
%license LICENCE
a25768
%config(noreplace) %{_sysconfdir}/logrotate.d/opal-prd
a25768
%config(noreplace) %{_sysconfdir}/rsyslog.d/opal-prd.conf
a25768
%{_sbindir}/opal-prd
a25768
%{_unitdir}/opal-prd.service
a25768
%{_mandir}/man8/*
a25768
a25768
%files -n opal-utils
a25768
%doc README.md
a25768
%license LICENCE
a25768
%{_bindir}/phberr
a25768
%{_sbindir}/opal-gard
a25768
%{_sbindir}/getscom
a25768
%{_sbindir}/putscom
a25768
%{_sbindir}/pflash
a25768
%{_sbindir}/getsram
a25768
%{_sbindir}/ffspart
a25768
%{python3_sitelib}/ppc/
a25768
%{_mandir}/man1/*
a25768
a25768
%files -n opal-firmware
a25768
%doc README.md
a25768
%license LICENCE
a25768
%{_datadir}/qemu/
a25768
a25768
a25768
%changelog
d3e020
* Wed Feb 02 2022 Than Ngo <than@redhat.com> - 6.7.1-7
d3e020
- Resolves: #2044883, annocheck FAIL
d3e020
a25768
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.7.1-6
a25768
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
a25768
  Related: rhbz#1991688
a25768
a25768
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 6.7.1-5
a25768
- Rebuilt for RHEL 9 BETA for openssl 3.0
a25768
  Related: rhbz#1971065
a25768
a25768
* Thu Jun 10 2021 Than Ngo <than@redhat.com> - 6.7.1-4
a25768
- Resolves: #1963126, The discard action (tilde character) is deprecated
a25768
a25768
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.7.1-3
a25768
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
a25768
a25768
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a25768
a25768
* Thu Jan 07 2021 Dan Horák <dan@danny.cz> - 6.7.1-1
a25768
- update to 6.7.1 (#1913304)
a25768
a25768
* Tue Nov 03 2020 Dan Horák <dan@danny.cz> - 6.7-2
a25768
- install phberr script
a25768
- fix %%install to avoid recompilation
a25768
a25768
* Tue Nov 03 2020 Dan Horák <dan@danny.cz> - 6.7-1
a25768
- update to 6.7
a25768
a25768
* Fri Oct 23 2020 Dan Horák <dan@danny.cz> - 6.6.4-1
a25768
- update to 6.6.4 (#1890868)
a25768
a25768
* Thu Sep 10 2020 Dan Horák <dan@danny.cz> - 6.6.3-1
a25768
- update to 6.6.3
a25768
a25768
* Mon Aug 10 2020 Dan Horák <dan@danny.cz> - 6.6.2-3
a25768
- build and install ffspart
a25768
- add BR: openssl for skibot image signing
a25768
a25768
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.2-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a25768
a25768
* Fri Jul 03 2020 Dan Horák <dan@danny.cz> - 6.6.2-1
a25768
- update to 6.6.2
a25768
a25768
* Tue Jun 09 2020 Dan Horák <dan@danny.cz> - 6.6.1-1
a25768
- update to 6.6.1
a25768
a25768
* Thu Apr 23 2020 Dan Horák <dan@danny.cz> - 6.6-1
a25768
- update to 6.6
a25768
a25768
* Fri Mar 20 2020 Dan Horák <dan@danny.cz> - 6.5.4-1
a25768
- update to 6.5.4
a25768
a25768
* Wed Mar 11 2020 Dan Horák <dan@danny.cz> - 6.5.3-1
a25768
- update to 6.5.3
a25768
a25768
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.2-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a25768
a25768
* Thu Dec 12 2019 Dan Horák <dan@danny.cz> - 6.5.2-1
a25768
- update to 6.5.2
a25768
a25768
* Thu Oct 24 2019 Dan Horák <dan@danny.cz> - 6.5.1-1
a25768
- update to 6.5.1
a25768
a25768
* Mon Aug 19 2019 Dan Horák <dan@danny.cz> - 6.5-1
a25768
- update to 6.5
a25768
a25768
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a25768
a25768
* Tue Jul 16 2019 Dan Horák <dan@danny.cz> - 6.4-1
a25768
- update to 6.4
a25768
a25768
* Fri May 24 2019 Than Ngo <than@redhat.com> - 6.3.1-1
a25768
- update to 6.3.1
a25768
- log messages to /var/log/opal-prd.log
a25768
a25768
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-3
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a25768
a25768
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-2
a25768
- add man pages
a25768
a25768
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-1
a25768
- update to 6.2
a25768
a25768
* Thu Sep 27 2018 Than Ngo <than@redhat.com> - 6.1-4
a25768
- log opal-prd messages to /var/log/opal-prd.log
a25768
a25768
* Fri Sep 21 2018 Than Ngo <than@redhat.com> - 6.1-3
a25768
- Fixed opal-prd crash
a25768
- Fixed annocheck distro flag failures
a25768
a25768
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a25768
a25768
* Thu Jul 12 2018 Dan Horák <dan@danny.cz> - 6.1-1
a25768
- Update to latest upstream 6.1
a25768
a25768
* Mon May 28 2018 Dan Horák <dan@danny.cz> - 6.0.4-1
a25768
- Update to latest upstream 6.0.4
a25768
a25768
* Thu May 17 2018 Dan Horák <dan@danny.cz> - 6.0.1-1
a25768
- Update to latest upstream 6.0.1
a25768
a25768
* Mon Apr 09 2018 Dan Horák <dan@danny.cz> - 5.11-1
a25768
- Update to latest upstream 5.11
a25768
a25768
* Mon Mar 12 2018 Than Ngo <than@redhat.com> - 5.10.2-1
a25768
- update to latest upstream 5.10.2
a25768
a25768
* Thu Mar 08 2018 Than Ngo <than@redhat.com> - 5.10.1-2
a25768
- fixed bz#1552650 - incomplete Fedora build flags injection
a25768
a25768
* Fri Mar 02 2018 Dan Horák <dan[at]danny.cz> - 5.10.1-1
a25768
- Update to latest upstream 5.10.1
a25768
a25768
* Wed Feb 28 2018 Dan Horák <dan[at]danny.cz> - 5.10-1
a25768
- Update to latest upstream 5.10
a25768
a25768
* Mon Feb 26 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-3
a25768
- fix firmware build (#1545784)
a25768
a25768
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.8-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a25768
a25768
* Thu Jan 25 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-1
a25768
- Update to latest upstream 5.9.8
a25768
a25768
* Fri Aug 4 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.7.0-1
a25768
- Update to latest upstream 5.7.0
a25768
a25768
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-4
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a25768
a25768
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-3
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a25768
a25768
* Wed Apr 19 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-2
a25768
- Fix build warning
a25768
- Include skiboot.lid.xz file
a25768
a25768
* Tue Apr 18 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-1
a25768
- Update to latest upstream 5.5.0
a25768
a25768
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
a25768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a25768
a25768
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.2.0
a25768
- Update to latest upstream 5.2.0
a25768
a25768
* Fri Feb 26 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-4
a25768
- Fix stack frame compilation issue on gcc6
a25768
- Remove ppc64 from ExclusiveArch list
a25768
a25768
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-3
a25768
- Fix opal-prd recompilation issse during install
a25768
a25768
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-2
a25768
- Added "Requires(post|preun|postun) tags"
a25768
a25768
* Tue Feb 09 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13
a25768
- Update to latest upstream 5.1.13
a25768
- Fixed specfile based on Dan's review comment (#1284527)
a25768
a25768
* Wed Nov 25 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-4
a25768
- Fixed specfile based on Dan's review comment (#1284527)
a25768
a25768
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-3
a25768
- Consistent use of build macros
a25768
- Removed defattr from files section
a25768
a25768
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-2
a25768
- Minor update to spec file
a25768
a25768
* Mon Nov 23 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11
a25768
- Initial Fedora packaging