SPECS: kerneloops.spec (NEW) - almost raw

arekm arekm at pld-linux.org
Sat May 24 10:36:44 CEST 2008


Author: arekm                        Date: Sat May 24 08:36:44 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- almost raw

---- Files affected:
SPECS:
   kerneloops.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/kerneloops.spec
diff -u /dev/null SPECS/kerneloops.spec:1.1
--- /dev/null	Sat May 24 10:36:44 2008
+++ SPECS/kerneloops.spec	Sat May 24 10:36:38 2008
@@ -0,0 +1,81 @@
+# $Revision$, $Date$
+%bcond_without	tests
+Summary:	Tool to automatically collect and submit kernel crash signatures
+Name:		kerneloops
+Version:	0.11
+Release:	1
+License:	GPL v2
+Group:		Base/Kernel
+URL:		http://www.kerneloops.org
+Source0:	http://www.kerneloops.org/download/%{name}-%{version}.tar.gz
+# Source0-md5:	a0daa9437f0638912a91afe66f51545b
+Source1:	%{name}.init
+BuildRequires:	curl-devel
+BuildRequires:	dbus-glib-devel
+BuildRequires:	desktop-file-utils
+BuildRequires:	gettext-devel
+BuildRequires:	gtk+2-devel
+BuildRequires:	libnotify-devel
+
+%description
+This package contains the tools to collect kernel crash signatures,
+and to submit them to the kerneloops.org website where the kernel
+crash signatures get collected and grouped for presentation to the
+Linux kernel developers.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags}"
+
+%{?with_tests:%{__make} tests}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+        %service %{name} stop
+        /sbin/chkconfig --del %{name}
+fi
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc Changelog
+%attr(755,root,root) %{_sbindir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/kerneloops.conf
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+/etc/dbus-1/system.d/kerneloops.dbus
+%{_sysconfdir}/xdg/autostart/kerneloops-applet.desktop
+%{_datadir}/kerneloops
+%attr(755,root,root) %{_bindir}/kerneloops-applet
+%{_mandir}/man8/kerneloops.8*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-05-24 08:36:38  arekm
+- almost raw
+
================================================================


More information about the pld-cvs-commit mailing list