Blame SPECS/edac-utils.spec

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