Fix exec file permissions in the specfile
authorChristophe Varoqui <christophe.varoqui@opensvc.com>
Fri, 30 Sep 2016 15:32:52 +0000 (17:32 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Fri, 30 Sep 2016 15:32:52 +0000 (17:32 +0200)
unmid.spec [new file with mode: 0644]

diff --git a/unmid.spec b/unmid.spec
new file mode 100644 (file)
index 0000000..3ac0219
--- /dev/null
@@ -0,0 +1,47 @@
+Summary: daemon to trigger sysrq upon classified NMI
+Name: unmid
+Version: 1.0.0
+Release: 1
+License: GPLv2
+Group: Utilities
+URL: http://git.opensvc.com/?p=unmid/.git
+Packager: OpenSVC
+%define _source_filedigest_algorithm 1
+%define _binary_filedigest_algorithm 1
+%define _source_payload w9.gzdio
+%define _binary_payload w9.gzdio
+
+%description
+unmid parses /dev/kmsg in search for unknown NMI reports, and triggers a user-defined sysrq action.
+
+%prep
+rm -rf %{_builddir}/%{name}
+git clone http://git.opensvc.com/unmid/.git
+
+%build
+cd %{_builddir}/%{name}
+make clean
+make
+
+%install
+rm -rf %{buildroot}
+cd %{_builddir}/%{name}
+DESTDIR=%{buildroot} make install
+
+%clean
+rm -rf %{buildroot}
+rm -rf %{_builddir}/%{name}
+
+%files
+%defattr(0644, root, root)
+%doc unmid/COPYING unmid/README.iDRAC
+%{_sysconfdir}/systemd/system/%{name}.service
+%{_mandir}/man8/unmid.8*
+
+%defattr(0755,-,-)
+%{_bindir}/unmid
+
+%changelog
+* Fri Sep 30 2016 Christophe Varoqui <christophe.varoqui@opensvc.com> 1.0.0-1
+– initial packaging
+