1 Summary: Read, write, and modify problem reports
6 Group: Applications/System
7 Source0: https://launchpad.net/ubuntu/hardy/+source/apport/%{version}/+files/%{name}_%{version}.tar.gz
8 # Source0-md5: b2eb9a3b1168329ae7cdeb2a988d3443
10 Source2: %{name}-backend-pld.py
11 Patch0: %{name}-pager.patch
12 Patch1: %{name}-crashdb.patch
13 Patch2: %{name}-gtk-glade.patch
14 URL: https://wiki.ubuntu.com/Apport
15 BuildRequires: gettext-tools
16 BuildRequires: intltool
17 BuildRequires: python-devel >= 1:2.5
18 BuildRequires: python-modules
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.710
21 #BuildRequires: tetex-format-pdflatex
22 #BuildRequires: tetex-latex
23 Requires(post,postun): gtk-update-icon-cache
24 Requires(post,postun): hicolor-icon-theme
25 Requires(post,postun): shared-mime-info
26 Requires(post,preun): /sbin/chkconfig
28 Requires: python-launchpad-bugs
32 # Need the ability to use pipes in /proc/sys/kernel/core_pattern
33 # seems only 2.6.24 allows command line params
34 Requires: uname(release) >= 2.6.24
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 apport automatically collects data from crashed processes and compiles
40 a problem report in /var/crash/.
42 This package also provides apport's python libraries and a command
43 line frontend for browsing and handling the crash reports.
45 See <https://wiki.ubuntu.com/AutomatedProblemReports> for more
49 Summary: GTK frontend for the apport crash report system
50 Group: Applications/System
52 Requires: python-pygtk-glade
53 Requires: python-pygtk-gtk
54 Requires: python-pyxdg
57 apport automatically collects data from crashed processes and compiles
58 a problem report in /var/crash/.
60 This package provides a GTK frontend for browsing and handling the
64 Summary: Qt4 frontend for the apport crash report system
65 Group: Applications/System
67 Requires: python-PyQt4
68 Requires: python-pyxdg
71 apport automatically collects data from crashed processes and compiles
72 a problem report in /var/crash/.
74 This package provides a Qt4 frontend for browsing and handling the
78 Summary: Tools for reprocessing Apport crash reports
79 Group: Applications/System
82 apport-retrace recombines an Apport crash report (either a file or a
83 Launchpad bug) and debug symbol packages (.ddebs) into fully symbolic
86 This package also ships apport-chroot. This tool can create and manage
87 chroots for usage with apport-retrace. If the fakeroot and fakechroot
88 libraries are available (either by installing the packages or by
89 merely putting their libraries somewhere and setting two environment
90 variables), the entire process of retracing crashes in chroots can
91 happen with normal user privileges.
100 rm apport/packaging.py
102 # set up the packaging backend
103 cp backends/packaging_rpm.py apport
104 cp %{SOURCE2} apport/packaging_pld.py
105 ln -s packaging_pld.py apport/packaging_impl.py
116 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT%{_mandir}/man1
123 install man/apport-*.1 $RPM_BUILD_ROOT%{_mandir}/man1
125 install -d $RPM_BUILD_ROOT/etc/cron.daily
126 install debian/apport.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/apport
127 # create the dir for crash reports
128 install -d $RPM_BUILD_ROOT/var/crash
130 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
131 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apport
134 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/mimelnk/text}
136 cp -a qt4/apport-qt.desktop $RPM_BUILD_ROOT%{_desktopdir}
137 # mimetype and associated action
138 cp -a qt4/apport-qt-mimelnk.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/text/x-apport.desktop
139 cp -a qt4/apport-qt-mime.desktop $RPM_BUILD_ROOT%{_desktopdir}
141 rm -f $RPM_BUILD_ROOT%{_docdir}/apport/package-hooks.txt
144 rm -rf $RPM_BUILD_ROOT
147 /sbin/chkconfig --add apport
148 %service apport restart
149 %update_mime_database
150 %update_icon_cache hicolor
153 if [ "$1" == "0" ]; then
155 /sbin/chkconfig --del apport
158 %update_mime_database
159 %update_icon_cache hicolor
162 %defattr(644,root,root,755)
163 %doc doc/package-hooks.txt
166 %{_iconsdir}/hicolor/*/apps/apport.svg
167 %{_datadir}/mime/packages/apport.xml
168 %{py_sitescriptdir}/apport-*.egg-info
169 %dir %{_datadir}/apport
170 %attr(755,root,root) %{_bindir}/apport
171 %attr(755,root,root) %{_bindir}/apport-cli
172 %attr(755,root,root) %{_bindir}/gcc_ice_hook
173 %attr(755,root,root) %{_bindir}/apport-checkreports
174 %attr(755,root,root) %{_bindir}/package_hook
175 %attr(755,root,root) %{_bindir}/kernel_hook
176 %attr(755,root,root) %{_bindir}/apport-unpack
177 %attr(755,root,root) %{_datadir}/apport/testsuite/
178 %dir %{_datadir}/apport/general-hooks/
179 %attr(755,root,root) %{_datadir}/apport/general-hooks/*.py
180 %dir %{_datadir}/apport/package-hooks/
181 %attr(755,root,root) %{_datadir}/apport/package-hooks/*.py
182 %{py_sitescriptdir}/apport_python_hook.py[co]
183 %{py_sitescriptdir}/problem_report*.py[co]
184 %dir %{py_sitescriptdir}/apport
185 %{py_sitescriptdir}/apport/*.py[co]
186 %dir %{py_sitescriptdir}/apport/crashdb_impl
187 %{py_sitescriptdir}/apport/crashdb_impl/*.py[co]
188 /etc/cron.daily/apport
189 %attr(754,root,root) /etc/rc.d/init.d/apport
190 %dir %{_sysconfdir}/apport
191 %config %{_sysconfdir}/apport/crashdb.conf
192 %{_sysconfdir}/apport/blacklist.d
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_bindir}/apport-gtk
197 %{_datadir}/apport/apport-gtk.glade
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_bindir}/apport-qt
202 %{_datadir}/apport/*.ui
203 %{_desktopdir}/apport-qt.desktop
204 %{_desktopdir}/apport-qt-mime.desktop
205 %{_datadir}/mimelnk/text/x-apport.desktop
208 %defattr(644,root,root,755)
209 %{_mandir}/man1/apport-retrace.1*
210 %attr(755,root,root) %{_bindir}/apport-retrace
211 %attr(755,root,root) %{_bindir}/apport-chroot
212 %attr(755,root,root) %{_bindir}/dupdb-admin