]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
Add a RPM spec file to build it with rpmbuild
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 8 May 2013 17:52:05 +0000 (14:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 8 May 2013 18:13:08 +0000 (15:13 -0300)
Add a rasdaemon.spec template file useful for compiling it with
Fedora. It may require changes to work with other distributions
that also use rpm files, as each distro has their own rules for
rpm's, but at least this file can be used as a reference.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
configure.ac
misc/rasdaemon.spec [new file with mode: 0644]

index e7d1157df5122f1dc8ec0c33f8710e8ef2d1c752..727957e9fe1413319231a5efd11cd397e272e5bd 100644 (file)
@@ -1,4 +1,4 @@
-AC_INIT([RAS Daemon], 0.2.0)
+AC_INIT([RASdaemon], 0.2.0)
 AM_SILENT_RULES([yes])
 AC_CANONICAL_SYSTEM
 AC_CONFIG_MACRO_DIR([m4])
diff --git a/misc/rasdaemon.spec b/misc/rasdaemon.spec
new file mode 100644 (file)
index 0000000..97ed1de
--- /dev/null
@@ -0,0 +1,49 @@
+Name:                  rasdaemon
+Version:               0.2.0
+Release:               1%{?dist}
+Summary:               Utility to receive RAS error tracings
+Group:                 Applications/System
+License:               GPLv2
+URL:                   https://git.fedorahosted.org/git/rasdaemon.git
+Source0:               %{name}-%{version}.tar.bz2
+BuildRoot:             %{_tmppath}/%{name}-%{version}-%{release}
+Requires:              hwdata, dmidecode
+ExclusiveArch:         %{ix86} x86_64
+Requires(post):                systemd-units
+Requires(preun):       systemd-units
+Requires(postun):      systemd-units
+
+%description
+%{name} is a RAS (Reliability, Availability and Serviceability) logging tool.
+It currently records memory errors, using the EDAC tracing events.
+EDAC is drivers in the Linux kernel that handle detection of ECC errors
+from memory controllers for most chipsets on i386 and x86_64 architectures.
+EDAC drivers for other architectures like arm also exists.
+This userspace component consists of an init script which makes sure
+EDAC drivers and DIMM labels are loaded at system startup, as well as
+an utility for reporting current error counts from the EDAC sysfs files.
+
+%prep
+%setup -q
+
+%build
+autoreconf -vfi
+%configure
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+install -D -p -m 0644 misc/rasdaemon.service $RPM_BUILD_ROOT%{_unitdir}/rasdaemon.service
+install -D -p -m 0644 misc/ras-mc-ctl.service $RPM_BUILD_ROOT%{_unitdir}/ras-mc-ctl.service
+
+%files
+%doc AUTHORS ChangeLog INSTALL COPYING README TODO
+%{_bindir}/rasdaemon
+%{_bindir}/util/ras-mc-ctl
+%{_mandir}/man1/rasdaemon.1.gz
+%{_mandir}/man8/ras-mc-ctl.8.gz
+
+%changelog
+* Wed May  8 2013 Mauro Carvalho Chehab <mchehab@redhat.com> 0.2.0.fc19
+- Package created
+