]> git.pld-linux.org Git - packages/abrt.git/blob - abrt.spec
- release 2
[packages/abrt.git] / abrt.spec
1 #
2 # TODO:
3 # - handle obsolete packages: abrt-plugin-{catcut,rhfastcheck,rhticket,ticketuploader}
4 # - SysV init scripts for -addon-ccpp, -addon-kerneloops, -addon-pstoreoops, -addon-upload-watch, -addon-vmcore, -addon-xorg
5 # - teach build system to use python3.2+ __pycache__
6 #
7 # Conditional build:
8 %bcond_without  tests   # disable pythontests
9 #
10 %define         libreport_ver   2.6.0
11 Summary:        Automatic bug detection and reporting tool
12 Summary(pl.UTF-8):      Narzędzie do automatycznego wykrywania i zgłaszania błędów
13 Name:           abrt
14 Version:        2.7.1
15 Release:        2
16 License:        GPL v2+
17 Group:          Applications/System
18 Source0:        https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
19 # Source0-md5:  fee268003142e35fc72fa8a52941dd80
20 Source1:        %{name}.init
21 Patch0:         %{name}-rpm5.patch
22 Patch1:         %{name}-rpm45.patch
23 Patch2:         format_security.patch
24 Patch3:         %{name}-link.patch
25 Patch4:         profile.sh.patch
26 URL:            https://fedorahosted.org/abrt/
27 BuildRequires:  asciidoc
28 BuildRequires:  autoconf >= 2.50
29 BuildRequires:  automake
30 BuildRequires:  dbus-devel
31 BuildRequires:  docbook-dtd45-xml
32 BuildRequires:  gettext-tools >= 0.17
33 BuildRequires:  glib2-devel >= 1:2.43
34 BuildRequires:  gsettings-desktop-schemas-devel >= 3.15.1
35 BuildRequires:  gtk+3-devel >= 3.0
36 BuildRequires:  hawkey-devel
37 BuildRequires:  intltool >= 0.35.0
38 BuildRequires:  json-c-devel
39 BuildRequires:  libmagic-devel
40 BuildRequires:  libnotify-devel >= 0.7.0
41 BuildRequires:  libreport-devel >= %{libreport_ver}
42 BuildRequires:  libreport-gtk-devel >= %{libreport_ver}
43 BuildRequires:  libreport-web-devel >= %{libreport_ver}
44 BuildRequires:  libselinux-devel
45 BuildRequires:  libtool
46 BuildRequires:  libxml2-devel >= 2
47 BuildRequires:  nss-devel
48 BuildRequires:  pkgconfig
49 BuildRequires:  polkit-devel
50 BuildRequires:  python-devel >= 2
51 BuildRequires:  python-modules >= 2
52 %{?with_tests:BuildRequires:    python-nose}
53 BuildRequires:  python3-devel >= 3
54 BuildRequires:  python3-modules >= 3
55 BuildRequires:  rpm-devel >= 4.5-28
56 BuildRequires:  rpm-pythonprov
57 BuildRequires:  rpmbuild(macros) >= 1.219
58 BuildRequires:  satyr-devel
59 BuildRequires:  systemd-devel
60 BuildRequires:  xmlto
61 BuildRequires:  xorg-lib-libICE-devel
62 BuildRequires:  xorg-lib-libSM-devel
63 Requires(postun):       /usr/sbin/groupdel
64 Requires(postun):       /usr/sbin/userdel
65 Requires(pre):  /bin/id
66 Requires(pre):  /usr/bin/getgid
67 Requires(pre):  /usr/sbin/groupadd
68 Requires(pre):  /usr/sbin/useradd
69 Requires:       %{name}-libs = %{version}-%{release}
70 Provides:       group(abrt)
71 Provides:       user(abrt)
72 Obsoletes:      abrt-plugin-filetransfer
73 Obsoletes:      abrt-plugin-runapp
74 Obsoletes:      abrt-plugin-sosreport
75 Obsoletes:      abrt-plugin-sqlite3
76 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77
78 %description
79 ABRT is a tool to help users to detect defects in applications and to
80 create a bug report with all informations needed by maintainer to fix
81 it. It uses plugin system to extend its functionality.
82
83 %description -l pl.UTF-8
84 ABRT to narzędzie pomagające użytkownikom w wykrywaniu defektów w
85 aplikacjach oraz tworzeniu raportów błędów ze wszystkimi informacjami
86 potrzebnymi utrzymującemu pakiet do poprawienia go. Wykorzystuje
87 system wtyczek do rozszerzania funkcjonalności.
88
89 %package -n bash-completion-abrt
90 Summary:        Bash completion for abrt command
91 Summary(pl.UTF-8):      Bashowe dopełnianie parametrów dla polecenia abrt
92 Group:          Applications/Shells
93 Requires:       %{name} = %{version}-%{release}
94 Requires:       bash-completion
95
96 %description -n bash-completion-abrt
97 Bash completion for abrt command.
98
99 %description -n bash-completion-abrt -l pl.UTF-8
100 Bashowe dopełnianie parametrów dla polecenia abrt.
101
102 %package libs
103 Summary:        ABRT shared library
104 Summary(pl.UTF-8):      Biblioteka współdzielona ABRT
105 Group:          Libraries
106 Requires:       glib2 >= 1:2.43
107 Requires:       libreport >= %{libreport_ver}
108
109 %description libs
110 ABRT shared library.
111
112 %description libs -l pl.UTF-8
113 Biblioteka współdzielona ABRT.
114
115 %package devel
116 Summary:        Header files for ABRT livrary
117 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotekia ABRT
118 Group:          Development/Libraries
119 Requires:       %{name}-libs = %{version}-%{release}
120 Requires:       glib2-devel >= 1:2.43
121 Requires:       libreport-devel >= %{libreport_ver}
122
123 %description devel
124 Header files for ABRT livrary.
125
126 %description devel -l pl.UTF-8
127 Pliki nagłówkowe biblioteki ABRT.
128
129 %package addon-ccpp
130 Summary:        ABRT's C/C++ addon
131 Summary(pl.UTF-8):      Dodatek C/C++ do ABRT
132 Group:          Libraries
133 Requires:       %{name} = %{version}-%{release}
134 Requires:       %{name}-addon-coredump-helper = %{version}-%{release}
135 Requires:       %{name}-retrace-client = %{version}-%{release}
136 Requires:       cpio
137 Requires:       elfutils
138 Requires:       gdb >= 7.0-3
139 Requires:       satyr
140 Requires:       yum-utils
141 Obsoletes:      %{name}-atomic
142
143 %description addon-ccpp
144 This package contains hook for C/C++ crashed programs and abrt's C/C++
145 analyzer plugin.
146
147 %description addon-ccpp -l pl.UTF-8
148 Ten pakiet zawiera punkt zaczepienia dla programów w C/C++, które
149 uległy awarii oraz wtyczkę analizatora C/C++ ABRT.
150
151 %package addon-coredump-helper
152 Summary:        ABRT's /proc/sys/kernel/core_pattern helper
153 Summary(pl.UTF-8):      Program pomocniczy ABRT do /proc/sys/kernel/core_pattern
154 Group:          Libraries
155 Requires:       %{name}-libs = %{version}-%{release}
156
157 %description addon-coredump-helper
158 This package contains hook for C/C++ crashed programs.
159
160 %description addon-coredump-helper -l pl.UTF-8
161 Ten pakiet zawiera uchwyt dla programów w C/C++, które uległy awarii.
162
163 %package addon-kerneloops
164 Summary:        ABRT's kerneloops addon
165 Summary(pl.UTF-8):      Dodatek kerneloops do ABRT
166 Group:          Libraries
167 Requires:       %{name} = %{version}-%{release}
168 Requires:       curl
169 Requires:       libreport-plugin-kerneloops >= %{libreport_ver}
170 Obsoletes:      abrt-plugin-kerneloops
171 Obsoletes:      abrt-plugin-kerneloopsreporter
172 Obsoletes:      kerneloops
173
174 %description addon-kerneloops
175 This package contains plugin for collecting kernel crash information
176 from system log.
177
178 %description addon-kerneloops -l pl.UTF-8
179 Ten pakiet zawiera wtyczkę do zbierania informacji o awarii jądra z
180 logu systemowego.
181
182 %package addon-pstoreoops
183 Summary:        ABRT's pstoreoops addon
184 Summary(pl.UTF-8):      Dodatek pstoreoops do ABRT
185 Group:          Libraries
186 Requires:       %{name}-addon-kerneloops = %{version}-%{release}
187 Obsoletes:      abrt-addon-uefioops
188
189 %description addon-pstoreoops
190 This package contains plugin for collecting kernel oopses from pstore
191 storage.
192
193 %description addon-pstoreoops -l pl.UTF-8
194 Ten pakiet zawiera wtyczkę do zbierania oopsów jądra z danych pstore.
195
196 %package addon-python
197 Summary:        ABRT's addon for catching and analyzing Python 2 exceptions
198 Summary(pl.UTF-8):      Dodatek ABRT do przechwytywania i analizy wyjątków Pythona 2
199 Group:          Libraries
200 Requires:       %{name} = %{version}-%{release}
201 Requires:       %{name}-python = %{version}-%{release}
202 # for detecting package name containing offending file
203 Suggests:       python-rpm
204 # for logging to journal
205 Suggests:       python-systemd
206 Obsoletes:      gnome-python2-bugbuddy
207
208 %description addon-python
209 This package contains Python hook and Python analyzer plugin for
210 handling uncaught exception in Python 2 programs.
211
212 %description addon-python -l pl.UTF-8
213 Ten pakiet zawiera pythonowy punkt zaczepienia oraz wtyczkę
214 analizatora Pythona do obsługi nie obsłużonych wyjątków w programach w
215 Pythonie 2.
216
217 %package addon-python3
218 Summary:        ABRT's addon for catching and analyzing Python 3 exceptions
219 Summary(pl.UTF-8):      Dodatek ABRT do przechwytywania i analizy wyjątków Pythona 3
220 Group:          Libraries
221 Requires:       %{name} = %{version}-%{release}
222 Requires:       %{name}-python3 = %{version}-%{release}
223 # for detecting package name containing offending file (TODO: python3-rpm package)
224 #Suggests:      python3-rpm
225 # for logging to journal (TODO: python3-systemd package)
226 #Suggests:      python3-systemd
227
228 %description addon-python3
229 This package contains Python hook and Python analyzer plugin for
230 handling uncaught exception in Python 3 programs.
231
232 %description addon-python3 -l pl.UTF-8
233 Ten pakiet zawiera pythonowy punkt zaczepienia oraz wtyczkę
234 analizatora Pythona do obsługi nie obsłużonych wyjątków w programach w
235 Pythonie 3.
236
237 %package addon-upload-watch
238 Summary:        ABRT's upload addon
239 Summary(pl.UTF-8):      Dodatek upload do ABRT
240 Group:          Libraries
241 Requires:       %{name} = %{version}-%{release}
242
243 %description addon-upload-watch
244 This package contains hook for uploaded problems.
245
246 %description addon-upload-watch -l pl.UTF-8
247 Ten pakiet zawiera uchwyt dla problemów przysłanych.
248
249 %package addon-vmcore
250 Summary:        ABRT's vmcore addon
251 Summary(pl.UTF-8):      Dodatek vmcore do ABRT
252 Group:          Libraries
253 Requires:       %{name} = %{version}-%{release}
254 Requires:       %{name}-addon-kerneloops = %{version}-%{release}
255 Requires:       crash
256
257 %description addon-vmcore
258 This package contains plugin for collecting kernel crash information
259 from vmcore files.
260
261 %description addon-vmcore -l pl.UTF-8
262 Ten pakiet zawiera wtyczkę do zbierania informacji o awarii jądra z
263 plików vmcore.
264
265 %package addon-xorg
266 Summary:        ABRT's Xorg addon
267 Summary(pl.UTF-8):      Dodatek Xorg do ABRT
268 Group:          Libraries
269 Requires:       %{name} = %{version}-%{release}
270 Requires:       curl
271
272 %description addon-xorg
273 This package contains plugin for collecting Xorg crash information
274 from Xorg log.
275
276 %description addon-xorg -l pl.UTF-8
277 Ten pakiet zawiera wtyczkę do zbierania informacji o awarii jądra z
278 logu Xorg.
279
280 %package atomic
281 Summary:        Package to make easy default installation on Atomic hosts
282 Summary(pl.UTF-8):      Pakiet ułatwiający domyślną instalację na hostach Atomic
283 Group:          Applications/System
284 Requires:       %{name}-addon-coredump-helper = %{version}-%{release}
285 Obsoletes:      %{name}-addon-ccpp
286
287 %description atomic
288 Package to install all necessary packages for usage from Atomic hosts.
289
290 %description atomic -l pl.UTF-8
291 Pakiet służący do instalacji wszystkich wymaganych pakietów
292 przeznaczonych do użycia z hostów Atomic.
293
294 %package plugin-bodhi
295 Summary:        ABRT's bodhi plugin
296 Summary(pl.UTF-8):      Wtyczka bodhi do ABRT
297 Group:          Libraries
298 Requires:       %{name} = %{version}-%{release}
299 Requires:       libreport-web >= %{libreport_ver}
300 Obsoletes:      libreport-plugin-bodhi
301
302 %description plugin-bodhi
303 Plugin to search for a new updates in bodhi server.
304
305 %description plugin-bodhi -l pl.UTF-8
306 Wtyczka do wyszukiwania nowych uaktualnień na serwerze bodhi.
307
308 %package retrace-client
309 Summary:        ABRT's retrace client
310 Summary(pl.UTF-8):      Klient Retrace dla ABRT
311 Group:          Libraries
312 Requires:       %{name} = %{version}-%{release}
313 Requires:       xz
314
315 %description retrace-client
316 This package contains the client application for Retrace server which
317 is able to analyze C/C++ crashes remotely.
318
319 %description retrace-client -l pl.UTF-8
320 Ten pakiet zawiera aplikację kliencką dla serwera Retrace, który
321 potrafi zdalnie przeanalizować awarię programu w C/C++.
322
323 %package dbus
324 Summary:        ABRT DBus service
325 Summary(pl.UTF-8):      Usługa DBus ABRT
326 Group:          Applications/System
327 Requires:       %{name} = %{version}-%{release}
328 Requires:       libreport >= %{libreport_ver}
329
330 %description dbus
331 ABRT DBus service which provides org.freedesktop.problems API on DBus
332 and uses PolicyKit to authorize to access the problem data.
333
334 %description dbus -l pl.UTF-8
335 Usługa DBus ABRT, udostępniająca poprzez DBus API
336 org.freedesktop.problems, używająca PolicyKit do autoryzacji dostępu
337 do danych o problemach.
338
339 %package python
340 Summary:        ABRT Python 2 API
341 Summary(pl.UTF-8):      API Pythona 2 do ABRT
342 Group:          Libraries/Python
343 Requires:       %{name} = %{version}-%{release}
344 Requires:       python-libreport >= %{libreport_ver}
345
346 %description python
347 High-level API for querying, creating and manipulating problems
348 handled by ABRT in Python 2.
349
350 %description python -l pl.UTF-8
351 Wysokopoziomowe API do odpytywania, tworzenia i obróbki z poziomu
352 Pythona 2 problemów obsługiwanych przez ABRT.
353
354 %package python3
355 Summary:        ABRT Python 3 API
356 Summary(pl.UTF-8):      API Pythona 3 do ABRT
357 Group:          Libraries/Python
358 Requires:       %{name} = %{version}-%{release}
359 Requires:       python3-libreport >= %{libreport_ver}
360
361 %description python3
362 High-level API for querying, creating and manipulating problems
363 handled by ABRT in Python.
364
365 %description python3 -l pl.UTF-8
366 Wysokopoziomowe API do odpytywania, tworzenia i obróbki z poziomu
367 Pythona 3 problemów obsługiwanych przez ABRT.
368
369 %package cli
370 Summary:        ABRT's command line interface
371 Summary(pl.UTF-8):      Interfejs linii poleceń ABRT
372 Group:          Applications/System
373 Requires:       %{name} = %{version}-%{release}
374 # analyzers
375 Requires:       %{name}-addon-ccpp = %{version}-%{release}
376 Requires:       %{name}-addon-kerneloops = %{version}-%{release}
377 Requires:       %{name}-addon-pstoreoops = %{version}-%{release}
378 Requires:       %{name}-addon-python = %{version}-%{release}
379 # reporters
380 Requires:       libreport-plugin-bugzilla >= %{libreport_ver}
381 Requires:       libreport-plugin-logger >= %{libreport_ver}
382
383 %description cli
384 This package contains simple command line client for controling ABRT
385 daemon over the sockets.
386
387 %description cli -l pl.UTF-8
388 Ten pakiet zawiera prostego klienta obsługiwanego z linii poleceń,
389 pozwalającego na sterowanie demonem poprzez gniazda.
390
391 %package gui
392 Summary:        ABRT's GUI
393 Summary(pl.UTF-8):      Graficzny interfejs użytkownika do ABRT
394 Group:          X11/Applications
395 Requires(post,postun):  /sbin/ldconfig
396 Requires(post,postun):  gtk-update-icon-cache
397 Requires(post,postun):  hicolor-icon-theme
398 Requires:       %{name} = %{version}-%{release}
399 Requires:       %{name}-dbus = %{version}-%{release}
400 Requires:       %{name}-gui-libs = %{version}-%{release}
401 Suggests:       gnome-abrt
402 Provides:       abrt-applet = %{version}-%{release}
403 Obsoletes:      abrt-applet < 0.0.5
404 Conflicts:      abrt-applet < 0.0.5
405
406 %description gui
407 GTK+ wizard for convenient bug reporting.
408
409 %description gui -l pl.UTF-8
410 Oparty na GTK+ kreator do wygodnego zgłaszania błędów.
411
412 %package gui-libs
413 Summary:        ABRT's GUI library
414 Summary(pl.UTF-8):      Biblioteka graficznego interfejsu użytkownika ABRT
415 Group:          X11/Libraries
416 Requires:       %{name}-libs = %{version}-%{release}
417 Requires:       gtk+3 >= 3.0
418
419 %description gui-libs
420 ABRT's GUI library.
421
422 %description gui-libs -l pl.UTF-8
423 Biblioteka graficznego interfejsu użytkownika ABRT.
424
425 %package gui-devel
426 Summary:        Header files for ABRT GUI library
427 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki graficznego interfejsu użytkownika ABRT
428 Group:          X11/Development/Libraries
429 Requires:       %{name}-devel = %{version}-%{release}
430 Requires:       %{name}-gui-libs = %{version}-%{release}
431 Requires:       gtk+3-devel >= 3.0
432
433 %description gui-devel
434 Header files for ABRT GUI library.
435
436 %description gui-devel -l pl.UTF-8
437 Pliki nagłówkowe biblioteki graficznego interfejsu użytkownika ABRT.
438
439 %package desktop
440 Summary:        Virtual package to install all necessary packages for usage from desktop environment
441 Summary(pl.UTF-8):      Writualny pakiet do instalacji pakietów potrzebnych do użycia w środowisku graficznym
442 Group:          X11/Applications
443 # This package should be installed when anything requests bug-buddy;
444 # installing abrt-desktop should result in the abrt which works without
445 # any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed)
446 Requires:       %{name} = %{version}-%{release}
447 Requires:       %{name}-addon-ccpp = %{version}-%{release}
448 Requires:       %{name}-addon-kerneloops = %{version}-%{release}
449 Requires:       %{name}-addon-pstoreoops = %{version}-%{release}
450 Requires:       %{name}-addon-python = %{version}-%{release}
451 Requires:       %{name}-addon-vmcore = %{version}-%{release}
452 Requires:       %{name}-addon-xorg = %{version}-%{release}
453 Requires:       %{name}-gui = %{version}-%{release}
454 Requires:       %{name}-plugin-bodhi = %{version}-%{release}
455 Requires:       %{name}-retrace-client = %{version}-%{release}
456 Requires:       libreport-plugin-bugzilla >= %{libreport_ver}
457 Requires:       libreport-plugin-logger >= %{libreport_ver}
458 Requires:       libreport-plugin-ureport >= %{libreport_ver}
459 Provides:       bug-buddy
460 Obsoletes:      bug-buddy
461
462 %description desktop
463 Virtual package to make easy default installation on desktop
464 environments.
465
466 %description desktop -l pl.UTF-8
467 Wirtualny pakiet ułatwiający domyślną instalację w środowiskach
468 graficznych.
469
470 %package console-notification
471 Summary:        ABRT console notification script
472 Summary(pl.UTF-8):      Skrypt ABRT do powiadomień na konsoli
473 Group:          Applications/System
474 Requires:       %{name} = %{version}-%{release}
475 Requires:       %{name}-cli = %{version}-%{release}
476
477 %description console-notification
478 A small script which prints a count of detected problems when someone
479 logs in to the shell.
480
481 %description console-notification -l pl.UTF-8
482 Mały skrypt wypisujący liczbę wykrytych problemów, kiedy ktoś loguje
483 się do powłoki.
484
485 %prep
486 %setup -q
487 %if "%{_rpmversion}" >= "5.0"
488 %patch0 -p1
489 %else
490 %patch1 -p1
491 %endif
492 %patch2 -p1
493 %patch3 -p1
494 %patch4 -p1
495
496 %build
497 %{__libtoolize}
498 %{__aclocal}
499 %{__autoconf}
500 %{__autoheader}
501 %{__automake}
502 %configure \
503         --disable-silent-rules \
504         %{!?with_tests:--without-pythontests} \
505         --with-systemdsystemunitdir=%{systemdunitdir}
506
507 %{__make}
508
509 %install
510 rm -rf $RPM_BUILD_ROOT
511 %{__make} install \
512         DESTDIR=$RPM_BUILD_ROOT \
513         pythondir=%{py_sitescriptdir} \
514         python3dir=%{py3_sitescriptdir}
515
516 %py_postclean
517
518 # obsoleted by pkg-config
519 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
520
521 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/abrtd
522 install -d $RPM_BUILD_ROOT/var/cache/%{name}
523 install -d $RPM_BUILD_ROOT/var/cache/%{name}-di
524 install -d $RPM_BUILD_ROOT/var/run/%{name}
525
526 install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
527 cat > $RPM_BUILD_ROOT%{systemdtmpfilesdir}/abrt.conf <<EOF
528 d /var/run/%{name} 0755 root root -
529 EOF
530
531 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/problem/*.la
532 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/problem/*.la
533 # examples
534 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/problem_examples
535 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/problem_examples
536
537 # fool man verification - report_event.conf.5 belongs to libreport (NOTE: don't package it here)
538 touch $RPM_BUILD_ROOT%{_mandir}/man5/report_event.conf.5
539
540 # empty version of nb,ru
541 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{no,ru_RU}
542 # not supported by glibc yet
543 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ach,aln,bal,ilo}
544
545 %find_lang %{name}
546
547 %clean
548 rm -rf $RPM_BUILD_ROOT
549
550 %pre
551 %groupadd -g 248 abrt
552 %useradd -u 248 -g abrt -d /etc/abrt -s /sbin/nologin abrt
553
554 %post
555 /sbin/chkconfig --add abrtd
556 %service abrtd restart
557 %systemd_post abrtd.service
558
559 %preun
560 if [ "$1" = "0" ]; then
561         %service abrtd stop
562         /sbin/chkconfig --del abrtd
563 fi
564 %systemd_preun abrtd.service
565
566 %postun
567 if [ "$1" = "0" ]; then
568         %userremove abrt
569         %groupremove abrt
570 fi
571
572 %post   libs -p /sbin/ldconfig
573 %postun libs -p /sbin/ldconfig
574
575 %post addon-ccpp
576 %systemd_post abrt-ccpp.service
577 %systemd_post abrt-journal-core.service
578
579 %preun addon-ccpp
580 %systemd_preun abrt-ccpp.service
581 %systemd_preun abrt-journal-core.service
582
583 %post addon-kerneloops
584 %systemd_post abrt-oops.service
585
586 %preun addon-kerneloops
587 %systemd_preun abrt-oops.service
588
589 %post addon-pstoreoops
590 %systemd_post abrt-pstoreoops.service
591
592 %preun addon-pstoreoops
593 %systemd_preun abrt-pstoreoops.service
594
595 %post addon-upload-watch
596 %systemd_post abrt-upload-watch.service
597
598 %preun addon-upload-watch
599 %systemd_preun abrt-upload-watch.service
600
601 %post addon-vmcore
602 %systemd_post abrt-vmcore.service
603
604 %preun addon-vmcore
605 %systemd_preun abrt-vmcore.service
606
607 %post addon-xorg
608 %systemd_post abrt-xorg.service
609
610 %preun addon-xorg
611 %systemd_preun abrt-xorg.service
612
613 %post atomic
614 if [ -f %{_sysconfdir}/%{name}/plugins/CCpp.conf ]; then
615         mv -f %{_sysconfdir}/%{name}/plugins/CCpp.conf %{_sysconfdir}/%{name}/plugins/CCpp.conf.rpmsave.atomic || exit 1
616 fi
617 ln -sf %{_sysconfdir}/%{name}/plugins/CCpp_Atomic.conf %{_sysconfdir}/%{name}/plugins/CCpp.conf
618 if [ -f %{_datadir}/%{name}/conf.d/plugins/CCpp.conf ]; then
619         mv -f %{_datadir}/%{name}/conf.d/plugins/CCpp.conf %{_datadir}/%{name}/conf.d/plugins/CCpp.conf.rpmsave.atomic || exit 1;
620 fi
621 ln -sf %{_datadir}/%{name}/conf.d/plugins/CCpp_Atomic.conf %{_datadir}/%{name}/conf.d/plugins/CCpp.conf
622 %systemd_post abrt-coredump-helper.service
623
624 %preun atomic
625 if [ -L %{_sysconfdir}/%{name}/plugins/CCpp.conf ]; then
626         rm -f %{_sysconfdir}/%{name}/plugins/CCpp.conf
627 fi
628 if [ -L %{_datadir}/%{name}/conf.d/plugins/CCpp.conf ]; then
629         rm -f %{_datadir}/%{name}/conf.d/plugins/CCpp.conf
630 fi
631 if [ -f %{_sysconfdir}/%{name}/plugins/CCpp.conf.rpmsave.atomic ]; then
632         mv -f %{_sysconfdir}/%{name}/plugins/CCpp.conf.rpmsave.atomic %{_sysconfdir}/%{name}/plugins/CCpp.conf || exit 1
633 fi
634 if [ -f %{_datadir}/%{name}/conf.d/plugins/CCpp.conf.rpmsave.atomic ]; then
635         mv -f %{_datadir}/%{name}/conf.d/plugins/CCpp.conf.rpmsave.atomic %{_datadir}/%{name}/conf.d/plugins/CCpp.conf || exit 1
636 fi
637
638 %postun atomic
639 %systemd_postun_with_restart abrt-coredump-helper.service
640
641 %post gui
642 %update_icon_cache hicolor
643
644 %postun gui
645 %update_icon_cache hicolor
646
647 %post   gui-libs -p /sbin/ldconfig
648 %postun gui-libs -p /sbin/ldconfig
649
650 %files -f %{name}.lang
651 %defattr(644,root,root,755)
652 %doc README
653 %attr(755,root,root) %{_bindir}/abrt
654 %attr(755,root,root) %{_bindir}/abrt-action-analyze-python
655 %attr(755,root,root) %{_bindir}/abrt-action-notify
656 %attr(755,root,root) %{_bindir}/abrt-action-save-container-data
657 %attr(755,root,root) %{_bindir}/abrt-action-save-package-data
658 %attr(755,root,root) %{_bindir}/abrt-handle-upload
659 %attr(755,root,root) %{_bindir}/abrt-watch-log
660 %attr(755,root,root) %{_sbindir}/abrt-auto-reporting
661 %attr(755,root,root) %{_sbindir}/abrt-server
662 %attr(755,root,root) %{_sbindir}/abrtd
663 %attr(755,root,root) %{_libexecdir}/abrt-action-generate-machine-id
664 %attr(755,root,root) %{_libexecdir}/abrt-action-ureport
665 %attr(755,root,root) %{_libexecdir}/abrt-handle-event
666 %{py_sitedir}/abrtcli
667 %dir %{_datadir}/%{name}
668 %dir %{_datadir}/%{name}/conf.d
669 %{_datadir}/%{name}/conf.d/abrt.conf
670 %{_datadir}/%{name}/conf.d/abrt-action-save-package-data.conf
671 %{_datadir}/%{name}/conf.d/gpg_keys.conf
672 %dir %{_datadir}/%{name}/conf.d/plugins
673 %{_datadir}/augeas/lenses/abrt.aug
674 %dir %{_sysconfdir}/%{name}
675 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/abrt.conf
676 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/abrt-action-save-package-data.conf
677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/gpg_keys.conf
678 %dir %{_sysconfdir}/%{name}/plugins
679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/abrt_event.conf
680 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/smart_event.conf
681 %attr(754,root,root) /etc/rc.d/init.d/abrtd
682 %{systemdunitdir}/abrtd.service
683 %attr(775,root,abrt) %dir /var/cache/%{name}
684 %dir /var/run/%{name}
685 %{systemdtmpfilesdir}/abrt.conf
686 %{_mandir}/man1/abrt.1*
687 %{_mandir}/man1/abrt-action-analyze-python.1*
688 %{_mandir}/man1/abrt-action-notify.1*
689 %{_mandir}/man1/abrt-action-save-package-data.1*
690 %{_mandir}/man1/abrt-auto-reporting.1*
691 %{_mandir}/man1/abrt-handle-upload.1*
692 %{_mandir}/man1/abrt-server.1*
693 %{_mandir}/man1/abrt-watch-log.1*
694 %{_mandir}/man5/abrt.conf.5*
695 %{_mandir}/man5/abrt-action-save-package-data.conf.5*
696 %{_mandir}/man5/abrt_event.conf.5*
697 %{_mandir}/man5/gpg_keys.conf.5*
698 %{_mandir}/man5/smart_event.conf.5*
699 %{_mandir}/man8/abrtd.8*
700
701 %files -n bash-completion-abrt
702 %defattr(644,root,root,755)
703 /etc/bash_completion.d/abrt.bash_completion
704
705 %files libs
706 %defattr(644,root,root,755)
707 %attr(755,root,root) %{_libdir}/libabrt.so.*.*.*
708 %attr(755,root,root) %ghost %{_libdir}/libabrt.so.0
709
710 %files devel
711 %defattr(644,root,root,755)
712 %attr(755,root,root) %{_libdir}/libabrt.so
713 %dir %{_includedir}/abrt
714 %{_includedir}/abrt/abrt-dbus.h
715 %{_includedir}/abrt/hooklib.h
716 %{_includedir}/abrt/libabrt.h
717 %{_includedir}/abrt/problem_api.h
718 %{_pkgconfigdir}/abrt.pc
719
720 %files addon-ccpp
721 %defattr(644,root,root,755)
722 %attr(755,root,root) %{_bindir}/abrt-action-analyze-backtrace
723 %attr(755,root,root) %{_bindir}/abrt-action-analyze-c
724 %attr(755,root,root) %{_bindir}/abrt-action-analyze-ccpp-local
725 %attr(755,root,root) %{_bindir}/abrt-action-analyze-core
726 %attr(755,root,root) %{_bindir}/abrt-action-analyze-vulnerability
727 %attr(755,root,root) %{_bindir}/abrt-action-generate-backtrace
728 %attr(755,root,root) %{_bindir}/abrt-action-generate-core-backtrace
729 %attr(755,root,root) %{_bindir}/abrt-action-install-debuginfo
730 %attr(755,root,root) %{_bindir}/abrt-action-list-dsos
731 %attr(755,root,root) %{_bindir}/abrt-action-perform-ccpp-analysis
732 %attr(755,root,root) %{_bindir}/abrt-action-trim-files
733 %attr(755,root,root) %{_bindir}/abrt-dump-journal-core
734 %attr(6755,abrt,abrt) %{_libexecdir}/abrt-action-install-debuginfo-to-abrt-cache
735 %attr(755,root,root) %{_libexecdir}/abrt-gdb-exploitable
736 %{_datadir}/%{name}/conf.d/plugins/CCpp.conf
737 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/CCpp.conf
738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/ccpp_event.conf
739 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/gconf_event.conf
740 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/vimrc_event.conf
741 %attr(775,abrt,abrt) %dir %{_localstatedir}/cache/abrt-di
742 #%attr(754,root,root) /etc/rc.d/init.d/abrt-ccpp
743 %{_datadir}/libreport/events/analyze_CCpp.xml
744 %{_datadir}/libreport/events/analyze_LocalGDB.xml
745 %{_datadir}/libreport/events/collect_GConf.xml
746 %{_datadir}/libreport/events/collect_vimrc_system.xml
747 %{_datadir}/libreport/events/collect_vimrc_user.xml
748 %{_datadir}/libreport/events/collect_xsession_errors.xml
749 %{_datadir}/libreport/events/post_report.xml
750 %{systemdunitdir}/abrt-ccpp.service
751 %{systemdunitdir}/abrt-journal-core.service
752 %{_mandir}/man1/abrt-action-analyze-backtrace.1*
753 %{_mandir}/man1/abrt-action-analyze-c.1*
754 %{_mandir}/man1/abrt-action-analyze-ccpp-local.1*
755 %{_mandir}/man1/abrt-action-analyze-core.1*
756 %{_mandir}/man1/abrt-action-analyze-vulnerability.1*
757 %{_mandir}/man1/abrt-action-generate-backtrace.1*
758 %{_mandir}/man1/abrt-action-generate-core-backtrace.1*
759 %{_mandir}/man1/abrt-action-install-debuginfo.1*
760 %{_mandir}/man1/abrt-action-list-dsos.1*
761 %{_mandir}/man1/abrt-action-perform-ccpp-analysis.1*
762 %{_mandir}/man1/abrt-action-trim-files.1*
763 %{_mandir}/man1/abrt-dump-journal-core.1*
764 %{_mandir}/man5/abrt-CCpp.conf.5*
765 %{_mandir}/man5/ccpp_event.conf.5*
766 %{_mandir}/man5/ccpp_retrace_event.conf.5*
767 %{_mandir}/man5/gconf_event.conf.5*
768 %{_mandir}/man5/vimrc_event.conf.5*
769
770 %files addon-coredump-helper
771 %defattr(644,root,root,755)
772 %attr(755,root,root) %{_sbindir}/abrt-install-ccpp-hook
773 %attr(755,root,root) %{_libexecdir}/abrt-hook-ccpp
774 %{_mandir}/man1/abrt-install-ccpp-hook.1*
775
776 %files addon-kerneloops
777 %defattr(644,root,root,755)
778 %attr(755,root,root) %{_bindir}/abrt-action-analyze-oops
779 %attr(755,root,root) %{_bindir}/abrt-action-check-oops-for-alt-component
780 %attr(755,root,root) %{_bindir}/abrt-action-check-oops-for-hw-error
781 %attr(755,root,root) %{_bindir}/abrt-action-save-kernel-data
782 %attr(755,root,root) %{_bindir}/abrt-dump-journal-oops
783 %attr(755,root,root) %{_bindir}/abrt-dump-oops
784 %{_datadir}/%{name}/conf.d/plugins/oops.conf
785 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/koops_event.conf
786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/oops.conf
787 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.oops.xml
788 #%attr(754,root,root) /etc/rc.d/init.d/abrt-oops
789 %{systemdunitdir}/abrt-oops.service
790 %{_mandir}/man1/abrt-action-analyze-oops.1*
791 %{_mandir}/man1/abrt-action-check-oops-for-hw-error.1*
792 %{_mandir}/man1/abrt-action-save-kernel-data.1*
793 %{_mandir}/man1/abrt-dump-journal-oops.1*
794 %{_mandir}/man1/abrt-dump-oops.1*
795 %{_mandir}/man5/abrt-oops.conf.5*
796 %{_mandir}/man5/koops_event.conf.5*
797
798 %files addon-pstoreoops
799 %defattr(644,root,root,755)
800 %attr(755,root,root) %{_bindir}/abrt-merge-pstoreoops
801 %attr(755,root,root) %{_sbindir}/abrt-harvest-pstoreoops
802 %{systemdunitdir}/abrt-pstoreoops.service
803 #%attr(754,root,root) /etc/rc.d/init.d/abrt-pstoreoops
804 %{_mandir}/man1/abrt-harvest-pstoreoops.1*
805 %{_mandir}/man1/abrt-merge-pstoreoops.1*
806
807 %files addon-python
808 %defattr(644,root,root,755)
809 %{_datadir}/%{name}/conf.d/plugins/python.conf
810 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/python.conf
811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/python_event.conf
812 %{py_sitedir}/abrt_exception_handler.py[co]
813 %{py_sitedir}/abrt.pth
814 %{_mandir}/man5/abrt-python.conf.5*
815 %{_mandir}/man5/python_event.conf.5*
816
817 %files addon-python3
818 %defattr(644,root,root,755)
819 %{_datadir}/%{name}/conf.d/plugins/python3.conf
820 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/python3.conf
821 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/python3_event.conf
822 %{py3_sitedir}/abrt_exception_handler3.py*
823 %{py3_sitedir}/abrt3.pth
824 %{_mandir}/man5/abrt-python3.conf.5*
825 %{_mandir}/man5/python3_event.conf.5*
826
827 %files addon-upload-watch
828 %defattr(644,root,root,755)
829 %attr(755,root,root) %{_sbindir}/abrt-upload-watch
830 %{systemdunitdir}/abrt-upload-watch.service
831 %{_mandir}/man1/abrt-upload-watch.1*
832
833 %files addon-vmcore
834 %defattr(644,root,root,755)
835 %attr(755,root,root) %{_bindir}/abrt-action-analyze-vmcore
836 %attr(755,root,root) %{_sbindir}/abrt-harvest-vmcore
837 %dir %{_datadir}/%{name}/conf.d/plugins/vmcore.conf
838 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/vmcore.conf
839 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/vmcore_event.conf
840 #%attr(754,root,root) /etc/rc.d/init.d/abrt-vmcore
841 %{_datadir}/libreport/events/analyze_VMcore.xml
842 %{systemdunitdir}/abrt-vmcore.service
843 %{_mandir}/man1/abrt-action-analyze-vmcore.1*
844 %{_mandir}/man1/abrt-harvest-vmcore.1*
845 %{_mandir}/man5/abrt-vmcore.conf.5*
846 %{_mandir}/man5/vmcore_event.conf.5*
847
848 %files addon-xorg
849 %defattr(644,root,root,755)
850 %attr(755,root,root) %{_bindir}/abrt-action-analyze-xorg
851 %attr(755,root,root) %{_bindir}/abrt-dump-journal-xorg
852 %attr(755,root,root) %{_bindir}/abrt-dump-xorg
853 %dir %{_datadir}/%{name}/conf.d/plugins/xorg.conf
854 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/xorg.conf
855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/xorg_event.conf
856 #%attr(754,root,root) /etc/rc.d/init.d/abrt-xorg
857 %{systemdunitdir}/abrt-xorg.service
858 %{_mandir}/man1/abrt-action-analyze-xorg.1*
859 %{_mandir}/man1/abrt-dump-journal-xorg.1*
860 %{_mandir}/man1/abrt-dump-xorg.1*
861 %{_mandir}/man5/abrt-xorg.conf.5*
862 %{_mandir}/man5/xorg_event.conf.5*
863
864 %files atomic
865 %defattr(644,root,root,755)
866 %{_datadir}/%{name}/conf.d/plugins/CCpp_Atomic.conf
867 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/CCpp_Atomic.conf
868 %{systemdunitdir}/abrt-coredump-helper.service
869
870 %files plugin-bodhi
871 %defattr(644,root,root,755)
872 %attr(755,root,root) %{_bindir}/abrt-action-find-bodhi-update
873 %attr(755,root,root) %{_bindir}/abrt-bodhi
874 %{_mandir}/man1/abrt-action-find-bodhi-update.1*
875 %{_mandir}/man1/abrt-bodhi.1*
876
877 %files retrace-client
878 %defattr(644,root,root,755)
879 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/ccpp_retrace_event.conf
880 %attr(755,root,root) %{_bindir}/abrt-retrace-client
881 %{_datadir}/libreport/events/analyze_RetraceServer.xml
882 %{_mandir}/man1/abrt-retrace-client.1*
883
884 %files dbus
885 %defattr(644,root,root,755)
886 %attr(755,root,root) %{_sbindir}/abrt-configuration
887 %attr(755,root,root) %{_sbindir}/abrt-dbus
888 /etc/dbus-1/system.d/dbus-abrt.conf
889 /etc/dbus-1/system.d/org.freedesktop.problems.daemon.conf
890 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.abrt.xml
891 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.ccpp.xml
892 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.python.xml
893 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.vmcore.xml
894 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.xml
895 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.xorg.xml
896 %{_datadir}/dbus-1/interfaces/org.freedesktop.Problems.xml
897 %{_datadir}/dbus-1/system-services/com.redhat.problems.configuration.service
898 %{_datadir}/dbus-1/system-services/org.freedesktop.problems.service
899 %{_datadir}/polkit-1/actions/abrt_polkit.policy
900 %{_mandir}/man8/abrt-configuration.8*
901 %{_mandir}/man8/abrt-dbus.8*
902 %{_docdir}/abrt-dbus-%{version}
903
904 %files python
905 %defattr(644,root,root,755)
906 %dir %{py_sitedir}/problem
907 %attr(755,root,root) %{py_sitedir}/problem/_pyabrt.so
908 %{py_sitedir}/problem/*.py[co]
909 %{_mandir}/man5/abrt-python.5*
910
911 %files python3
912 %defattr(644,root,root,755)
913 %dir %{py3_sitedir}/problem
914 %attr(755,root,root) %{py3_sitedir}/problem/_py3abrt.so
915 %{py3_sitedir}/problem/*.py*
916 %{_mandir}/man5/abrt-python3.5*
917
918 %files cli
919 %defattr(644,root,root,755)
920 %attr(755,root,root) %{_bindir}/abrt-cli
921 %{_mandir}/man1/abrt-cli.1*
922
923 %files gui
924 %defattr(644,root,root,755)
925 %attr(755,root,root) %{_bindir}/abrt-applet
926 %attr(755,root,root) %{_bindir}/system-config-abrt
927 %dir %{_datadir}/%{name}
928 %{_datadir}/%{name}/icons
929 %{_datadir}/%{name}/ui
930 %{_iconsdir}/hicolor/*/apps/abrt.png
931 %{_iconsdir}/hicolor/*/status/abrt.png
932 %{_sysconfdir}/xdg/autostart/abrt-applet.desktop
933 %{_mandir}/man1/abrt-applet.1*
934 %{_mandir}/man1/system-config-abrt.1*
935
936 %files gui-libs
937 %defattr(644,root,root,755)
938 %attr(755,root,root) %{_libdir}/libabrt_gui.so.*.*.*
939 %attr(755,root,root) %ghost %{_libdir}/libabrt_gui.so.0
940
941 %files gui-devel
942 %defattr(644,root,root,755)
943 %attr(755,root,root) %{_libdir}/libabrt_gui.so
944 %{_includedir}/abrt/abrt-config-widget.h
945 %{_includedir}/abrt/system-config-abrt.h
946 %{_pkgconfigdir}/abrt_gui.pc
947
948 %files desktop
949 %defattr(644,root,root,755)
950
951 %files console-notification
952 %defattr(644,root,root,755)
953 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/abrt-console-notification.sh
This page took 0.090004 seconds and 4 git commands to generate.