File kerneloops.spec of Package kerneloops
#
# spec file for package kerneloops (Version 0.12)
#
# Copyright (c) 2010 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: 39
License: GPLv2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: curl-devel dbus-1-glib-devel desktop-file-utils gtk2-devel
BuildRequires: libcap-ng-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
Patch4: kerneloops-d-bus-policy-is-wrong.patch
Patch5: http://people.redhat.com/sgrubb/libcap-ng/patches/kerneloops-0.12-capability.patch
PreReq: %insserv_prereq sysvinit(syslog) sysvinit(network)
%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: GPLv2
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
%patch4 -p1
%patch5 -p1
%build
export CFLAGS="%{optflags}"
%{__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
%config /etc/dbus-1/system.d/kerneloops.dbus
%{_mandir}/man8/kerneloops.8.gz
%config /etc/init.d/%{name}
%files applet
%defattr(-,root,root)
%config /etc/xdg/autostart/kerneloops-applet.desktop
%{_bindir}/kerneloops-applet
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/icon.png
%changelog