1 # TODO: teach build system to use python3.2+ __pycache__
4 %bcond_without tests # "make check"
6 Summary: Generic library for reporting various problems
7 Summary(pl.UTF-8): Ogólna biblioteka do zgłaszania różnych problemów
13 Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
14 # Source0-md5: 09af2b13375ed2d6288b86ce6de8b182
15 Patch0: format-security.patch
16 URL: https://fedorahosted.org/abrt/
17 BuildRequires: asciidoc
18 %{?with_tests:BuildRequires: augeas}
19 BuildRequires: augeas-devel
20 BuildRequires: curl-devel
21 BuildRequires: dbus-devel
22 BuildRequires: desktop-file-utils
23 BuildRequires: gettext-devel >= 0.17
24 BuildRequires: glib2-devel >= 1:2.21
25 BuildRequires: gtk+3-devel >= 3.0
26 BuildRequires: intltool >= 0.35.0
27 BuildRequires: json-c-devel
28 BuildRequires: libproxy-devel
29 BuildRequires: libtar-devel
30 BuildRequires: libtool
31 BuildRequires: libxml2-devel >= 2
32 BuildRequires: newt-devel
33 BuildRequires: nss-devel
34 BuildRequires: pkgconfig
35 BuildRequires: python-devel >= 2
36 BuildRequires: python3-devel >= 3
37 BuildRequires: rpmbuild(macros) >= 1.612
38 BuildRequires: satyr-devel
40 BuildRequires: systemd-devel
41 BuildRequires: xmlrpc-c-client-devel
42 BuildRequires: xmlrpc-c-devel
44 Requires: glib2 >= 1:2.21
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Libraries providing API for reporting different problems in
49 applications to different bug targets like Bugzilla, ftp, trac, etc...
51 %description -l pl.UTF-8
52 Biblioteki udostępniające API do zgłaszania różnych programów w
53 aplikacjach do różnych docelowych systemów raportowania błędów, takich
54 jak Bugzilla, ftp, trac...
57 Summary: Header files for libreport libraries
58 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libreport
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
61 Requires: glib2-devel >= 1:2.21
64 Header files for libreport libraries.
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe bibliotek libreport.
70 Summary: Library providing network API for libreport
71 Summary(pl.UTF-8): Biblioteka zapewniająca API sieciowe dla libreport
73 Requires: %{name} = %{version}-%{release}
76 Library providing network API for libreport.
78 %description web -l pl.UTF-8
79 Biblioteka zapewniająca API sieciowe dla libreport.
82 Summary: Development headers for libreport-web
83 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libreport-web
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
86 Requires: %{name}-web = %{version}-%{release}
88 Requires: json-c-devel
89 Requires: libproxy-devel
90 Requires: libxml2-devel >= 2
92 Requires: xmlrpc-c-client-devel
93 Requires: xmlrpc-c-devel
95 %description web-devel
96 Development headers for libreport-web.
98 %description web-devel -l pl.UTF-8
99 Pliki nagłówkowe biblioteki libreport-web.
101 %package -n python-%{name}
102 Summary: Python 2 bindings for libreport libraries
103 Summary(pl.UTF-8): Wiązania Pythona 2 do bibliotek libreport
104 Group: Libraries/Python
105 Requires: %{name} = %{version}-%{release}
106 Provides: %{name}-python = %{version}-%{release}
107 Obsoletes: libreport-python < 2.1.3-1
109 %description -n python-%{name}
110 Python 2 bindings for libreport libraries.
112 %description -n python-%{name} -l pl.UTF-8
113 Wiązania Pythona 2 do bibliotek libreport
115 %package -n python3-%{name}
116 Summary: Python 3 bindings for libreport libraries
117 Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek libreport
118 Group: Libraries/Python
119 Requires: %{name} = %{version}-%{release}
121 %description -n python3-%{name}
122 Python 3 bindings for libreport libraries.
124 %description -n python3-%{name} -l pl.UTF-8
125 Wiązania Pythona 3 do bibliotek libreport
128 Summary: libreport's command line interface
129 Summary(pl.UTF-8): Interfejs linii poleceń libreport
131 Requires: %{name} = %{version}-%{release}
134 This package contains simple command line tool for working with
135 problem dump reports.
137 %description cli -l pl.UTF-8
138 Ten pakiet zawiera proste, działające z linii poleceń narzędzie do
139 pracy ze zgłoszeniami zawierającymi zrzuty problemów.
142 Summary: libreport's newt interface
143 Summary(pl.UTF-8): Interfejs newt libreport
145 Requires: %{name} = %{version}-%{release}
148 This package contains a simple newt application for reporting bugs.
150 %description newt -l pl.UTF-8
151 Ten pakiet zawiera prostą aplikację newt do zgłaszania błędów.
154 Summary: GTK+ front-end for libreport
155 Summary(pl.UTF-8): Interfejs GTK+ libreport
156 Group: X11/Applications
157 Requires: %{name} = %{version}-%{release}
160 Application for reporting bugs using libreport backend.
162 %description gtk -l pl.UTF-8
163 Aplikacja do zgłaszania błędów przy użyciu libreport.
166 Summary: Development headers for libreport-gtk
167 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libreport-gtk
168 Group: Development/Libraries
169 Requires: %{name}-gtk = %{version}-%{release}
171 %description gtk-devel
172 Development headers for libreport-gtk.
174 %description gtk-devel -l pl.UTF-8
175 Pliki nagłówkowe biblioteki libreport-gtk.
177 %package plugin-bugzilla
178 Summary: libreport's bugzilla plugin
179 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń przez Bugzillę
181 Requires: %{name} = %{version}-%{release}
182 Obsoletes: abrt-plugin-bugzilla < 2.0.4
184 %description plugin-bugzilla
185 Plugin to report bugs into the bugzilla.
187 %description plugin-bugzilla -l pl.UTF-8
188 Wtyczka zgłaszająca problemy do systemu Bugzilla.
190 %package plugin-kerneloops
191 Summary: libreport's kerneloops reporter plugin
192 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń awarii jądra (kerneloops)
194 Requires: %{name} = %{version}-%{release}
197 %description plugin-kerneloops
198 This package contains plugin which sends kernel crash information to
199 specified server, usually to kerneloops.org.
201 %description plugin-kerneloops -l pl.UTF-8
202 Ten pakiet zawiera wtyczkę wysyłającą informacje o awariach jądra na
203 określony serwer, zwykle kerneloops.org.
205 %package plugin-logger
206 Summary: libreport's logger reporter plugin
207 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń w logu
209 Requires: %{name} = %{version}-%{release}
210 Obsoletes: abrt-plugin-logger < 2.0.4
212 %description plugin-logger
213 The simple reporter plugin which writes a report to a specified file.
215 %description plugin-logger -l pl.UTF-8
216 Prosta wtyczka zgłaszająca problem, zapisująca raport w określonym
219 %package plugin-mailx
220 Summary: libreport's mailx reporter plugin
221 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń przez pocztę elektroniczną
223 Requires: %{name} = %{version}-%{release}
225 Obsoletes: abrt-plugin-mailx < 2.0.4
227 %description plugin-mailx
228 The simple reporter plugin which sends a report via mailx to a
229 specified email address.
231 %description plugin-mailx -l pl.UTF-8
232 Prosta wtyczka zgłaszająca problem, wysyłająca raport na określony
233 adres e-mail przy użyciu programu mailx.
235 %package plugin-reportuploader
236 Summary: libreport's reportuploader plugin
237 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń przez FTP
239 Requires: %{name} = %{version}-%{release}
240 Obsoletes: abrt-plugin-reportuploader < 2.0.4
242 %description plugin-reportuploader
243 Plugin to report bugs into anonymous FTP site associated with
246 %description plugin-reportuploader -l pl.UTF-8
247 Wtyczka zgłaszająca błędy poprzez serwer anonimowego FTP powiązany z
250 %package plugin-rhtsupport
251 Summary: libreport's RHTSupport plugin
252 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń przez RHTSupport
254 Requires: %{name} = %{version}-%{release}
255 Obsoletes: abrt-plugin-rhtsupport < 2.0.4
257 %description plugin-rhtsupport
258 Plugin to report bugs into RH support system.
260 %description plugin-rhtsupport -l pl.UTF-8
261 Wtyczka zgłaszająca problemy do systemu obsługi RH.
263 %package plugin-ureport
264 Summary: libreport's micro report plugin
265 Summary(pl.UTF-8): Wtyczka libreport do zgłoszeń typu micro-report
267 Requires: %{name} = %{version}-%{release}
269 %description plugin-ureport
270 Uploads micro-report to abrt server.
272 %description plugin-ureport -l pl.UTF-8
273 Wtyczka przesyłająca raporty typu micro-report na serwer abrt.
276 Summary: Default configuration for reporting Anaconda bugs
277 Summary(pl.UTF-8): Domyślna konfiguracja do zgłaszania błędów w Anacondzie
278 Group: Applications/File
279 Requires: %{name}-plugin-bugzilla = %{version}-%{release}
280 Requires: %{name}-plugin-reportuploader = %{version}-%{release}
282 %description anaconda
283 Default configuration for reporting Anaconda problems using Fedora
284 infrastructure or uploading the gathered data over ftp/scp...
286 %description anaconda -l pl.UTF-8
287 Domyślna konfiguracja do zgłaszania problemów z Anacondą przy użyciu
288 infrastruktury Fedory lub przesyłając zebrane dane po ftp/scp.
291 Summary: Default configuration for reporting bugs via Fedora infrastructure
292 Summary(pl.UTF-8): Domyślna konfiguracja do zgłaszania błędów poprzeze infrastrukturę Fedory
293 Group: Applications/File
294 Requires: %{name} = %{version}-%{release}
297 Default configuration for reporting bugs via Fedora infrastructure
298 used primarily to easy configure the reporting process for Fedora
301 %description fedora -l pl.UTF-8
302 Domyślna konfiguracja do zgłaszania błędów poprzez infrastrukturę
303 Fedory, służąca przede wszystkim do łatwej konfiguracji procesu
304 zgłaszania błędów w systemach Fedora.
307 Summary: Default configuration for reporting bugs via RHEL infrastructure
308 Summary(pl.UTF-8): Domyślna konfiguracja do zgłaszania błędów poprzeze infrastrukturę RHEL
309 Group: Applications/File
310 Requires: %{name} = %{version}-%{release}
313 Default configuration for reporting bugs via RHEL infrastructure used
314 primarily to easy configure the reporting process for RHEL systems.
316 %description rhel -l pl.UTF-8
317 Domyślna konfiguracja do zgłaszania błędów poprzez infrastrukturę
318 RHEL, służąca przede wszystkim do łatwej konfiguracji procesu
319 zgłaszania błędów w systemach RHEL.
327 AUGPARSE=/usr/bin/augparse \
328 --disable-silent-rules
337 rm -rf $RPM_BUILD_ROOT
340 DESTDIR=$RPM_BUILD_ROOT
342 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
343 # compat layer for compatibility tool
344 %{__rm} $RPM_BUILD_ROOT{%{_bindir}/report,%{_mandir}/man1/report.1}
347 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/report*/*.la
348 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/report/*.la
353 rm -rf $RPM_BUILD_ROOT
355 %post -p /sbin/ldconfig
356 %postun -p /sbin/ldconfig
358 %post web -p /sbin/ldconfig
359 %postun web -p /sbin/ldconfig
361 %post gtk -p /sbin/ldconfig
362 %postun gtk -p /sbin/ldconfig
364 %files -f %{name}.lang
365 %defattr(644,root,root,755)
367 %dir %{_sysconfdir}/%{name}
368 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/report_event.conf
369 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/forbidden_words.conf
370 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/ignored_words.conf
371 %dir %{_sysconfdir}/%{name}/events
372 %dir %{_sysconfdir}/%{name}/events.d
373 %dir %{_sysconfdir}/%{name}/plugins
374 %dir %{_sysconfdir}/%{name}/workflows.d
375 %attr(755,root,root) %{_libdir}/libreport.so.*.*.*
376 %attr(755,root,root) %ghost %{_libdir}/libreport.so.0
377 %attr(755,root,root) %{_libdir}/libabrt_dbus.so.*.*.*
378 %attr(755,root,root) %ghost %{_libdir}/libabrt_dbus.so.0
379 %{_datadir}/augeas/lenses/libreport.aug
380 %dir %{_datadir}/libreport
381 %dir %{_datadir}/libreport/conf.d
382 %dir %{_datadir}/libreport/conf.d/plugins
383 %dir %{_datadir}/libreport/events
384 %dir %{_datadir}/libreport/workflows
385 %{_mandir}/man5/forbidden_words.conf.5*
386 %{_mandir}/man5/report_event.conf.5*
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/libreport.so
391 %attr(755,root,root) %{_libdir}/libabrt_dbus.so
392 %dir %{_includedir}/libreport
393 %{_includedir}/libreport/client.h
394 %{_includedir}/libreport/config_item_info.h
395 %{_includedir}/libreport/dump_dir.h
396 %{_includedir}/libreport/event_config.h
397 %{_includedir}/libreport/file_obj.h
398 %{_includedir}/libreport/libreport_types.h
399 %{_includedir}/libreport/problem_data.h
400 %{_includedir}/libreport/report.h
401 %{_includedir}/libreport/run_event.h
402 %{_includedir}/libreport/internal_abrt_dbus.h
403 %{_includedir}/libreport/internal_libreport.h
404 %{_includedir}/libreport/workflow.h
405 %{_includedir}/libreport/xml_parser.h
406 %{_pkgconfigdir}/%{name}.pc
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_libdir}/libreport-web.so.*.*
411 %attr(755,root,root) %ghost %{_libdir}/libreport-web.so.0
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_libdir}/libreport-web.so
416 %{_includedir}/libreport/libreport_curl.h
417 %{_pkgconfigdir}/libreport-web.pc
419 %files -n python-%{name}
420 %defattr(644,root,root,755)
421 %dir %{py_sitedir}/report
422 %attr(755,root,root) %{py_sitedir}/report/_pyreport.so
423 %{py_sitedir}/report/*.py[co]
424 %dir %{py_sitedir}/report/io
425 %{py_sitedir}/report/io/*.py[co]
426 %dir %{py_sitedir}/reportclient
427 %attr(755,root,root) %{py_sitedir}/reportclient/_reportclient.so
428 %{py_sitedir}/reportclient/*.py[co]
430 %files -n python3-%{name}
431 %defattr(644,root,root,755)
432 %dir %{py3_sitedir}/report
433 %attr(755,root,root) %{py3_sitedir}/report/_py3report.so
434 %{py3_sitedir}/report/*.py*
435 %dir %{py3_sitedir}/report/io
436 %{py3_sitedir}/report/io/*.py*
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_bindir}/report-cli
441 %{_mandir}/man1/report-cli.1*
444 %defattr(644,root,root,755)
445 %attr(755,root,root) %{_bindir}/report-newt
446 %{_mandir}/man1/report-newt.1*
449 %defattr(644,root,root,755)
450 %attr(755,root,root) %{_bindir}/report-gtk
451 %attr(755,root,root) %{_libdir}/libreport-gtk.so.*.*
452 %attr(755,root,root) %ghost %{_libdir}/libreport-gtk.so.0
453 %{_mandir}/man1/report-gtk.1*
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_libdir}/libreport-gtk.so
458 %{_includedir}/libreport/internal_libreport_gtk.h
459 %{_pkgconfigdir}/libreport-gtk.pc
461 %files plugin-bugzilla
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_bindir}/reporter-bugzilla
464 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla.conf
465 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format.conf
466 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_kernel.conf
467 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_libreport.conf
468 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup.conf
469 %config(noreplace) %{_sysconfdir}/libreport/events/report_Bugzilla.conf
470 %config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_event.conf
471 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.bugzilla.xml
472 %{_datadir}/libreport/conf.d/plugins/bugzilla.conf
473 %{_datadir}/libreport/events/report_Bugzilla.xml
474 %{_datadir}/libreport/events/watch_Bugzilla.xml
475 %{_mandir}/man1/reporter-bugzilla.1*
476 %{_mandir}/man5/bugzilla.conf.5*
477 %{_mandir}/man5/bugzilla_event.conf.5*
478 %{_mandir}/man5/bugzilla_format.conf.5*
479 %{_mandir}/man5/bugzilla_format_kernel.conf.5*
480 %{_mandir}/man5/bugzilla_format_libreport.conf.5*
481 %{_mandir}/man5/bugzilla_formatdup.conf.5*
482 %{_mandir}/man5/report_Bugzilla.conf.5*
484 %files plugin-kerneloops
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_bindir}/reporter-kerneloops
487 %{_datadir}/libreport/events/report_Kerneloops.xml
488 %{_mandir}/man1/reporter-kerneloops.1*
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_bindir}/reporter-print
493 %{_sysconfdir}/libreport/events/report_Logger.conf
494 %{_datadir}/libreport/events/report_Logger.xml
495 %config(noreplace) %{_sysconfdir}/libreport/events.d/print_event.conf
496 %{_mandir}/man1/reporter-print.1*
497 %{_mandir}/man5/print_event.conf.5*
498 %{_mandir}/man5/report_Logger.conf.5*
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_bindir}/reporter-mailx
503 %config(noreplace) %{_sysconfdir}/libreport/plugins/mailx.conf
504 %config(noreplace) %{_sysconfdir}/libreport/events.d/mailx_event.conf
505 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.mailx.xml
506 %{_datadir}/libreport/conf.d/plugins/mailx.conf
507 %{_datadir}/libreport/events/report_Mailx.xml
508 %{_mandir}/man1/reporter-mailx.1*
509 %{_mandir}/man5/mailx.conf.5*
510 %{_mandir}/man5/mailx_event.conf.5*
512 %files plugin-reportuploader
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_bindir}/reporter-upload
515 %config(noreplace) %{_sysconfdir}/libreport/events.d/uploader_event.conf
516 %{_datadir}/libreport/events/report_Uploader.xml
517 %{_datadir}/libreport/workflows/workflow_Upload.xml
518 %{_mandir}/man1/reporter-upload.1*
519 %{_mandir}/man5/uploader_event.conf.5*
521 %files plugin-rhtsupport
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_bindir}/reporter-rhtsupport
524 %config(noreplace) %{_sysconfdir}/libreport/plugins/rhtsupport.conf
525 %config(noreplace) %{_sysconfdir}/libreport/events.d/rhtsupport_event.conf
526 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml
527 %{_datadir}/libreport/conf.d/plugins/rhtsupport.conf
528 %{_datadir}/libreport/events/report_RHTSupport.xml
529 %{_mandir}/man1/reporter-rhtsupport.1*
530 %{_mandir}/man5/rhtsupport.conf.5*
531 %{_mandir}/man5/rhtsupport_event.conf.5*
533 %files plugin-ureport
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_bindir}/reporter-ureport
536 %config(noreplace) %{_sysconfdir}/libreport/events.d/emergencyanalysis_event.conf
537 %config(noreplace) %{_sysconfdir}/libreport/plugins/ureport.conf
538 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.ureport.xml
539 %{_datadir}/libreport/conf.d/plugins/ureport.conf
540 %{_datadir}/libreport/events/report_uReport.xml
541 %{_datadir}/libreport/events/report_EmergencyAnalysis.xml
542 %{_mandir}/man1/reporter-ureport.1*
543 %{_mandir}/man5/emergencyanalysis_event.conf.5*
544 %{_mandir}/man5/ureport.conf.5*
547 %defattr(644,root,root,755)
548 %config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_anaconda_event.conf
549 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_anaconda.conf
550 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_anaconda.conf
551 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/anaconda_event.conf
552 %{_datadir}/libreport/workflows/workflow_AnacondaFedora.xml
553 %{_datadir}/libreport/workflows/workflow_AnacondaRHEL.xml
554 %{_datadir}/libreport/workflows/workflow_AnacondaRHELBugzilla.xml
555 %{_datadir}/libreport/workflows/workflow_AnacondaUpload.xml
556 %{_mandir}/man5/anaconda_event.conf.5*
557 %{_mandir}/man5/bugzilla_anaconda_event.conf.5*
558 %{_mandir}/man5/bugzilla_format_anaconda.conf.5*
559 %{_mandir}/man5/bugzilla_formatdup_anaconda.conf.5*
562 %defattr(644,root,root,755)
563 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_fedora.conf
564 %{_datadir}/libreport/workflows/workflow_Fedora*.xml
565 %{_mandir}/man5/report_fedora.conf.5*
568 %defattr(644,root,root,755)
569 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel.conf
570 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
571 %{_datadir}/libreport/workflows/workflow_RHEL*.xml
572 %{_mandir}/man5/report_rhel.conf.5*
573 %{_mandir}/man5/report_rhel_bugzilla.conf.5*