|
|
7c02d9 |
Name: edac-utils
|
|
|
7c02d9 |
Version: 0.16
|
|
|
7c02d9 |
Release: 16%{?dist}
|
|
|
7c02d9 |
Summary: Userspace helper for kernel EDAC drivers
|
|
|
7c02d9 |
|
|
|
7c02d9 |
Group: System Environment/Base
|
|
|
7c02d9 |
License: GPLv2+
|
|
|
7c02d9 |
URL: http://sourceforge.net/projects/edac-utils/
|
|
|
7c02d9 |
|
|
|
7c02d9 |
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 %{power64}
|
|
|
7c02d9 |
Source0: http://dl.sourceforge.net/sourceforge/edac-utils/%{name}-%{version}.tar.bz2
|
|
|
7c02d9 |
Source1: edac.service
|
|
|
7c02d9 |
Patch: 884477.patch
|
|
|
7c02d9 |
Patch2: edac_utils-do_not_exit_if_dmidecode_isnt_found.patch
|
|
|
7c02d9 |
Patch3: edac_utils-dont_try_to_use_dmidecode_if_not_installed.patch
|
|
|
7c02d9 |
Patch4: edac-ctl-man-missing-options.patch
|
|
|
7c02d9 |
Patch5: c29b14d0d07184bd2d250bf355a1dee6faa47572.patch
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%ifarch %{ix86} x86_64
|
|
|
7c02d9 |
Requires: dmidecode
|
|
|
7c02d9 |
%endif
|
|
|
7c02d9 |
Requires: hwdata
|
|
|
7c02d9 |
Requires: sysfsutils
|
|
|
7c02d9 |
BuildRequires: libsysfs-devel, systemd-devel
|
|
|
7c02d9 |
Requires(post): systemd-units
|
|
|
7c02d9 |
Requires(preun): systemd-units
|
|
|
7c02d9 |
Requires(postun): systemd-units
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%description
|
|
|
7c02d9 |
EDAC is the current set of drivers in the Linux kernel that handle
|
|
|
7c02d9 |
detection of ECC errors from memory controllers for most chipsets
|
|
|
7c02d9 |
on i386 and x86_64 architectures. This userspace component consists
|
|
|
7c02d9 |
of an init script which makes sure EDAC drivers and DIMM labels
|
|
|
7c02d9 |
are loaded at system startup, as well as a library and utility
|
|
|
7c02d9 |
for reporting current error counts from the EDAC sysfs files.
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%package devel
|
|
|
7c02d9 |
Summary: Development files for %{name}
|
|
|
7c02d9 |
Group: Development/Libraries
|
|
|
7c02d9 |
Requires: %{name} = %{version}-%{release}
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%description devel
|
|
|
7c02d9 |
This package contains the development headers and libraries
|
|
|
7c02d9 |
for %{name}.
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%prep
|
|
|
7c02d9 |
%setup -q
|
|
|
7c02d9 |
%patch -p1
|
|
|
7c02d9 |
%patch2 -p1
|
|
|
7c02d9 |
%patch3 -p1
|
|
|
7c02d9 |
%patch4 -p1
|
|
|
7c02d9 |
%patch5 -p1
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%build
|
|
|
7c02d9 |
%configure --disable-static
|
|
|
7c02d9 |
make %{?_smp_mflags}
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%install
|
|
|
7c02d9 |
make install-exec install-data DESTDIR="$RPM_BUILD_ROOT"
|
|
|
7c02d9 |
# Remove libtool archive
|
|
|
7c02d9 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
7c02d9 |
|
|
|
7c02d9 |
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/edac.service
|
|
|
7c02d9 |
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/edac
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%post
|
|
|
7c02d9 |
/sbin/ldconfig
|
|
|
7c02d9 |
if [ $1 -eq 1 ] ; then
|
|
|
7c02d9 |
# Initial installation
|
|
|
7c02d9 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
7c02d9 |
fi
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%preun
|
|
|
7c02d9 |
if [ $1 -eq 0 ] ; then
|
|
|
7c02d9 |
# Package removal, not upgrade
|
|
|
7c02d9 |
/bin/systemctl --no-reload disable edac.service > /dev/null 2>&1 || :
|
|
|
7c02d9 |
/bin/systemctl stop edac.service > /dev/null 2>&1 || :
|
|
|
7c02d9 |
fi
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%postun
|
|
|
7c02d9 |
/sbin/ldconfig
|
|
|
7c02d9 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
7c02d9 |
if [ $1 -ge 1 ] ; then
|
|
|
7c02d9 |
# Package upgrade, not uninstall
|
|
|
7c02d9 |
/bin/systemctl try-restart edac.service >/dev/null 2>&1 || :
|
|
|
7c02d9 |
fi
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%triggerun -- edac-utils < 0.9-14
|
|
|
7c02d9 |
# Save the current service runlevel info
|
|
|
7c02d9 |
# User must manually run systemd-sysv-convert --apply edac
|
|
|
7c02d9 |
# to migrate them to systemd targets
|
|
|
7c02d9 |
/usr/bin/systemd-sysv-convert --save edac >/dev/null 2>&1 ||:
|
|
|
7c02d9 |
|
|
|
7c02d9 |
# Run these because the SysV package being removed won't do them
|
|
|
7c02d9 |
/sbin/chkconfig --del edac >/dev/null 2>&1 || :
|
|
|
7c02d9 |
/bin/systemctl try-restart edac.service >/dev/null 2>&1 || :
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%files
|
|
|
7c02d9 |
%defattr(-,root,root,-)
|
|
|
7c02d9 |
%doc COPYING README NEWS ChangeLog DISCLAIMER
|
|
|
7c02d9 |
%{_sbindir}/edac-ctl
|
|
|
7c02d9 |
%{_bindir}/edac-util
|
|
|
7c02d9 |
%{_libdir}/*.so.*
|
|
|
7c02d9 |
%{_mandir}/*/*
|
|
|
7c02d9 |
%dir %attr(0755,root,root) %{_sysconfdir}/edac
|
|
|
7c02d9 |
%config(noreplace) %{_sysconfdir}/edac/*
|
|
|
7c02d9 |
%{_unitdir}/edac.service
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%files devel
|
|
|
7c02d9 |
%defattr(-,root,root,-)
|
|
|
7c02d9 |
%{_libdir}/*.so
|
|
|
7c02d9 |
%{_includedir}/edac.h
|
|
|
7c02d9 |
|
|
|
7c02d9 |
%changelog
|
|
|
7c02d9 |
* Tue Jan 08 2019 Aristeu Rozanski <aris@redhat.com> - 0.16-16
|
|
|
7c02d9 |
- Don't print "no errors" if --quiet is used [1662858]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Nov 13 2015 Aristeu Rozanski <aris@redhat.com> - 0.16-15
|
|
|
7c02d9 |
- Add missing manual entries for two edac-ctl options [1147564]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Oct 05 2015 Aristeu Rozanski <aris@redhat.com> - 0.16-14
|
|
|
7c02d9 |
- Don't try to use dmidecode if not installed [1125491]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Oct 05 2015 Aristeu Rozanski <aris@redhat.com> - 0.16-13
|
|
|
7c02d9 |
- Do not exit if dmidecode isn't found [1125491]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Tue May 05 2015 Aristeu Rozanski <aris@redhat.com> - 0.16-12
|
|
|
7c02d9 |
- Rebuilt for 7.2 [1184674]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Aug 22 2014 Aristeu Rozanski <aris@redhat.com> - 0.16-11
|
|
|
7c02d9 |
- Enable in all powerpc64 arches instead [1125491]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Aug 08 2014 Aristeu Rozanski <aris@redhat.com> - 0.16-10
|
|
|
7c02d9 |
- Enable ppc64le arch build [1125491]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Tue Jun 03 2014 Aristeu Rozanski <aris@redhat.com> - 0.16-9
|
|
|
7c02d9 |
- Enable builds on aarch64 [967931]
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.16-8
|
|
|
7c02d9 |
- Mass rebuild 2013-12-27
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Jul 01 2013 Aristeu Rozanski <aris@redhat.com> - 0.16-7
|
|
|
7c02d9 |
- including missing file
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Jul 01 2013 Aristeu Rozanski <aris@redhat.com> - 0.16-6
|
|
|
7c02d9 |
- build bump
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Jul 01 2013 Aristeu Rozanski <aris@redhat.com> - 0.16-5
|
|
|
7c02d9 |
- fixed bogus dates in old changelog entries
|
|
|
7c02d9 |
- backported patch to fix library version mismatch [884477]
|
|
|
7c02d9 |
- included systemd-devel as BuildRequires for _unitdir rpm definition
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-4
|
|
|
7c02d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Thu Oct 11 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.16-3
|
|
|
7c02d9 |
- ARM has support for EDAC so enable the utils
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
|
|
|
7c02d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed May 02 2012 Aristeu Rozanski <aris@redhat.com> - 0.16-1
|
|
|
7c02d9 |
- New upstream release 0.16
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Mar 14 2012 Jon Ciesla <limburgher@gmail.com> - 0.9-14
|
|
|
7c02d9 |
- Migrate to systemd, BZ 767784.
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-13
|
|
|
7c02d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-12
|
|
|
7c02d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-11
|
|
|
7c02d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-10
|
|
|
7c02d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9-9
|
|
|
7c02d9 |
- fix license tag
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9-8
|
|
|
7c02d9 |
- Autorebuild for GCC 4.3
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Jul 18 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-7
|
|
|
7c02d9 |
- including missing .patch file
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Tue Jul 17 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-6
|
|
|
7c02d9 |
- building FC7 package
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Jul 09 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-5
|
|
|
7c02d9 |
- Fixed start/stop message, missing echo
|
|
|
7c02d9 |
- Fixed status command to use edac-util
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Fri Jun 15 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-4
|
|
|
7c02d9 |
- Removed debug code left by mistake on initrd file
|
|
|
7c02d9 |
- Fixed model comparing in edac-ctl script
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Jun 13 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-3
|
|
|
7c02d9 |
- Adding COPYING to documents
|
|
|
7c02d9 |
- Fixing Requires to use a single equal sign, instead of two
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Jun 13 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-2
|
|
|
7c02d9 |
- Multiple updates in spec file to conform to the standards pointed by
|
|
|
7c02d9 |
Jarod Wilson
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Wed Jun 06 2007 Aristeu Rozanski <arozansk@redhat.com> 0.9-1
|
|
|
7c02d9 |
- Updated version to 0.9, separate project now
|
|
|
7c02d9 |
- Updated spec file based on upstream edac-utils spec file
|
|
|
7c02d9 |
- Removed driver loading portion in a separate patch, it'll be removed from
|
|
|
7c02d9 |
upstream too
|
|
|
7c02d9 |
- Fixed init script to use functions and daemon function
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Thu Apr 19 2007 Aristeu Rozanski <arozansk@redhat.com> 20061222-3
|
|
|
7c02d9 |
- Updated initrd script to start after syslogd, otherwise if the board isn't
|
|
|
7c02d9 |
supported, the user will never know.
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Thu Apr 19 2007 Aristeu Rozanski <arozansk@redhat.com> 20061222-2
|
|
|
7c02d9 |
- Changing this package to noarch and preventing the build on ia64, ppc64,
|
|
|
7c02d9 |
s390 and s390x
|
|
|
7c02d9 |
|
|
|
7c02d9 |
* Mon Mar 12 2007 Aristeu Rozanski <arozansk@redhat.com> 20061222-1
|
|
|
7c02d9 |
- Package created
|
|
|
7c02d9 |
|