Blame SPECS/edac-utils.spec

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