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