File kerneloops.spec of Package kerneloops

#
# spec file for package kerneloops (Version 0.12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Url:            http://www.kerneloops.org/

Name:           kerneloops
Version:        0.12
Release:        29
License:        GPL v2 only
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  curl-devel dbus-1-glib-devel desktop-file-utils gtk2-devel libnotify-devel update-desktop-files
Group:          System/Kernel
Summary:        Tool to collect kernel oopses and submit them to kerneloops.org
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.init
Patch:          0001-syslog-the-submit-URL-as-well.patch                     
Patch1:         0002-Fix-format-string-vulnerability.patch                   
Patch2:         0003-Add-format-string-security-error-checking-to-build.patch
Patch3:         0001-kerneloops-add-debug-dbus-to-daemon-options.patch
PreReq:         %insserv_prereq

%description
kerneloops.org is a website that tries to help the developers of the
Linux kernel by collecting so-called oopses, which are the crash
signatures of the Linux kernel. The collected oopses are processed
statistically to present information for the kernel developers, such as

* Which crash signatures occur the most? (and thus need to be fixed
   most urgently)

* When did a certain crash signature show up first?

* Which API functions are the most error prone?



Authors:
--------
    Arjan van de Ven <arjan@linux.intel.com>

%package applet
License:        GPL v2 only
Group:          System/Kernel
Requires:       %{name} = %{version}
Summary:        Tool to collect kernel oopses and submit them to kerneloops.org

%description applet
kerneloops.org is a website that tries to help the developers of the
Linux kernel by collecting so-called oopses, which are the crash
signatures of the Linux kernel. The collected oopses are processed
statistically to present information for the kernel developers, such as

* Which crash signatures occur the most? (and thus need to be fixed
   most urgently)

* When did a certain crash signature show up first?

* Which API functions are the most error prone?



Authors:
--------
    Arjan van de Ven <arjan@linux.intel.com>

%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%{__make}

%install
%{__make} install DESTDIR=%{buildroot}
%{__mkdir_p} %{buildroot}/etc/init.d
%{__install} -m 755 %{SOURCE1} %{buildroot}/etc/init.d/%{name}
%{__ln_s} -f /etc/init.d/%{name}   %{buildroot}/usr/sbin/rc%{name}
%find_lang %{name}
%suse_update_desktop_file %name-applet System Monitor

%post
%{fillup_and_insserv -f -y %{name}}

%preun
%stop_on_removal %{name}

%postun
%restart_on_update %{name}
%insserv_cleanup

%clean
%{__rm} -rf "$RPM_BUILD_ROOT"

%files -f %{name}.lang
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/kerneloops.conf
%{_sbindir}/kerneloops
%{_sbindir}/rckerneloops
/etc/dbus-1/system.d/kerneloops.dbus
%{_mandir}/man8/kerneloops.8.gz
%config /etc/init.d/%{name}

%files applet
%defattr(-,root,root)
/etc/xdg/autostart/kerneloops-applet.desktop
%{_bindir}/kerneloops-applet
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/icon.png

%changelog
* Tue Nov 11 2008 bphilips@suse.de
- Start kerneloops by default
* Thu Oct 09 2008 bphilips@suse.de
- config is in /etc/kerneloops.conf not /etc/sysconfig/kerneloops
* Thu Sep 25 2008 bphilips@suse.de
- updates to version 0.12
  * Add format string security error checking to build
  * Fix format string error
  * syslog the submit URL as well
  * With thanks to Owen... now the send button will close the dialog
  * signal to the kernel that we're not timing critical and that our
  wakeups can be grouped
  * also catch net device watchdog timeouts
  * make kerneloops daemon more boot time friendly
* Fri Aug 08 2008 bphilips@suse.de
- update to version 0.12
  * Add a "Show me my oops before submit" button.
  * If you have an incredibly large log file.. kerneloops takes too long.
  Just parse the last 32Mb instead, should be plenty.
  * Don't delay for non-dmesg oopses. Apparently some people have really
  large logfiles and this causes major delays.
  * one more "start of oops" string
  * Detect RTLN assertions (networking) as well
  * 2 more ident strings to get more useful list corruption messages
  * add a --file option
  * Pass $OPTS to kerneloops from /etc/sysconfig/kerneloops.
  * Print a URL to the submitted oops in the thank you screen
* Fri Apr 25 2008 crrodriguez@suse.de
- update to version 0.11
  * Improve the makefile (GregKH)
  * Take various fixes from Chuck Ebbert (Red Hat) based on Fedora
  feedback
  * Put a link to the submitted oops in the "thanks" screen
  * Consider stack overflow warnings also kernel badness
* Wed Apr 02 2008 crrodriguez@suse.de
- initial version for openSUSE 11
openSUSE Build Service is sponsored by