]>
Commit | Line | Data |
---|---|---|
7ce35e5c PZ |
1 | Summary: Read, write, and modify problem reports |
2 | Name: apport | |
dfc368bc | 3 | Version: 0.108.1 |
9adff5a3 | 4 | Release: 0.4 |
7ce35e5c PZ |
5 | License: GPL |
6 | Group: Applications/System | |
4f5ece38 | 7 | Source0: https://launchpad.net/ubuntu/hardy/+source/apport/%{version}/+files/%{name}_%{version}.tar.gz |
dfc368bc | 8 | # Source0-md5: a4e7f9d2021b7669f10ac47235365ca7 |
7ce35e5c | 9 | Source1: %{name}.init |
c8193fa4 | 10 | Source2: %{name}-backend-pld.py |
88d190c7 ER |
11 | Patch0: %{name}-pager.patch |
12 | Patch1: %{name}-crashdb.patch | |
13 | Patch2: %{name}-sourcepackage.patch | |
7ce35e5c PZ |
14 | URL: https://wiki.ubuntu.com/Apport |
15 | BuildRequires: gettext | |
16 | BuildRequires: intltool | |
17 | BuildRequires: python-devel >= 1:2.5 | |
25bc769a | 18 | BuildRequires: rpmbuild(macros) >= 1.268 |
7ce35e5c PZ |
19 | #BuildRequires: tetex-format-pdflatex |
20 | #BuildRequires: tetex-latex | |
7ce35e5c PZ |
21 | Requires(post,postun): hicolor-icon-theme |
22 | Requires(post,postun): shared-mime-info | |
25bc769a | 23 | Requires(post,preun): /sbin/chkconfig |
56811d2d | 24 | Requires: lsb-release |
f8d8a6b1 | 25 | Requires: python-launchpad-bugs |
7ce35e5c | 26 | Requires: python-rpm |
25bc769a | 27 | Requires: rc-scripts |
7ce35e5c | 28 | Requires: yum |
25bc769a ER |
29 | # Need the ability to use pipes in /proc/sys/kernel/core_pattern |
30 | # seems only 2.6.24 allows command line params | |
31 | Requires: uname(release) >= 2.6.24 | |
7ce35e5c PZ |
32 | BuildArch: noarch |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | apport automatically collects data from crashed processes and compiles | |
37 | a problem report in /var/crash/. | |
38 | ||
39 | This package also provides apport's python libraries and a command | |
40 | line frontend for browsing and handling the crash reports. | |
41 | ||
f8d8a6b1 | 42 | See <https://wiki.ubuntu.com/AutomatedProblemReports> for more |
7ce35e5c PZ |
43 | information. |
44 | ||
45 | %package gtk | |
46 | Summary: GTK frontend for the apport crash report system | |
47 | Group: Applications/System | |
48 | Requires: procps | |
7ce35e5c | 49 | Requires: python-pygtk-glade |
25bc769a | 50 | Requires: python-pygtk-gtk |
7ce35e5c PZ |
51 | Requires: python-pyxdg |
52 | ||
53 | %description gtk | |
54 | apport automatically collects data from crashed processes and compiles | |
55 | a problem report in /var/crash/. | |
56 | ||
57 | This package provides a GTK frontend for browsing and handling the | |
58 | crash reports. | |
59 | ||
60 | %package qt | |
61 | Summary: Qt4 frontend for the apport crash report system | |
62 | Group: Applications/System | |
63 | Requires: procps | |
25bc769a | 64 | Requires: python-PyQt4 |
7ce35e5c PZ |
65 | Requires: python-pyxdg |
66 | ||
67 | %description qt | |
68 | apport automatically collects data from crashed processes and compiles | |
69 | a problem report in /var/crash/. | |
70 | ||
71 | This package provides a Qt4 frontend for browsing and handling the | |
72 | crash reports. | |
73 | ||
74 | %package retrace | |
75 | Summary: Tools for reprocessing Apport crash reports | |
76 | Group: Applications/System | |
77 | ||
78 | %description retrace | |
79 | apport-retrace recombines an Apport crash report (either a file or a | |
80 | Launchpad bug) and debug symbol packages (.ddebs) into fully symbolic | |
81 | stack traces. | |
82 | ||
83 | This package also ships apport-chroot. This tool can create and manage | |
84 | chroots for usage with apport-retrace. If the fakeroot and fakechroot | |
85 | libraries are available (either by installing the packages or by | |
86 | merely putting their libraries somewhere and setting two environment | |
87 | variables), the entire process of retracing crashes in chroots can | |
88 | happen with normal user privileges. | |
89 | ||
90 | %prep | |
dfc368bc | 91 | %setup -q -n %{name}-0.108 |
88d190c7 ER |
92 | %patch0 -p1 |
93 | %patch1 -p1 | |
94 | %patch2 -p1 | |
7ce35e5c | 95 | |
c8193fa4 PZ |
96 | # only used by debian |
97 | rm apport/packaging.py | |
f8d8a6b1 ER |
98 | |
99 | # set up the packaging backend | |
100 | cp backends/packaging_rpm.py apport | |
101 | cp %{SOURCE2} apport/packaging_pld.py | |
102 | ln -s packaging_pld.py apport/packaging_impl.py | |
103 | ||
104 | %build | |
7ce35e5c PZ |
105 | python setup.py build |
106 | %{__make} -C po | |
107 | %{__make} -C gtk | |
108 | %{__make} -C qt4 | |
f8d8a6b1 | 109 | |
7ce35e5c | 110 | #%{__make} -C doc |
7ce35e5c PZ |
111 | |
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | python setup.py install \ | |
115 | --optimize=2 \ | |
116 | --root=$RPM_BUILD_ROOT \ | |
117 | --install-scripts %{_datadir}/apport | |
118 | ||
119 | %py_postclean | |
120 | ||
121 | # Do the man pages | |
122 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
123 | install man/apport-*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
124 | # cron job | |
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 | |
129 | # install initscript | |
130 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
0cf0ec71 ER |
131 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apport |
132 | ||
9adff5a3 ER |
133 | # KDE integration |
134 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/mimelnk/text} | |
135 | # application | |
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} | |
140 | ||
0cf0ec71 | 141 | rm -f $RPM_BUILD_ROOT%{_docdir}/apport/package-hooks.txt |
7ce35e5c PZ |
142 | |
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post | |
7ce35e5c | 147 | /sbin/chkconfig --add apport |
39515a19 | 148 | %service apport restart |
7ce35e5c PZ |
149 | %update_mime_database |
150 | %update_icon_cache hicolor | |
151 | ||
152 | %preun | |
153 | if [ "$1" == "0" ]; then | |
39515a19 ER |
154 | %service apport stop |
155 | /sbin/chkconfig --del apport | |
7ce35e5c PZ |
156 | fi |
157 | ||
7ce35e5c PZ |
158 | %update_mime_database |
159 | %update_icon_cache hicolor | |
160 | ||
161 | %files | |
162 | %defattr(644,root,root,755) | |
0cf0ec71 | 163 | %doc doc/package-hooks.txt |
7ce35e5c PZ |
164 | %dir /var/crash |
165 | %{_mandir}/man1/* | |
166 | %{_iconsdir}/hicolor/*/apps/apport.svg | |
167 | %{_datadir}/mime/packages/apport.xml | |
39515a19 | 168 | %{py_sitescriptdir}/apport-*.egg-info |
7ce35e5c PZ |
169 | %dir %{_datadir}/apport |
170 | %attr(755,root,root) %{_datadir}/apport/apport | |
171 | %attr(755,root,root) %{_datadir}/apport/apport-cli | |
172 | %attr(755,root,root) %{_datadir}/apport/gcc_ice_hook | |
173 | %attr(755,root,root) %{_datadir}/apport/apport-checkreports | |
174 | %attr(755,root,root) %{_datadir}/apport/package_hook | |
175 | %attr(755,root,root) %{_datadir}/apport/kernel_hook | |
176 | %attr(755,root,root) %{_datadir}/apport/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] | |
25bc769a ER |
188 | /etc/cron.daily/apport |
189 | %attr(754,root,root) /etc/rc.d/init.d/apport | |
7ce35e5c PZ |
190 | %dir %{_sysconfdir}/apport |
191 | %config %{_sysconfdir}/apport/crashdb.conf | |
192 | %{_sysconfdir}/apport/blacklist.d | |
193 | ||
194 | %files gtk | |
195 | %defattr(644,root,root,755) | |
196 | %attr(755,root,root) %{_datadir}/apport/apport-gtk | |
197 | %{_datadir}/apport/apport-gtk.glade | |
198 | ||
199 | %files qt | |
200 | %defattr(644,root,root,755) | |
201 | %attr(755,root,root) %{_datadir}/apport/apport-qt | |
202 | %{_datadir}/apport/*.ui | |
9adff5a3 ER |
203 | %{_desktopdir}/apport-qt.desktop |
204 | %{_desktopdir}/apport-qt-mime.desktop | |
205 | %{_datadir}/mimelnk/text/x-apport.desktop | |
7ce35e5c PZ |
206 | |
207 | %files retrace | |
208 | %defattr(644,root,root,755) | |
209 | %{_mandir}/man1/apport-retrace.1* | |
210 | %attr(755,root,root) %{_datadir}/apport/apport-retrace | |
211 | %attr(755,root,root) %{_datadir}/apport/apport-chroot | |
212 | %attr(755,root,root) %{_datadir}/apport/dupdb-admin |