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