]>
Commit | Line | Data |
---|---|---|
902f972e JB |
1 | # TODO: PLDify init script |
2 | %include /usr/lib/rpm/macros.perl | |
8a8dfb83 TP |
3 | Summary: Userspace helper for Linux kernel EDAC drivers (ECC) |
4 | Summary(pl.UTF-8): Narzędzia pomocnicze sterownika EDAC (ECC) | |
5 | Name: edac-utils | |
6 | Version: 0.16 | |
7 | Release: 1 | |
902f972e | 8 | License: GPL v2+ |
8a8dfb83 | 9 | Group: Applications/System |
2e0a0847 | 10 | Source0: http://downloads.sourceforge.net/edac-utils/%{name}-%{version}.tar.bz2 |
8a8dfb83 TP |
11 | # Source0-md5: 77dda84f25ddba732da1d94fe357bf87 |
12 | URL: http://sourceforge.net/projects/edac-utils/ | |
902f972e | 13 | BuildRequires: autoconf >= 2.50 |
8a8dfb83 TP |
14 | BuildRequires: automake |
15 | BuildRequires: libtool | |
902f972e | 16 | BuildRequires: rpm-perlprov |
8a8dfb83 TP |
17 | BuildRequires: sysfsutils-devel |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
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 | |
28 | sysfs files. | |
29 | ||
902f972e JB |
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 | |
39 | EDAC. | |
40 | ||
8a8dfb83 TP |
41 | %package devel |
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} | |
902f972e | 46 | Requires: sysfsutils-devel |
8a8dfb83 TP |
47 | |
48 | %description devel | |
49 | Header files for edac library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki edac. | |
53 | ||
54 | %package static | |
55 | Summary: Static edac library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka edac | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static edac library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka edac. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
70 | %{__libtoolize} | |
71 | %{__aclocal} -I config | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure | |
76 | %{__make} | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
902f972e | 80 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/edac/labels.d,/etc/rc.d} |
8a8dfb83 TP |
81 | |
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
902f972e | 85 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/init.d $RPM_BUILD_ROOT/etc/rc.d |
8a8dfb83 TP |
86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
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.*.*.* | |
902f972e JB |
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 | |
8a8dfb83 TP |
104 | %{_mandir}/man1/edac-util.1* |
105 | %{_mandir}/man8/edac-ctl.8* | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
902f972e JB |
109 | %attr(755,root,root) %{_libdir}/libedac.so |
110 | %{_libdir}/libedac.la | |
8a8dfb83 TP |
111 | %{_includedir}/edac.h |
112 | %{_mandir}/man3/edac.3* | |
113 | ||
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libedac.a |