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: 0183ac40c8d6e701087a33bcc1b95a6d
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/ignored_words.conf.5*
387 %{_mandir}/man5/report_event.conf.5*
390 %defattr(644,root,root,755)
391 %attr(755,root,root) %{_libdir}/libreport.so
392 %attr(755,root,root) %{_libdir}/libabrt_dbus.so
393 %dir %{_includedir}/libreport
394 %{_includedir}/libreport/client.h
395 %{_includedir}/libreport/config_item_info.h
396 %{_includedir}/libreport/dump_dir.h
397 %{_includedir}/libreport/event_config.h
398 %{_includedir}/libreport/file_obj.h
399 %{_includedir}/libreport/libreport_types.h
400 %{_includedir}/libreport/problem_data.h
401 %{_includedir}/libreport/report.h
402 %{_includedir}/libreport/run_event.h
403 %{_includedir}/libreport/internal_abrt_dbus.h
404 %{_includedir}/libreport/internal_libreport.h
405 %{_includedir}/libreport/workflow.h
406 %{_includedir}/libreport/xml_parser.h
407 %{_pkgconfigdir}/%{name}.pc
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_libdir}/libreport-web.so.*.*
412 %attr(755,root,root) %ghost %{_libdir}/libreport-web.so.0
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_libdir}/libreport-web.so
417 %{_includedir}/libreport/libreport_curl.h
418 %{_pkgconfigdir}/libreport-web.pc
420 %files -n python-%{name}
421 %defattr(644,root,root,755)
422 %dir %{py_sitedir}/report
423 %attr(755,root,root) %{py_sitedir}/report/_pyreport.so
424 %{py_sitedir}/report/*.py[co]
425 %dir %{py_sitedir}/report/io
426 %{py_sitedir}/report/io/*.py[co]
427 %dir %{py_sitedir}/reportclient
428 %attr(755,root,root) %{py_sitedir}/reportclient/_reportclient.so
429 %{py_sitedir}/reportclient/*.py[co]
431 %files -n python3-%{name}
432 %defattr(644,root,root,755)
433 %dir %{py3_sitedir}/report
434 %attr(755,root,root) %{py3_sitedir}/report/_py3report.so
435 %{py3_sitedir}/report/*.py*
436 %dir %{py3_sitedir}/report/io
437 %{py3_sitedir}/report/io/*.py*
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_bindir}/report-cli
442 %{_mandir}/man1/report-cli.1*
445 %defattr(644,root,root,755)
446 %attr(755,root,root) %{_bindir}/report-newt
447 %{_mandir}/man1/report-newt.1*
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_bindir}/report-gtk
452 %attr(755,root,root) %{_libdir}/libreport-gtk.so.*.*
453 %attr(755,root,root) %ghost %{_libdir}/libreport-gtk.so.0
454 %{_mandir}/man1/report-gtk.1*
457 %defattr(644,root,root,755)
458 %attr(755,root,root) %{_libdir}/libreport-gtk.so
459 %{_includedir}/libreport/internal_libreport_gtk.h
460 %{_pkgconfigdir}/libreport-gtk.pc
462 %files plugin-bugzilla
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_bindir}/reporter-bugzilla
465 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla.conf
466 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format.conf
467 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_kernel.conf
468 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_libreport.conf
469 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup.conf
470 %config(noreplace) %{_sysconfdir}/libreport/events/report_Bugzilla.conf
471 %config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_event.conf
472 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.bugzilla.xml
473 %{_datadir}/libreport/conf.d/plugins/bugzilla.conf
474 %{_datadir}/libreport/events/report_Bugzilla.xml
475 %{_datadir}/libreport/events/watch_Bugzilla.xml
476 %{_mandir}/man1/reporter-bugzilla.1*
477 %{_mandir}/man5/bugzilla.conf.5*
478 %{_mandir}/man5/bugzilla_event.conf.5*
479 %{_mandir}/man5/bugzilla_format.conf.5*
480 %{_mandir}/man5/bugzilla_format_kernel.conf.5*
481 %{_mandir}/man5/bugzilla_format_libreport.conf.5*
482 %{_mandir}/man5/bugzilla_formatdup.conf.5*
483 %{_mandir}/man5/report_Bugzilla.conf.5*
485 %files plugin-kerneloops
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_bindir}/reporter-kerneloops
488 %{_datadir}/libreport/events/report_Kerneloops.xml
489 %{_mandir}/man1/reporter-kerneloops.1*
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_bindir}/reporter-print
494 %{_sysconfdir}/libreport/events/report_Logger.conf
495 %{_datadir}/libreport/events/report_Logger.xml
496 %config(noreplace) %{_sysconfdir}/libreport/events.d/print_event.conf
497 %{_mandir}/man1/reporter-print.1*
498 %{_mandir}/man5/print_event.conf.5*
499 %{_mandir}/man5/report_Logger.conf.5*
502 %defattr(644,root,root,755)
503 %attr(755,root,root) %{_bindir}/reporter-mailx
504 %config(noreplace) %{_sysconfdir}/libreport/plugins/mailx.conf
505 %config(noreplace) %{_sysconfdir}/libreport/events.d/mailx_event.conf
506 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.mailx.xml
507 %{_datadir}/libreport/conf.d/plugins/mailx.conf
508 %{_datadir}/libreport/events/report_Mailx.xml
509 %{_mandir}/man1/reporter-mailx.1*
510 %{_mandir}/man5/mailx.conf.5*
511 %{_mandir}/man5/mailx_event.conf.5*
513 %files plugin-reportuploader
514 %defattr(644,root,root,755)
515 %attr(755,root,root) %{_bindir}/reporter-upload
516 %config(noreplace) %{_sysconfdir}/libreport/events.d/uploader_event.conf
517 %config(noreplace) %{_sysconfdir}/libreport/plugins/upload.conf
518 %{_datadir}/libreport/conf.d/plugins/upload.conf
519 %{_datadir}/libreport/events/report_Uploader.xml
520 %{_datadir}/libreport/workflows/workflow_Upload.xml
521 %{_mandir}/man1/reporter-upload.1*
522 %{_mandir}/man5/uploader_event.conf.5*
524 %files plugin-rhtsupport
525 %defattr(644,root,root,755)
526 %attr(755,root,root) %{_bindir}/reporter-rhtsupport
527 %config(noreplace) %{_sysconfdir}/libreport/plugins/rhtsupport.conf
528 %config(noreplace) %{_sysconfdir}/libreport/events.d/rhtsupport_event.conf
529 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml
530 %{_datadir}/libreport/conf.d/plugins/rhtsupport.conf
531 %{_datadir}/libreport/events/report_RHTSupport.xml
532 %{_mandir}/man1/reporter-rhtsupport.1*
533 %{_mandir}/man5/rhtsupport.conf.5*
534 %{_mandir}/man5/rhtsupport_event.conf.5*
536 %files plugin-ureport
537 %defattr(644,root,root,755)
538 %attr(755,root,root) %{_bindir}/reporter-ureport
539 %config(noreplace) %{_sysconfdir}/libreport/events.d/emergencyanalysis_event.conf
540 %config(noreplace) %{_sysconfdir}/libreport/plugins/ureport.conf
541 %{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.ureport.xml
542 %{_datadir}/libreport/conf.d/plugins/ureport.conf
543 %{_datadir}/libreport/events/report_uReport.xml
544 %{_datadir}/libreport/events/report_EmergencyAnalysis.xml
545 %{_mandir}/man1/reporter-ureport.1*
546 %{_mandir}/man5/emergencyanalysis_event.conf.5*
547 %{_mandir}/man5/ureport.conf.5*
550 %defattr(644,root,root,755)
551 %config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_anaconda_event.conf
552 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_anaconda.conf
553 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_anaconda.conf
554 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/anaconda_event.conf
555 %{_datadir}/libreport/workflows/workflow_AnacondaFedora.xml
556 %{_datadir}/libreport/workflows/workflow_AnacondaRHEL.xml
557 %{_datadir}/libreport/workflows/workflow_AnacondaRHELBugzilla.xml
558 %{_datadir}/libreport/workflows/workflow_AnacondaUpload.xml
559 %{_mandir}/man5/anaconda_event.conf.5*
560 %{_mandir}/man5/bugzilla_anaconda_event.conf.5*
561 %{_mandir}/man5/bugzilla_format_anaconda.conf.5*
562 %{_mandir}/man5/bugzilla_formatdup_anaconda.conf.5*
565 %defattr(644,root,root,755)
566 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_fedora.conf
567 %{_datadir}/libreport/workflows/workflow_Fedora*.xml
568 %{_mandir}/man5/report_fedora.conf.5*
571 %defattr(644,root,root,755)
572 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel.conf
573 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
574 %{_datadir}/libreport/workflows/workflow_RHEL*.xml
575 %{_mandir}/man5/report_rhel.conf.5*
576 %{_mandir}/man5/report_rhel_bugzilla.conf.5*