Blame SPECS/opal-prd.spec

f95a5f
%global project skiboot
f95a5f
f95a5f
Name: opal-prd
2e631c
Version: 6.6
9209ca
Release: 1%{?dist}
f95a5f
Summary: OPAL Processor Recovery Diagnostics Daemon
f95a5f
f95a5f
Group: System Environment/Daemons
f95a5f
License: ASL 2.0
f95a5f
URL: http://github.com/open-power/skiboot
f95a5f
f95a5f
# Presently opal-prd is supported on ppc64le architecture only.
f95a5f
ExclusiveArch: ppc64le
f95a5f
f95a5f
BuildRequires: systemd
f95a5f
BuildRequires: gcc
f95a5f
%if 0%{?fedora}
f95a5f
BuildRequires: gcc-powerpc64-linux-gnu
f95a5f
%endif
f95a5f
BuildRequires: openssl-devel
f95a5f
f95a5f
Requires(post): systemd
f95a5f
Requires(preun): systemd
f95a5f
Requires(postun): systemd
f95a5f
f95a5f
Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}-%{version}.tar.gz
f95a5f
Source1: opal-prd-rsyslog
f95a5f
Source2: opal-prd-logrotate
f95a5f
f95a5f
%description
f95a5f
This package provides a daemon to load and run the OpenPower firmware's
f95a5f
Processor Recovery Diagnostics binary. This is responsible for run time
f95a5f
maintenance of OpenPower Systems hardware.
f95a5f
f95a5f
f95a5f
%package -n	opal-utils
f95a5f
Summary:	OPAL firmware utilities
f95a5f
Group:		Applications/System
f95a5f
f95a5f
%description -n opal-utils
f95a5f
This package contains utility programs.
f95a5f
f95a5f
The 'gard' utility, can read, parse and clear hardware gard partitions
f95a5f
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
f95a5f
an interface to query or modify the registers of the different chipsets
f95a5f
of an OpenPower system. 'pflash' is a tool to access the flash modules
f95a5f
on such systems and update the OpenPower firmware.
f95a5f
f95a5f
%package -n	opal-firmware
f95a5f
Summary:	OPAL firmware
f95a5f
BuildArch:	noarch
f95a5f
f95a5f
%description -n	opal-firmware
f95a5f
OPAL firmware, aka skiboot, loads the bootloader and provides runtime
f95a5f
services to the OS (Linux) on IBM Power and OpenPower systems.
f95a5f
f95a5f
%prep
f95a5f
%setup -q -n %{project}-%{version}
f95a5f
f95a5f
%build
f95a5f
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
f95a5f
GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard
f95a5f
PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash
f95a5f
XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils
f95a5f
f95a5f
# build skiboot with a cross-compiler on Fedora and with system compiler otherwise
f95a5f
# and always use upstream compiler flags for the firmware (no CFLAGS override)
f95a5f
%if 0%{?fedora}
f95a5f
SKIBOOT_VERSION=%{version} make V=1 CROSS="powerpc64-linux-gnu-"
f95a5f
%else
f95a5f
SKIBOOT_VERSION=%{version} make V=1 CROSS=
f95a5f
%endif
f95a5f
f95a5f
%install
f95a5f
make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
f95a5f
make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
4c9ee1
make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
4c9ee1
make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
f95a5f
f95a5f
mkdir -p %{buildroot}%{_unitdir}
f95a5f
install -m 644 -p external/opal-prd/opal-prd.service %{buildroot}%{_unitdir}/opal-prd.service
f95a5f
f95a5f
mkdir -p %{buildroot}%{_datadir}/qemu
f95a5f
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
f95a5f
install -m 644 -p skiboot.lid.xz %{buildroot}%{_datadir}/qemu/skiboot.lid.xz
f95a5f
f95a5f
# log opal-prd messages to /var/log/opal-prd.log
f95a5f
mkdir -p %{buildroot}%{_sysconfdir}/{rsyslog.d,logrotate.d}
4c9ee1
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/rsyslog.d/opal-prd.conf 
4c9ee1
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/opal-prd
f95a5f
f95a5f
%post
f95a5f
%systemd_post opal-prd.service
f95a5f
f95a5f
%preun
f95a5f
%systemd_preun opal-prd.service
f95a5f
f95a5f
%postun
f95a5f
%systemd_postun_with_restart opal-prd.service
f95a5f
f95a5f
%files
f95a5f
%doc README.md
f95a5f
%license LICENCE
4c9ee1
%config(noreplace) %{_sysconfdir}/logrotate.d/opal-prd
4c9ee1
%config(noreplace) %{_sysconfdir}/rsyslog.d/opal-prd.conf 
f95a5f
%{_sbindir}/opal-prd
f95a5f
%{_unitdir}/opal-prd.service
f95a5f
%{_mandir}/man8/*
f95a5f
f95a5f
%files -n opal-utils
f95a5f
%doc README.md
f95a5f
%license LICENCE
f95a5f
%{_sbindir}/opal-gard
f95a5f
%{_sbindir}/getscom
f95a5f
%{_sbindir}/putscom
f95a5f
%{_sbindir}/pflash
4c9ee1
%{_sbindir}/getsram
f95a5f
%{_mandir}/man1/*
f95a5f
f95a5f
%files -n opal-firmware
f95a5f
%doc README.md
f95a5f
%license LICENCE
f95a5f
%{_datadir}/qemu/
f95a5f
f95a5f
%changelog
2e631c
* Fri Apr 24 2020 Than Ngo <than@redhat.com> - 6.6-1
2e631c
- Resolves: #1779211, rebase to 6.6
2e631c
9209ca
* Mon Oct 28 2019 Than Ngo <than@redhat.com> - 6.5.1-1
9209ca
- Resolves: #1731434. rebase to 6.5.1
9209ca
4c9ee1
* Thu May 23 2019 Than Ngo <than@redhat.com> - 6.3.1-2
4c9ee1
- Related: #1664099, log messages to /var/log/opal-prd.log
4c9ee1
4c9ee1
* Tue May 14 2019 Than Ngo <than@redhat.com> - 6.3.1-1
4c9ee1
- Resolves: #1664099, rebase to 6.3.1
4c9ee1
4c9ee1
* Mon Mar 25 2019 Than Ngo <than@redhat.com> - 6.2-3
4c9ee1
- Related: #1664099. add missing man pages
4c9ee1
4c9ee1
* Thu Mar 21 2019 Than Ngo <than@redhat.com> - 6.2-2
4c9ee1
- Related: #1682400, bump release for gating on tests
4c9ee1
4c9ee1
* Tue Mar 19 2019 Than Ngo <than@redhat.com> - 6.2-1
4c9ee1
- Resolves: #1664099, rebase to 6.2
4c9ee1
- Resolves: #1682400, add gating on tests
4c9ee1
f95a5f
* Fri Dec 14 2018 Than Ngo <than@redhat.com> - 6.1-5
f95a5f
- Resolves: #1659458, opal-prd occ reset causes hardlockup
f95a5f
f95a5f
* Thu Sep 27 2018 Than Ngo <than@redhat.com> - 6.1-4
f95a5f
- opal-prd messages to /var/log/opal-prd.log
f95a5f
f95a5f
* Fri Sep 21 2018 Than Ngo <than@redhat.com> - 6.1-3
f95a5f
- Resolves: #1630612 - annocheck distro flag failures
f95a5f
f95a5f
* Mon Jul 30 2018 Than Ngo <than@redhat.com> - 6.1-2
f95a5f
- fixed bz#1568027, opal-prd crash
f95a5f
f95a5f
* Mon Jul 16 2018 Than Ngo <than@redhat.com> - 6.1-1
f95a5f
- update to 6.1
f95a5f
f95a5f
* Fri Jun 29 2018 Than Ngo <than@redhat.com> - 6.0.4-2
f95a5f
- Resolves: #1596245, "diag_encl -d" creates xml file with blank space in file name
f95a5f
f95a5f
* Mon May 28 2018 Dan Horák <dan@danny.cz> - 6.0.4-1
f95a5f
- Update to latest upstream 6.0.4
f95a5f
f95a5f
* Thu May 17 2018 Dan Horák <dan@danny.cz> - 6.0.1-1
f95a5f
- Update to latest upstream 6.0.1
f95a5f
f95a5f
* Mon Apr 09 2018 Dan Horák <dan@danny.cz> - 5.11-1
f95a5f
- Update to latest upstream 5.11
f95a5f
f95a5f
* Mon Mar 12 2018 Than Ngo <than@redhat.com> - 5.10.2-1
f95a5f
- update to latest upstream 5.10.2
f95a5f
f95a5f
* Thu Mar 08 2018 Than Ngo <than@redhat.com> - 5.10.1-2
f95a5f
- fixed bz#1552650 - incomplete Fedora build flags injection
f95a5f
f95a5f
* Fri Mar 02 2018 Dan Horák <dan[at]danny.cz> - 5.10.1-1
f95a5f
- Update to latest upstream 5.10.1
f95a5f
f95a5f
* Wed Feb 28 2018 Dan Horák <dan[at]danny.cz> - 5.10-1
f95a5f
- Update to latest upstream 5.10
f95a5f
f95a5f
* Mon Feb 26 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-3
f95a5f
- fix firmware build (#1545784)
f95a5f
f95a5f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.8-2
f95a5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f95a5f
f95a5f
* Thu Jan 25 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-1
f95a5f
- Update to latest upstream 5.9.8
f95a5f
f95a5f
* Fri Aug 4 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.7.0-1
f95a5f
- Update to latest upstream 5.7.0
f95a5f
f95a5f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-4
f95a5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f95a5f
f95a5f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-3
f95a5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f95a5f
f95a5f
* Wed Apr 19 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-2
f95a5f
- Fix build warning
f95a5f
- Include skiboot.lid.xz file
f95a5f
f95a5f
* Tue Apr 18 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-1
f95a5f
- Update to latest upstream 5.5.0
f95a5f
f95a5f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
f95a5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f95a5f
f95a5f
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.2.0
f95a5f
- Update to latest upstream 5.2.0
f95a5f
f95a5f
* Fri Feb 26 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-4
f95a5f
- Fix stack frame compilation issue on gcc6
f95a5f
- Remove ppc64 from ExclusiveArch list
f95a5f
f95a5f
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-3
f95a5f
- Fix opal-prd recompilation issse during install
f95a5f
f95a5f
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-2
f95a5f
- Added "Requires(post|preun|postun) tags"
f95a5f
f95a5f
* Tue Feb 09 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13
f95a5f
- Update to latest upstream 5.1.13
f95a5f
- Fixed specfile based on Dan's review comment (#1284527)
f95a5f
f95a5f
* Wed Nov 25 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-4
f95a5f
- Fixed specfile based on Dan's review comment (#1284527)
f95a5f
f95a5f
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-3
f95a5f
- Consistent use of build macros
f95a5f
- Removed defattr from files section
f95a5f
f95a5f
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-2
f95a5f
- Minor update to spec file
f95a5f
f95a5f
* Mon Nov 23 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11
f95a5f
- Initial Fedora packaging