Blame SPECS/opal-prd.spec

f021ee
Name:    opal-prd
f021ee
Version: 5.9
f021ee
Release: 2%{?dist}
f021ee
Summary: OPAL Processor Recovery Diagnostics Daemon
802f9d
f021ee
Group:   System Environment/Daemons
f021ee
License: ASL 2.0
f021ee
URL:     http://github.com/open-power/skiboot
802f9d
802f9d
# Presently opal-prd is supported on ppc64le architecture only.
f021ee
ExclusiveArch: ppc64le
802f9d
f021ee
BuildRequires: systemd
f021ee
BuildRequires: openssl-devel
802f9d
f021ee
Requires(post):   systemd
f021ee
Requires(preun):  systemd
f021ee
Requires(postun): systemd
802f9d
f021ee
Source0:	https://github.com/open-power/skiboot/archive/v%{version}.tar.gz#/skiboot-%{version}.tar.gz
802f9d
Source1:	opal-prd.service
f021ee
f021ee
# upstream fix, Add support for runtime OCC load/start in ZZ
f021ee
Patch0: opal-prd-49999302251b3e3e2fdca2cbcdeb6aab9add7412.patch
f021ee
Patch1: opal-prd-781b10633945df32fa2292ee8b196c74f8ef2c7c.patch
802f9d
802f9d
%description
802f9d
This package provides a daemon to load and run the OpenPower firmware's
802f9d
Processor Recovery Diagnostics binary. This is responsible for run time
802f9d
maintenance of OpenPower Systems hardware.
802f9d
802f9d
802f9d
%package -n	opal-utils
f021ee
Summary: OPAL firmware utilities
f021ee
Group:   Applications/System
802f9d
802f9d
%description -n opal-utils
802f9d
This package contains utility programs.
802f9d
802f9d
The 'gard' utility, can read, parse and clear hardware gard partitions
802f9d
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
802f9d
an interface to query or modify the registers of the different chipsets
802f9d
of an OpenPower system. 'pflash' is a tool to access the flash modules
802f9d
on such systems and update the OpenPower firmware.
802f9d
802f9d
%package -n	opal-firmware
802f9d
Summary:	OPAL firmware
802f9d
BuildArch:	noarch
802f9d
802f9d
%description -n	opal-firmware
802f9d
OPAL firmware, aka skiboot, loads the bootloader and provides runtime
802f9d
services to the OS (Linux) on IBM Power and OpenPower systems.
802f9d
802f9d
%prep
802f9d
f021ee
%setup -q -n skiboot-%{version}
802f9d
%patch0 -p1
802f9d
%patch1 -p1
802f9d
802f9d
%build
802f9d
OPAL_PRD_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/opal-prd
802f9d
GARD_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/gard
802f9d
PFLASH_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/pflash
802f9d
XSCOM_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/xscom-utils
802f9d
SKIBOOT_VERSION=%{version} CROSS= make V=1 %{?_smp_mflags}
802f9d
802f9d
%install
802f9d
make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
802f9d
make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
802f9d
make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
802f9d
make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
802f9d
802f9d
mkdir -p %{buildroot}%{_unitdir}
802f9d
install -m 644 -p %{SOURCE1} %{buildroot}%{_unitdir}/opal-prd.service
802f9d
802f9d
mkdir -p %{buildroot}%{_datadir}/qemu
802f9d
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
802f9d
802f9d
%post
802f9d
%systemd_post opal-prd.service
802f9d
802f9d
%preun
802f9d
%systemd_preun opal-prd.service
802f9d
802f9d
%postun
802f9d
%systemd_postun_with_restart opal-prd.service
802f9d
802f9d
%files
802f9d
%doc README.md
802f9d
%license LICENCE
802f9d
%{_sbindir}/opal-prd
802f9d
%{_unitdir}/opal-prd.service
802f9d
%{_mandir}/man8/*
802f9d
802f9d
%files -n opal-utils
802f9d
%doc README.md
802f9d
%license LICENCE
802f9d
%{_sbindir}/opal-gard
802f9d
%{_sbindir}/getscom
802f9d
%{_sbindir}/putscom
802f9d
%{_sbindir}/getsram
802f9d
%{_sbindir}/pflash
802f9d
%{_mandir}/man1/*
802f9d
802f9d
%files -n opal-firmware
802f9d
%doc README.md
802f9d
%license LICENCE
802f9d
%{_datadir}/qemu/
802f9d
802f9d
%changelog
f021ee
* Mon Jan 22 2018 Than Ngo <than@redhat.com> - 5.9-2
f021ee
- Related: rhbz#1456536 - add support for runtime OCC load/start in ZZ
f021ee
f021ee
* Tue Oct 31 2017 Dan HorĂ¡k <dhorak@redhat.com> - 5.9-1
f021ee
- Resolves: rhbz#1456536 - opal-prd update to 5.9
802f9d
f021ee
* Wed Oct 25 2017 Than Ngo <than@redhat.com> - 5.8-1
f021ee
- Resolves: rhbz#1456536 - opal-prd update to 5.8
802f9d
802f9d
* Thu Apr 20 2017 Rafael Fonseca <rdossant@redhat.com> - 5.5.0-1
802f9d
- Resolves: rhbz#1368702 - [Pegas1.0 FEAT] opal-prd package update
802f9d
802f9d
* Tue Mar 14 2017 Rafael Fonseca <rdossant@redhat.com> - 5.4.3-2
802f9d
- Resolves: rhbz#1430332 - Restart opal-prd daemon on any kind of failure
802f9d
802f9d
* Wed Jan 18 2017 Rafael Fonseca <rdossant@redhat.com> - 5.4.3-1
802f9d
- Resolves: rhbz#1384952 - [7.4 FEAT] opal-prd package update for ppc64le
802f9d
802f9d
* Thu Sep 22 2016 Rafael Fonseca <rdossant@redhat.com> - 5.2.0-3
802f9d
- Resolves: rhbz#1375449
802f9d
802f9d
* Thu Aug 25 2016 Rafael Fonseca <rdossant@redhat.com> - 5.2.0-2
802f9d
- Resolves: rhbz#1367342
802f9d
- Remove systemd socket.
802f9d
802f9d
* Fri May 20 2016 Rafael dos Santos <rdossant@redhat.com> - 5.2.0-1
802f9d
- Importing package from Fedora.
802f9d