1 |
# (blino) FIXME: switch back to 1 when systemd is installable |
2 |
%define with_systemd 1 |
3 |
|
4 |
%define lib_major 0 |
5 |
%define lib_name %mklibname %{name} %{lib_major} |
6 |
%define libreport %mklibname report %{lib_major} |
7 |
%define libreportgtk %mklibname report-gtk %{lib_major} |
8 |
|
9 |
%define lib_name_devel %mklibname %{name} -d |
10 |
%define lib_report_devel %mklibname report -d |
11 |
|
12 |
%define _disable_ld_no_undefined 1 |
13 |
|
14 |
Summary: Automatic bug detection and reporting tool |
15 |
Name: abrt |
16 |
Version: 2.0.2 |
17 |
Release: %mkrel 7 |
18 |
License: GPLv2+ |
19 |
Group: System/Libraries |
20 |
URL: https://fedorahosted.org/abrt/ |
21 |
Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz |
22 |
Source1: abrt.init |
23 |
Source2: 00abrt.sh |
24 |
Source3: 00abrt.csh |
25 |
Source4: abrt-debuginfo-install |
26 |
Source5: abrt-ccpp.init |
27 |
Source6: abrt-oops.init |
28 |
Patch0: abrt-1.1.14-format_security.patch |
29 |
# (fc) disable package signature check |
30 |
Patch2: abrt_disable_gpgcheck.diff |
31 |
# (blino) use Mageia bugzilla (adapted from Mandriva patch from fcrozat) |
32 |
# (blino) parse /etc/release (adapted from Mandriva patch from fcrozat) |
33 |
# FIXME: check the query is still correct when bugzilla is deployed |
34 |
# FIXME: check the parsing is ok |
35 |
Patch3: abrt-mageiabugzilla.patch |
36 |
# (pt) generate stacktrace twice to get missing -debug packages |
37 |
#Patch5: abrt-1.1.14-debug.patch |
38 |
# (fc) disable nspluginwrapper-i386 (Mdv bug #59237) |
39 |
Patch7: abrt-2.0.2-nspluginwrapper.patch |
40 |
# (fc) fix for non UTF-8 locale |
41 |
Patch8: abrt-2.0.2-nonutf8-locale.patch |
42 |
Patch9: abrt-2.0.2-glib-2.32.patch |
43 |
# (eugeni): disable kernel oops cron plugin by default (mdv #61986) |
44 |
#Patch12: abrt-1.1.14-disable_oops_scanner.patch |
45 |
|
46 |
# Fedora patches |
47 |
Patch100: remove_libreport_python.patch |
48 |
Patch101: blacklist.patch |
49 |
Patch102: allow_bz_for_koops.patch |
50 |
Patch103: retrace_addr.patch |
51 |
Patch104: retrace_client_flush.patch |
52 |
#Patch105: prgname.patch |
53 |
BuildRequires: dbus-devel libdbus-glib-devel |
54 |
BuildRequires: gtk2-devel |
55 |
BuildRequires: curl-devel |
56 |
BuildRequires: rpm-devel |
57 |
BuildRequires: sqlite-devel > 3.0 |
58 |
BuildRequires: desktop-file-utils |
59 |
#BuildRequires: nss-devel |
60 |
BuildRequires: libnotify-devel |
61 |
BuildRequires: xmlrpc-c-devel |
62 |
BuildRequires: xmlrpc-c |
63 |
BuildRequires: file-devel |
64 |
BuildRequires: python-devel |
65 |
BuildRequires: gettext |
66 |
BuildRequires: polkit-1-devel |
67 |
BuildRequires: libzip-devel, libtar-devel, bzip2-devel, zlib-devel |
68 |
BuildRequires: intltool |
69 |
BuildRequires: gnome-common |
70 |
BuildRequires: bison |
71 |
BuildRequires: asciidoc |
72 |
BuildRequires: xmlto |
73 |
BuildRequires: libgnome-keyring-devel |
74 |
BuildRequires: gettext-devel |
75 |
%if %{?with_systemd} |
76 |
BuildRequires: systemd-units |
77 |
%endif |
78 |
Requires: %{lib_name} >= %{version}-%{release} |
79 |
Requires(pre): rpm-helper |
80 |
Requires(post): rpm-helper |
81 |
Requires(preun): rpm-helper |
82 |
Requires(postun): rpm-helper |
83 |
Obsoletes: abrt-plugin-catcut < 1.1.13 |
84 |
Obsoletes: abrt-plugin-sqlite3 < 1.1.18 |
85 |
# required for transition from 1.1.13, can be removed after some time |
86 |
Obsoletes: abrt-plugin-runapp < 1.1.18 |
87 |
Obsoletes: abrt-plugin-filetransfer < 1.1.18 |
88 |
Obsoletes: abrt-plugin-sosreport < 1.1.18 |
89 |
|
90 |
%description |
91 |
%{name} is a tool to help users to detect defects in applications and |
92 |
to create a bug report with all informations needed by maintainer to fix it. |
93 |
It uses plugin system to extend its functionality. |
94 |
|
95 |
%pre |
96 |
%_pre_useradd %{name} %{_sysconfdir}/%{name} /bin/nologin |
97 |
%_pre_groupadd %{name} %{name} |
98 |
|
99 |
%post |
100 |
%_post_service %{name}d |
101 |
%if %{?with_systemd} |
102 |
# Enable (but don't start) the units by default |
103 |
/bin/systemctl enable %{name}d.service >/dev/null 2>&1 || : |
104 |
%endif |
105 |
|
106 |
%posttrans |
107 |
service abrtd condrestart >/dev/null 2>&1 || : |
108 |
|
109 |
%preun |
110 |
%_preun_service %{name}d |
111 |
%if %{?with_systemd} |
112 |
if [ "$1" -eq "0" ] ; then |
113 |
/bin/systemctl stop %{name}d.service >/dev/null 2>&1 || : |
114 |
/bin/systemctl disable %{name}d.service >/dev/null 2>&1 || : |
115 |
fi |
116 |
%endif |
117 |
|
118 |
%postun |
119 |
%_postun_userdel %{name} |
120 |
%_postun_groupdel %{name} %{name} |
121 |
%if %{?with_systemd} |
122 |
if [ $1 -ge 1 ] ; then |
123 |
# On upgrade, reload init system configuration if we changed unit files |
124 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
125 |
fi |
126 |
%endif |
127 |
|
128 |
%files -f %{name}.lang |
129 |
%defattr(-,root,root,-) |
130 |
%doc README COPYING |
131 |
#systemd |
132 |
%if %{?with_systemd} |
133 |
/lib/systemd/system/%{name}d.service |
134 |
%endif |
135 |
%{_sbindir}/%{name}d |
136 |
%{_sbindir}/%{name}-server |
137 |
%{_bindir}/%{name}-debuginfo-install |
138 |
%{_bindir}/%{name}-action-analyze-core.py |
139 |
%{_bindir}/%{name}-handle-upload |
140 |
%{_bindir}/%{name}-handle-crashdump |
141 |
%{_bindir}/%{name}-action-save-package-data |
142 |
%{_bindir}/%{name}-retrace-client |
143 |
%{_bindir}/bug-reporting-wizard |
144 |
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf |
145 |
%config(noreplace) %{_sysconfdir}/%{name}/gpg_keys |
146 |
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-%{name}.conf |
147 |
%config(noreplace) %{_sysconfdir}/%{name}/%{name}_event.conf |
148 |
%ghost %attr(0666, -, -) %{_localstatedir}/run/%{name}/abrt.socket |
149 |
%ghost %attr(0644, -, -) %{_localstatedir}/run/%{name}d.pid |
150 |
%{_initrddir}/%{name}d |
151 |
#%dir %attr(0755, %{name}, %{name}) %{_localstatedir}/cache/%{name} |
152 |
%dir /var/run/%{name} |
153 |
%dir %{_sysconfdir}/%{name} |
154 |
%dir %{_sysconfdir}/%{name}/plugins |
155 |
%dir %{_sysconfdir}/%{name}/events.d |
156 |
%dir %{_sysconfdir}/%{name}/events |
157 |
%{_mandir}/man8/%{name}d.8.* |
158 |
%{_mandir}/man5/%{name}.conf.5.* |
159 |
%{_mandir}/man5/%{name}_event.conf.5.* |
160 |
%{_mandir}/man7/%{name}-plugins.7.* |
161 |
%{_datadir}/dbus-1/system-services/com.redhat.%{name}.service |
162 |
|
163 |
#-------------------------------------------------------------------- |
164 |
|
165 |
%package -n %{lib_name} |
166 |
Summary: Libraries for %{name} |
167 |
Group: System/Libraries |
168 |
|
169 |
%description -n %{lib_name} |
170 |
Libraries for %{name}. |
171 |
|
172 |
%files -n %{lib_name} |
173 |
%defattr(-,root,root,-) |
174 |
%{_libdir}/libabrt*.so.* |
175 |
%{_libdir}/libbtparser.so.* |
176 |
|
177 |
#-------------------------------------------------------------------- |
178 |
|
179 |
%package -n %{lib_name_devel} |
180 |
Summary: Development libraries for %{name} |
181 |
Group: Development/C |
182 |
Requires: %{lib_name} = %{version}-%{release} |
183 |
Requires: abrt = %{version}-%{release} |
184 |
Obsoletes: %{_lib}abrt0-devel |
185 |
|
186 |
%description -n %{lib_name_devel} |
187 |
Development libraries and headers for %{name}. |
188 |
|
189 |
%files -n %{lib_name_devel} |
190 |
%defattr(-,root,root,-) |
191 |
%{_includedir}/abrt/* |
192 |
%{_includedir}/btparser/* |
193 |
%{_libdir}/libabrt*.so |
194 |
%{_libdir}/libbtparser.so |
195 |
#FIXME: this should go to libreportgtk-devel package |
196 |
%{_libdir}/libreportgtk.so |
197 |
%{_libdir}/pkgconfig/%{name}.pc |
198 |
%{_libdir}/pkgconfig/btparser.pc |
199 |
|
200 |
#-------------------------------------------------------------------- |
201 |
|
202 |
%package gui |
203 |
Summary: %{name}'s gui |
204 |
Group: Graphical desktop/Other |
205 |
Requires: %{name} = %{version}-%{release} |
206 |
Requires: dbus-python, pygtk2.0, pygtk2.0-libglade |
207 |
Requires: python-gobject |
208 |
Requires: gnome-python-desktop |
209 |
|
210 |
%description gui |
211 |
GTK+ wizard for convenient bug reporting. |
212 |
|
213 |
%files gui |
214 |
%defattr(-,root,root,-) |
215 |
%{_bindir}/%{name}-gui |
216 |
%{_datadir}/%{name} |
217 |
%{_datadir}/applications/%{name}.desktop |
218 |
%{_datadir}/icons/hicolor/*/*/*.png |
219 |
%{_bindir}/%{name}-applet |
220 |
%{_sysconfdir}/xdg/autostart/%{name}-applet.desktop |
221 |
|
222 |
#-------------------------------------------------------------------- |
223 |
|
224 |
%package addon-ccpp |
225 |
Summary: %{name}'s C/C++ addon |
226 |
Group: System/Libraries |
227 |
Requires: elfutils |
228 |
Requires: %{name} = %{version}-%{release} |
229 |
|
230 |
%description addon-ccpp |
231 |
This package contains hook for C/C++ crashed programs and %{name}'s C/C++ |
232 |
analyzer plugin. |
233 |
|
234 |
%post addon-ccpp |
235 |
chown -R abrt:abrt %{_localstatedir}/cache/abrt-di |
236 |
#if [ $1 -eq 1 ]; then |
237 |
/sbin/chkconfig --add abrt-ccpp |
238 |
#fi |
239 |
|
240 |
%if %{?with_systemd} |
241 |
if [ "$1" -eq "0" ] ; then |
242 |
/bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || : |
243 |
/bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || : |
244 |
fi |
245 |
%endif |
246 |
|
247 |
%posttrans addon-ccpp |
248 |
service abrt-ccpp condrestart >/dev/null 2>&1 || : |
249 |
|
250 |
%preun addon-ccpp |
251 |
if [ "$1" -eq "0" ] ; then |
252 |
service abrt-ccpp stop >/dev/null 2>&1 |
253 |
/sbin/chkconfig --del abrt-ccpp |
254 |
fi |
255 |
|
256 |
#systemd (not tested): |
257 |
%if %{?with_systemd} |
258 |
if [ "$1" -eq "0" ] ; then |
259 |
/bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || : |
260 |
/bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || : |
261 |
fi |
262 |
%endif |
263 |
|
264 |
%files addon-ccpp |
265 |
%defattr(-,root,root,-) |
266 |
%config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf |
267 |
%dir %attr(0775, abrt, abrt) %{_localstatedir}/cache/abrt-di |
268 |
%{_initrddir}/abrt-ccpp |
269 |
%{_libdir}/abrt-hook-ccpp |
270 |
%{_sysconfdir}/profile.d/00abrt.* |
271 |
%{_bindir}/abrt-action-analyze-c |
272 |
%{_bindir}/abrt-action-trim-files |
273 |
%attr(2755, abrt, abrt) %{_bindir}/abrt-action-install-debuginfo |
274 |
%{_bindir}/abrt-action-install-debuginfo.py* |
275 |
%{_bindir}/abrt-action-generate-backtrace |
276 |
%{_bindir}/abrt-action-analyze-backtrace |
277 |
%{_bindir}/abrt-action-list-dsos.py* |
278 |
%{_sysconfdir}/%{name}/events.d/ccpp_events.conf |
279 |
%{_sysconfdir}/%{name}/events/analyze_LocalGDB.xml |
280 |
%{_sysconfdir}/%{name}/events/reanalyze_LocalGDB.xml |
281 |
%{_sysconfdir}/%{name}/events/analyze_RetraceServer.xml |
282 |
%{_sysconfdir}/%{name}/events/reanalyze_RetraceServer.xml |
283 |
%{_mandir}/man*/abrt-action-trim-files.* |
284 |
%{_mandir}/man*/abrt-action-generate-backtrace.* |
285 |
%{_mandir}/man*/abrt-action-analyze-backtrace.* |
286 |
|
287 |
#-------------------------------------------------------------------- |
288 |
|
289 |
%package addon-kerneloops |
290 |
Summary: %{name}'s kerneloops addon |
291 |
Group: System/Libraries |
292 |
Requires: curl |
293 |
Requires: %{name} = %{version}-%{release} |
294 |
#Obsoletes: kerneloops |
295 |
|
296 |
%description addon-kerneloops |
297 |
This package contains plugin for collecting kernel crash information |
298 |
and reporter plugin which sends this information to specified server, |
299 |
usually to kerneloops.org. |
300 |
|
301 |
%post addon-kerneloops |
302 |
if [ $1 -eq 1 ]; then |
303 |
/sbin/chkconfig --add abrt-oops |
304 |
fi |
305 |
|
306 |
%posttrans addon-kerneloops |
307 |
service abrt-oops condrestart >/dev/null 2>&1 || : |
308 |
|
309 |
%preun addon-kerneloops |
310 |
if [ "$1" -eq "0" ] ; then |
311 |
service abrt-oops stop >/dev/null 2>&1 |
312 |
/sbin/chkconfig --del abrt-oops |
313 |
fi |
314 |
#systemd (not tested): |
315 |
%if %{?with_systemd} |
316 |
if [ "$1" -eq "0" ] ; then |
317 |
/bin/systemctl stop abrt-oops.service >/dev/null 2>&1 || : |
318 |
/bin/systemctl disable abrt-oops.service >/dev/null 2>&1 || : |
319 |
fi |
320 |
%endif |
321 |
|
322 |
%files addon-kerneloops |
323 |
%defattr(-,root,root,-) |
324 |
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf |
325 |
%config(noreplace) %{_sysconfdir}/%{name}/events.d/koops_events.conf |
326 |
%{_sysconfdir}/%{name}/events/report_Kerneloops.xml |
327 |
%{_initrddir}/abrt-oops |
328 |
%{_mandir}/man7/abrt-KerneloopsReporter.7.* |
329 |
%{_bindir}/abrt-dump-oops |
330 |
%{_bindir}/abrt-action-analyze-oops |
331 |
%{_bindir}/abrt-action-kerneloops |
332 |
|
333 |
#-------------------------------------------------------------------- |
334 |
|
335 |
%package plugin-logger |
336 |
Summary: %{name}'s logger reporter plugin |
337 |
Group: System/Libraries |
338 |
Requires: %{name} = %{version}-%{release} |
339 |
|
340 |
%description plugin-logger |
341 |
The simple reporter plugin which writes a report to a specified file. |
342 |
|
343 |
%files plugin-logger |
344 |
%defattr(-,root,root,-) |
345 |
%{_sysconfdir}/%{name}/events/report_Logger.conf |
346 |
%{_bindir}/abrt-action-print |
347 |
%{_mandir}/man7/%{name}-Logger.7.* |
348 |
%{_mandir}/man*/%{name}-action-print.* |
349 |
|
350 |
#-------------------------------------------------------------------- |
351 |
|
352 |
%package plugin-mailx |
353 |
Summary: %{name}'s mailx reporter plugin |
354 |
Group: System/Libraries |
355 |
Requires: %{name} = %{version}-%{release} |
356 |
Requires: mailx |
357 |
|
358 |
%description plugin-mailx |
359 |
The simple reporter plugin which sends a report via mailx to a specified |
360 |
email address. |
361 |
|
362 |
%files plugin-mailx |
363 |
%defattr(-,root,root,-) |
364 |
%{_sysconfdir}/%{name}/events/report_Mailx.xml |
365 |
%{_sysconfdir}/%{name}/events.d/mailx_events.conf |
366 |
%{_bindir}/abrt-action-mailx |
367 |
%{_mandir}/man7/%{name}-Mailx.7.* |
368 |
%{_mandir}/man*/%{name}-action-mailx.* |
369 |
|
370 |
#-------------------------------------------------------------------- |
371 |
|
372 |
%package plugin-bugzilla |
373 |
Summary: %{name}'s bugzilla plugin |
374 |
Group: System/Libraries |
375 |
Requires: %{name} = %{version}-%{release} |
376 |
|
377 |
%description plugin-bugzilla |
378 |
Plugin to report bugs into the bugzilla. |
379 |
|
380 |
%files plugin-bugzilla |
381 |
%defattr(-,root,root,-) |
382 |
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf |
383 |
%{_sysconfdir}/%{name}/events/report_Bugzilla.xml |
384 |
%config(noreplace) %{_sysconfdir}/%{name}/events/report_Bugzilla.conf |
385 |
# FIXME: remove with the old gui |
386 |
%{_mandir}/man7/abrt-Bugzilla.7.* |
387 |
%{_bindir}/abrt-action-bugzilla |
388 |
|
389 |
#-------------------------------------------------------------------- |
390 |
|
391 |
%package plugin-reportuploader |
392 |
Summary: %{name}'s ticketuploader plugin |
393 |
Group: System/Libraries |
394 |
Requires: %{name} = %{version}-%{release} |
395 |
Obsoletes: plugin-ticketuploader < 1.1.13 |
396 |
Provides: plugin-ticketuploader = %{version}-%{release} |
397 |
|
398 |
%description plugin-reportuploader |
399 |
Plugin to report bugs into anonymous FTP site associated with ticketing system. |
400 |
|
401 |
%files plugin-reportuploader |
402 |
%defattr(-,root,root,-) |
403 |
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Upload.conf |
404 |
%{_mandir}/man7/abrt-Upload.7.* |
405 |
%{_bindir}/abrt-action-upload |
406 |
|
407 |
#-------------------------------------------------------------------- |
408 |
|
409 |
%package addon-python |
410 |
Summary: %{name}'s addon for catching and analyzing Python exceptions |
411 |
Group: System/Libraries |
412 |
Requires: %{name} = %{version}-%{release} |
413 |
|
414 |
%description addon-python |
415 |
This package contains python hook and python analyzer plugin for handling |
416 |
uncaught exception in python programs. |
417 |
|
418 |
%files addon-python |
419 |
%defattr(-,root,root,-) |
420 |
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Python.conf |
421 |
%{_bindir}/abrt-action-analyze-python |
422 |
%{py_puresitedir}/abrt*.py* |
423 |
%{py_puresitedir}/*.pth |
424 |
|
425 |
#-------------------------------------------------------------------- |
426 |
|
427 |
%package cli |
428 |
Summary: %{name}'s command line interface |
429 |
Group: Graphical desktop/Other |
430 |
Requires: %{name} = %{version}-%{release} |
431 |
Requires: %{name}-addon-kerneloops |
432 |
Requires: %{name}-addon-ccpp, %{name}-addon-python |
433 |
Requires: %{name}-plugin-bugzilla, %{name}-plugin-logger |
434 |
|
435 |
%description cli |
436 |
This package contains simple command line client for controlling abrt |
437 |
daemon over the sockets. |
438 |
|
439 |
%files cli |
440 |
%defattr(-,root,root,-) |
441 |
%{_bindir}/abrt-cli |
442 |
%{_mandir}/man1/abrt-cli.1.* |
443 |
%{_sysconfdir}/bash_completion.d/abrt-cli.bash |
444 |
|
445 |
#-------------------------------------------------------------------- |
446 |
|
447 |
%package desktop |
448 |
Summary: Virtual package to install all necessary packages for usage from desktop environment |
449 |
Group: Graphical desktop/Other |
450 |
# This package gets installed when anything requests bug-buddy - |
451 |
# happens when users upgrade Fn to Fn+1; |
452 |
# or if user just wants "typical desktop installation". |
453 |
# Installing abrt-desktop should result in the abrt which works without |
454 |
# any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed) |
455 |
Requires: %{name} = %{version}-%{release} |
456 |
Requires: %{name}-addon-kerneloops |
457 |
Requires: %{name}-addon-ccpp, %{name}-addon-python |
458 |
# Default config of addon-ccpp requires gdb |
459 |
Requires: gdb >= 7.0-3 |
460 |
Requires: %{name}-gui |
461 |
Requires: %{name}-plugin-logger, %{name}-plugin-bugzilla |
462 |
#Obsoletes: bug-buddy |
463 |
#Provides: bug-buddy |
464 |
|
465 |
%description desktop |
466 |
Virtual package to make easy default installation on desktop environments. |
467 |
|
468 |
%files desktop |
469 |
%defattr(-,root,root,-) |
470 |
|
471 |
#-------------------------------------------------------------------- |
472 |
|
473 |
%package -n %libreport |
474 |
Summary: Libraries for reporting crashes to different targets |
475 |
Group: System/Libraries |
476 |
|
477 |
%description -n %libreport |
478 |
Libraries providing API for reporting different problems in applications |
479 |
to different bug targets like bugzilla, ftp, trac, etc... |
480 |
|
481 |
%files -n %libreport |
482 |
%defattr(-,root,root,-) |
483 |
%{_libdir}/libreport.so.%{lib_major}* |
484 |
|
485 |
#-------------------------------------------------------------------- |
486 |
|
487 |
%package -n %lib_report_devel |
488 |
Summary: Development libraries and headers for libreport |
489 |
Group: System/Libraries |
490 |
|
491 |
%description -n %lib_report_devel |
492 |
Development libraries and headers for libreport. |
493 |
|
494 |
%files -n %lib_report_devel |
495 |
%defattr(-,root,root,-) |
496 |
%{_includedir}/report/* |
497 |
%{_libdir}/libreport.so |
498 |
|
499 |
#-------------------------------------------------------------------- |
500 |
# |
501 |
#%package -n libreport-python |
502 |
#%Summary: Python bindings for report-libs. |
503 |
#%Group: System/Libraries |
504 |
# |
505 |
#%description -n libreport-python |
506 |
#Python bindings for report-libs. |
507 |
# |
508 |
#%files -n libreport-python |
509 |
#%defattr(-,root,root,-) |
510 |
#%{python_sitearch}/report/* |
511 |
# |
512 |
#-------------------------------------------------------------------- |
513 |
|
514 |
%package -n %libreportgtk |
515 |
Summary: GTK frontend for libreport |
516 |
Group: System/Libraries |
517 |
|
518 |
%description -n %libreportgtk |
519 |
Applications for reporting bugs using libreport backend. |
520 |
|
521 |
%files -n %libreportgtk |
522 |
%defattr(-,root,root,-) |
523 |
%{_libdir}/libreportgtk.so.%{lib_major}* |
524 |
|
525 |
#-------------------------------------------------------------------- |
526 |
|
527 |
%package retrace-server |
528 |
Summary: %{name}'s retrace server using HTTP protocol |
529 |
Group: Graphical desktop/Other |
530 |
Requires: abrt-addon-ccpp |
531 |
Requires: gdb >= 7.0-3 |
532 |
Requires: apache-mod_wsgi, apache-mod_ssl, python-webob |
533 |
Requires: mock, xz, elfutils, createrepo |
534 |
Requires(preun): /sbin/install-info |
535 |
Requires(post): /sbin/install-info |
536 |
|
537 |
%post retrace-server |
538 |
/sbin/install-info %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || : |
539 |
/usr/sbin/usermod -G mock apache 2> /dev/null || : |
540 |
|
541 |
%preun retrace-server |
542 |
if [ "$1" = 0 ]; then |
543 |
/sbin/install-info --delete %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || : |
544 |
fi |
545 |
|
546 |
%description retrace-server |
547 |
The retrace server provides a coredump analysis and backtrace |
548 |
generation service over a network using HTTP protocol. |
549 |
|
550 |
%files retrace-server |
551 |
%defattr(-,root,root,-) |
552 |
%config(noreplace) %{_sysconfdir}/%{name}/retrace.conf |
553 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/retrace_httpd.conf |
554 |
%config(noreplace) %{_sysconfdir}/yum.repos.d/retrace.repo |
555 |
%dir %attr(0775, apache, abrt) %{_localstatedir}/spool/abrt-retrace |
556 |
%dir %attr(0755, abrt, abrt) %{_localstatedir}/cache/abrt-retrace |
557 |
%dir %attr(0755, abrt, abrt) %{_localstatedir}/log/abrt-retrace |
558 |
%caps(cap_setuid=ep) %{_bindir}/abrt-retrace-worker |
559 |
%{_bindir}/abrt-retrace-cleanup |
560 |
%{_bindir}/abrt-retrace-reposync |
561 |
%{_bindir}/coredump2packages |
562 |
%{py_puresitedir}/retrace.py* |
563 |
%{_datadir}/abrt-retrace/*.py* |
564 |
%{_datadir}/abrt-retrace/*.wsgi |
565 |
%{_datadir}/abrt-retrace/plugins/*.py* |
566 |
%{_infodir}/abrt-retrace-server* |
567 |
|
568 |
#-------------------------------------------------------------------- |
569 |
|
570 |
%prep |
571 |
%setup -q |
572 |
%apply_patches |
573 |
|
574 |
%build |
575 |
NOCONFIGURE=yes gnome-autogen.sh |
576 |
%configure2_5x \ |
577 |
%if !%{with_systemd} |
578 |
--without-systemdsystemunitdir \ |
579 |
%endif |
580 |
--disable-rpath |
581 |
%make |
582 |
|
583 |
%install |
584 |
rm -rf %{buildroot} |
585 |
%makeinstall_std |
586 |
%find_lang %{name} |
587 |
|
588 |
# remove all .la and .a files |
589 |
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f |
590 |
mkdir -p %{buildroot}/%{_initrddir} |
591 |
install -m 755 %SOURCE1 %{buildroot}/%{_initrddir}/%{name}d |
592 |
install -m 755 %SOURCE5 %{buildroot}/%{_initrddir}/%{name}-ccpp |
593 |
install -m 755 %SOURCE6 %{buildroot}/%{_initrddir}/%{name}-oops |
594 |
mkdir -p %{buildroot}/var/cache/%{name}-di |
595 |
mkdir -p %{buildroot}/var/run/%{name} |
596 |
mkdir -p %{buildroot}/var/spool/%{name} |
597 |
mkdir -p %{buildroot}/var/spool/%{name}-retrace |
598 |
mkdir -p %{buildroot}/var/cache/%{name}-retrace |
599 |
mkdir -p %{buildroot}/var/log/%{name}-retrace |
600 |
mkdir -p %{buildroot}/var/spool/%{name}-upload |
601 |
|
602 |
sed -i 's!@libexec@!%_libdir!' %{buildroot}/%{_initrddir}/%{name}-ccpp |
603 |
|
604 |
# remove fedora gpg key |
605 |
rm -f %{buildroot}%{_sysconfdir}/abrt/gpg_keys |
606 |
touch %{buildroot}%{_sysconfdir}/abrt/gpg_keys |
607 |
|
608 |
# install ulimit disabler |
609 |
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/ |
610 |
install -m755 %SOURCE2 %SOURCE3 %{buildroot}%{_sysconfdir}/profile.d/ |
611 |
|
612 |
desktop-file-install \ |
613 |
--dir %{buildroot}%{_sysconfdir}/xdg/autostart \ |
614 |
src/applet/%{name}-applet.desktop |
615 |
|
616 |
# replace with our own version |
617 |
cat %{SOURCE4} > %{buildroot}/usr/bin/%{name}-debuginfo-install |
618 |
|
619 |
#remove RH specific plugins |
620 |
rm -f %{buildroot}%{_libdir}/%{name}/{RHTSupport.glade,libRHTSupport.so} |
621 |
rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/RHTSupport.conf |
622 |
rm -f %{buildroot}%{_sysconfdir}/%{name}/events.d/rhtsupport_events.conf |
623 |
rm -f %{buildroot}%{_sysconfdir}/%{name}/events/report_RHTSupport.xml |
624 |
rm -f %{buildroot}%{_bindir}/%{name}-action-rhtsupport |
625 |
|
626 |
# After everything is installed, remove info dir |
627 |
rm -f %{buildroot}%{_infodir}/dir |