1 # TODO: PLDify init script
2 %include /usr/lib/rpm/macros.perl
3 Summary: Userspace helper for Linux kernel EDAC drivers (ECC)
4 Summary(pl.UTF-8): Narzędzia pomocnicze sterownika EDAC (ECC)
9 Group: Applications/System
10 Source0: http://downloads.sourceforge.net/edac-utils/%{name}-%{version}.tar.bz2
11 # Source0-md5: 77dda84f25ddba732da1d94fe357bf87
12 URL: http://sourceforge.net/projects/edac-utils/
13 BuildRequires: autoconf >= 2.50
14 BuildRequires: automake
15 BuildRequires: libtool
16 BuildRequires: rpm-perlprov
17 BuildRequires: sysfsutils-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 EDAC is the current set of drivers in the Linux kernel that handle
22 detection of ECC errors from memory controllers for most chipsets
23 on i386 and x86_64 architectures. This userspace component consists
24 an init script which loads EDAC DIMM labels at system boot, and can
25 optionally be configured to load a specific EDAC driver if this is
26 not done automatically at system startup. The package also includes a
27 library and utility for reporting current error counts from the EDAC
30 %description -l pl.UTF-8
31 EDAC to aktualny zbiór sterowników w jądrze Linuksa, obsługujący
32 wykrywanie błędów ECC z kontrolerów pamięci dla większości układów
33 architektur i386 oraz x86_64. Niniejszy pakiet przestrzeni użytkownika
34 składa się ze skryptu init ładującego etykiety DIMM-ów EDAC przy
35 starcie systemu i mogącego opcjonalnie (w przypadku skonfigurowania)
36 wczytać określony sterownik EDAC, jeśli nie zostało to zrobione
37 automatycznie przy rozruchu. Pakiet zawiera także bibliotekę i
38 narzędzie do raportowania bieżących liczników błędów z plików sysfs
42 Summary: Header files for edac library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki edac
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: sysfsutils-devel
49 Header files for edac library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki edac.
55 Summary: Static edac library
56 Summary(pl.UTF-8): Statyczna biblioteka edac
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
63 %description static -l pl.UTF-8
64 Statyczna biblioteka edac.
71 %{__aclocal} -I config
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/edac/labels.d,/etc/rc.d}
83 DESTDIR=$RPM_BUILD_ROOT
85 %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/init.d $RPM_BUILD_ROOT/etc/rc.d
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog DISCLAIMER NEWS README TODO
96 %attr(755,root,root) %{_bindir}/edac-util
97 %attr(755,root,root) %{_sbindir}/edac-ctl
98 %attr(755,root,root) %{_libdir}/libedac.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libedac.so.0
100 %dir %{_sysconfdir}/edac
101 %dir %{_sysconfdir}/edac/labels.d
102 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/edac/labels.db
103 #%attr(754,root,root) /etc/rc.d/init.d/edac
104 %{_mandir}/man1/edac-util.1*
105 %{_mandir}/man8/edac-ctl.8*
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libedac.so
110 %{_libdir}/libedac.la
111 %{_includedir}/edac.h
112 %{_mandir}/man3/edac.3*
115 %defattr(644,root,root,755)