--- /dev/null
+Name: corewatcher
+Summary: A crash dump reporting tool
+Version: 0.9.8
+Release: 1
+Group: System/Base
+License: GPLv2
+Source0: corewatcher-%{version}.tar.gz
+Source1: corewatcher
+Requires: gdb
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: curl-devel
+BuildRequires: pkgconfig(elementary)
+
+
+%description
+This tool sends application crash reports to the central crash
+reporting database.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+%reconfigure
+
+make
+
+%install
+rm -rf %{buildroot}
+
+%make_install
+
+mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
+mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc{3,4}.d
+install -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/corewatcher
+ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S10corewatcher
+ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc4.d/S10corewatcher
+
+%files
+%defattr(-,root,root,-)
+%config(noreplace) /etc/corewatcher/corewatcher.conf
+%{_sbindir}/corewatcher
+%{_sbindir}/crash-popup
+/usr/share/man/man8/corewatcher.8.gz
+%{_sysconfdir}/corewatcher/gdb.command
+%{_sysconfdir}/rc.d/init.d/corewatcher
+%{_sysconfdir}/rc.d/rc3.d/S10corewatcher
+%{_sysconfdir}/rc.d/rc4.d/S10corewatcher
+%exclude %{_libdir}/systemd/system/corewatcher.service