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