]> git.pld-linux.org Git - packages/libreport.git/blob - libreport.spec
- updated to 2.1.5
[packages/libreport.git] / libreport.spec
1 #
2 # Conditional build:
3 %bcond_with     satyr   # satyr instead of btparser
4 #
5 Summary:        Generic library for reporting various problems
6 Summary(pl.UTF-8):      Ogólna biblioteka do zgłaszania różnych problemów
7 Name:           libreport
8 Version:        2.1.5
9 Release:        1
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
13 # Source0-md5:  50c527d0c642dc21fa5dd3ef43b0c886
14 Patch0:         format-security.patch
15 URL:            https://fedorahosted.org/abrt/
16 BuildRequires:  asciidoc
17 %{!?with_satyr:BuildRequires:   btparser-devel}
18 BuildRequires:  curl-devel
19 BuildRequires:  dbus-devel
20 BuildRequires:  desktop-file-utils
21 BuildRequires:  gettext-devel >= 0.17
22 BuildRequires:  glib2-devel >= 1:2.21
23 BuildRequires:  gtk+3-devel >= 3.0
24 BuildRequires:  intltool >= 0.35.0
25 BuildRequires:  json-c-devel
26 BuildRequires:  libproxy-devel
27 BuildRequires:  libtar-devel
28 BuildRequires:  libtool
29 BuildRequires:  libxml2-devel >= 2
30 BuildRequires:  newt-devel
31 BuildRequires:  nss-devel
32 BuildRequires:  pkgconfig
33 BuildRequires:  python-devel
34 %{?with_satyr:BuildRequires:    satyr-devel}
35 BuildRequires:  xmlrpc-c-client-devel
36 BuildRequires:  xmlrpc-c-devel
37 BuildRequires:  xmlto
38 Requires:       glib2 >= 1:2.21
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Libraries providing API for reporting different problems in
43 applications to different bug targets like Bugzilla, ftp, trac, etc...
44
45 %description -l pl.UTF-8
46 Biblioteki udostępniające API do zgłaszania różnych programów w
47 aplikacjach do różnych docelowych systemów raportowania błędów, takich
48 jak Bugzilla, ftp, trac...
49
50 %package devel
51 Summary:        Header files for libreport libraries
52 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek libreport
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55 Requires:       glib2-devel >= 1:2.21
56
57 %description devel
58 Header files for libreport libraries.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe bibliotek libreport.
62
63 %package web
64 Summary:        Library providing network API for libreport
65 Summary(pl.UTF-8):      Biblioteka zapewniająca API sieciowe dla libreport
66 Group:          Libraries
67 Requires:       %{name} = %{version}-%{release}
68
69 %description web
70 Library providing network API for libreport.
71
72 %description web -l pl.UTF-8
73 Biblioteka zapewniająca API sieciowe dla libreport.
74
75 %package web-devel
76 Summary:        Development headers for libreport-web
77 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libreport-web
78 Group:          Development/Libraries
79 Requires:       %{name}-devel = %{version}-%{release}
80 Requires:       %{name}-web = %{version}-%{release}
81 %{!?with_satyr:Requires:        btparser-devel}
82 Requires:       curl-devel
83 Requires:       json-c-devel
84 Requires:       libproxy-devel
85 Requires:       libxml2-devel >= 2
86 %{?with_satyr:Requires: satyr-devel}
87 Requires:       xmlrpc-c-client-devel
88 Requires:       xmlrpc-c-devel
89
90 %description web-devel
91 Development headers for libreport-web.
92
93 %description web-devel -l pl.UTF-8
94 Pliki nagłówkowe biblioteki libreport-web.
95
96 %package -n python-%{name}
97 Summary:        Python bindings for libreport libraries
98 Summary(pl.UTF-8):      Wiązania Pythona dla bibliotek libreport
99 Group:          Libraries/Python
100 Requires:       %{name} = %{version}-%{release}
101 Provides:       %{name}-python = %{version}-%{release}
102 Obsoletes:      libreport-python < 2.1.3-1
103
104 %description -n python-%{name}
105 Python bindings for libreport libraries.
106
107 %description -n python-%{name} -l pl.UTF-8
108 Wiązania Pythona dla bibliotek libreport
109
110 %package cli
111 Summary:        libreport's command line interface
112 Summary(pl.UTF-8):      Interfejs linii poleceń libreport
113 Group:          Applications
114 Requires:       %{name} = %{version}-%{release}
115
116 %description cli
117 This package contains simple command line tool for working with
118 problem dump reports.
119
120 %description cli -l pl.UTF-8
121 Ten pakiet zawiera proste, działające z linii poleceń narzędzie do
122 pracy ze zgłoszeniami zawierającymi zrzuty problemów.
123
124 %package newt
125 Summary:        libreport's newt interface
126 Summary(pl.UTF-8):      Interfejs newt libreport
127 Group:          Applications
128 Requires:       %{name} = %{version}-%{release}
129
130 %description newt
131 This package contains a simple newt application for reporting bugs.
132
133 %description newt -l pl.UTF-8
134 Ten pakiet zawiera prostą aplikację newt do zgłaszania błędów.
135
136 %package gtk
137 Summary:        GTK+ front-end for libreport
138 Summary(pl.UTF-8):      Interfejs GTK+ libreport
139 Group:          X11/Applications
140 Requires:       %{name} = %{version}-%{release}
141
142 %description gtk
143 Application for reporting bugs using libreport backend.
144
145 %description gtk -l pl.UTF-8
146 Aplikacja do zgłaszania błędów przy użyciu libreport.
147
148 %package gtk-devel
149 Summary:        Development headers for libreport-gtk
150 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libreport-gtk
151 Group:          Development/Libraries
152 Requires:       %{name}-gtk = %{version}-%{release}
153
154 %description gtk-devel
155 Development headers for libreport-gtk.
156
157 %description gtk-devel -l pl.UTF-8
158 Pliki nagłówkowe biblioteki libreport-gtk.
159
160 %package plugin-bugzilla
161 Summary:        libreport's bugzilla plugin
162 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń przez Bugzillę
163 Group:          Libraries
164 Requires:       %{name} = %{version}-%{release}
165 Obsoletes:      abrt-plugin-bugzilla < 2.0.4
166
167 %description plugin-bugzilla
168 Plugin to report bugs into the bugzilla.
169
170 %description plugin-bugzilla -l pl.UTF-8
171 Wtyczka zgłaszająca problemy do systemu Bugzilla.
172
173 %package plugin-kerneloops
174 Summary:        libreport's kerneloops reporter plugin
175 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń awarii jądra (kerneloops)
176 Group:          Libraries
177 Requires:       %{name} = %{version}-%{release}
178 Requires:       curl
179
180 %description plugin-kerneloops
181 This package contains plugin which sends kernel crash information to
182 specified server, usually to kerneloops.org.
183
184 %description plugin-kerneloops -l pl.UTF-8
185 Ten pakiet zawiera wtyczkę wysyłającą informacje o awariach jądra na
186 określony serwer, zwykle kerneloops.org.
187
188 %package plugin-logger
189 Summary:        libreport's logger reporter plugin
190 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń w logu
191 Group:          Libraries
192 Requires:       %{name} = %{version}-%{release}
193 Obsoletes:      abrt-plugin-logger < 2.0.4
194
195 %description plugin-logger
196 The simple reporter plugin which writes a report to a specified file.
197
198 %description plugin-logger -l pl.UTF-8
199 Prosta wtyczka zgłaszająca problem, zapisująca raport w określonym
200 pliku.
201
202 %package plugin-mailx
203 Summary:        libreport's mailx reporter plugin
204 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń przez pocztę elektroniczną
205 Group:          Libraries
206 Requires:       %{name} = %{version}-%{release}
207 Requires:       mailx
208 Obsoletes:      abrt-plugin-mailx < 2.0.4
209
210 %description plugin-mailx
211 The simple reporter plugin which sends a report via mailx to a
212 specified email address.
213
214 %description plugin-mailx -l pl.UTF-8
215 Prosta wtyczka zgłaszająca problem, wysyłająca raport na określony
216 adres e-mail przy użyciu programu mailx.
217
218 %package plugin-reportuploader
219 Summary:        libreport's reportuploader plugin
220 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń przez FTP
221 Group:          Libraries
222 Requires:       %{name} = %{version}-%{release}
223 Obsoletes:      abrt-plugin-reportuploader < 2.0.4
224
225 %description plugin-reportuploader
226 Plugin to report bugs into anonymous FTP site associated with
227 ticketing system.
228
229 %description plugin-reportuploader -l pl.UTF-8
230 Wtyczka zgłaszająca błędy poprzez serwer anonimowego FTP powiązany z
231 systemem biletów.
232
233 %package plugin-rhtsupport
234 Summary:        libreport's RHTSupport plugin
235 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń przez RHTSupport
236 Group:          Libraries
237 Requires:       %{name} = %{version}-%{release}
238 Obsoletes:      abrt-plugin-rhtsupport < 2.0.4
239
240 %description plugin-rhtsupport
241 Plugin to report bugs into RH support system.
242
243 %description plugin-rhtsupport -l pl.UTF-8
244 Wtyczka zgłaszająca problemy do systemu obsługi RH.
245
246 %package plugin-ureport
247 Summary:        libreport's micro report plugin
248 Summary(pl.UTF-8):      Wtyczka libreport do zgłoszeń typu micro-report
249 Group:          Libraries
250 Requires:       %{name} = %{version}-%{release}
251
252 %description plugin-ureport
253 Uploads micro-report to abrt server.
254
255 %description plugin-ureport -l pl.UTF-8
256 Wtyczka przesyłająca raporty typu micro-report na serwer abrt.
257
258 %package anaconda
259 Summary:        Default configuration for reporting Anaconda bugs
260 Summary(pl.UTF-8):      Domyślna konfiguracja do zgłaszania błędów w Anacondzie
261 Group:          Applications/File
262 Requires:       %{name}-plugin-bugzilla = %{version}-%{release}
263 Requires:       %{name}-plugin-reportuploader = %{version}-%{release}
264
265 %description anaconda
266 Default configuration for reporting Anaconda problems using Fedora
267 infrastructure or uploading the gathered data over ftp/scp...
268
269 %description anaconda -l pl.UTF-8
270 Domyślna konfiguracja do zgłaszania problemów z Anacondą przy użyciu
271 infrastruktury Fedory lub przesyłając zebrane dane po ftp/scp.
272
273 %package fedora
274 Summary:        Default configuration for reporting bugs via Fedora infrastructure
275 Summary(pl.UTF-8):      Domyślna konfiguracja do zgłaszania błędów poprzeze infrastrukturę Fedory
276 Group:          Applications/File
277 Requires:       %{name} = %{version}-%{release}
278
279 %description fedora
280 Default configuration for reporting bugs via Fedora infrastructure
281 used primarily to easy configure the reporting process for Fedora
282 systems.
283
284 %description fedora -l pl.UTF-8
285 Domyślna konfiguracja do zgłaszania błędów poprzez infrastrukturę
286 Fedory, służąca przede wszystkim do łatwej konfiguracji procesu
287 zgłaszania błędów w systemach Fedora.
288
289 %package rhel
290 Summary:        Default configuration for reporting bugs via RHEL infrastructure
291 Summary(pl.UTF-8):      Domyślna konfiguracja do zgłaszania błędów poprzeze infrastrukturę RHEL
292 Group:          Applications/File
293 Requires:       %{name} = %{version}-%{release}
294
295 %description rhel
296 Default configuration for reporting bugs via RHEL infrastructure used
297 primarily to easy configure the reporting process for RHEL systems.
298
299 %description rhel -l pl.UTF-8
300 Domyślna konfiguracja do zgłaszania błędów poprzez infrastrukturę
301 RHEL, służąca przede wszystkim do łatwej konfiguracji procesu
302 zgłaszania błędów w systemach RHEL.
303
304 %prep
305 %setup -q
306 %patch0 -p1
307
308 %build
309 %configure \
310         --disable-silent-rules \
311         %{?with_satyr:--with-satyr}
312 %{__make}
313
314 %install
315 rm -rf $RPM_BUILD_ROOT
316
317 %{__make} install \
318         DESTDIR=$RPM_BUILD_ROOT
319
320 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
321 # compat layer for compatibility tool
322 %{__rm} $RPM_BUILD_ROOT{%{_bindir}/report,%{_mandir}/man1/report.1}
323
324 %find_lang %{name}
325
326 %clean
327 rm -rf $RPM_BUILD_ROOT
328
329 %post   -p /sbin/ldconfig
330 %postun -p /sbin/ldconfig
331
332 %post   web -p /sbin/ldconfig
333 %postun web -p /sbin/ldconfig
334
335 %post   gtk -p /sbin/ldconfig
336 %postun gtk -p /sbin/ldconfig
337
338 %files -f %{name}.lang
339 %defattr(644,root,root,755)
340 %doc README
341 %dir %{_sysconfdir}/%{name}
342 %config(noreplace) %{_sysconfdir}/%{name}/report_event.conf
343 %config(noreplace) %{_sysconfdir}/%{name}/forbidden_words.conf
344 %dir %{_sysconfdir}/%{name}/events
345 %dir %{_sysconfdir}/%{name}/events.d
346 %dir %{_sysconfdir}/%{name}/plugins
347 %dir %{_sysconfdir}/%{name}/workflows
348 %dir %{_sysconfdir}/%{name}/workflows.d
349 %attr(755,root,root) %{_libdir}/libreport.so.*.*.*
350 %attr(755,root,root) %ghost %{_libdir}/libreport.so.0
351 %attr(755,root,root) %{_libdir}/libabrt_dbus.so.*.*.*
352 %attr(755,root,root) %ghost %{_libdir}/libabrt_dbus.so.0
353 %{_mandir}/man5/report_event.conf.5*
354
355 %files devel
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_libdir}/libreport.so
358 %attr(755,root,root) %{_libdir}/libabrt_dbus.so
359 %dir %{_includedir}/libreport
360 %{_includedir}/libreport/client.h
361 %{_includedir}/libreport/config_item_info.h
362 %{_includedir}/libreport/dump_dir.h
363 %{_includedir}/libreport/event_config.h
364 %{_includedir}/libreport/file_obj.h
365 %{_includedir}/libreport/libreport_types.h
366 %{_includedir}/libreport/problem_data.h
367 %{_includedir}/libreport/report.h
368 %{_includedir}/libreport/run_event.h
369 %{_includedir}/libreport/internal_abrt_dbus.h
370 %{_includedir}/libreport/internal_libreport.h
371 %{_includedir}/libreport/workflow.h
372 %{_includedir}/libreport/xml_parser.h
373 %{_pkgconfigdir}/%{name}.pc
374
375 %files web
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_libdir}/libreport-web.so.*.*
378 %attr(755,root,root) %ghost %{_libdir}/libreport-web.so.0
379
380 %files web-devel
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/libreport-web.so
383 %{_includedir}/libreport/libreport_curl.h
384 %{_pkgconfigdir}/libreport-web.pc
385
386 %files -n python-%{name}
387 %defattr(644,root,root,755)
388 %{py_sitedir}/report
389 %{py_sitedir}/reportclient
390
391 %files cli
392 %defattr(644,root,root,755)
393 %attr(755,root,root) %{_bindir}/report-cli
394 %{_mandir}/man1/report-cli.1*
395
396 %files newt
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_bindir}/report-newt
399
400 %files gtk
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/report-gtk
403 %attr(755,root,root) %{_libexecdir}/abrt-screencast
404 %attr(755,root,root) %{_libdir}/libreport-gtk.so.*.*
405 %attr(755,root,root) %ghost %{_libdir}/libreport-gtk.so.0
406
407 %files gtk-devel
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/libreport-gtk.so
410 %{_includedir}/libreport/internal_libreport_gtk.h
411 %{_pkgconfigdir}/libreport-gtk.pc
412
413 %files plugin-bugzilla
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_bindir}/reporter-bugzilla
416 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla.conf
417 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format.conf
418 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_kernel.conf
419 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_libreport.conf
420 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup.conf
421 %config(noreplace) %{_sysconfdir}/libreport/events/report_Bugzilla.conf
422 %config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_event.conf
423 %{_sysconfdir}/libreport/events/report_Bugzilla.xml
424 %{_mandir}/man1/reporter-bugzilla.1*
425
426 %files plugin-kerneloops
427 %defattr(644,root,root,755)
428 %attr(755,root,root) %{_bindir}/reporter-kerneloops
429 %{_sysconfdir}/libreport/events/report_Kerneloops.xml
430 %{_mandir}/man1/reporter-kerneloops.1*
431
432 %files plugin-logger
433 %defattr(644,root,root,755)
434 %attr(755,root,root) %{_bindir}/reporter-print
435 %{_sysconfdir}/libreport/events/report_Logger.conf
436 %{_sysconfdir}/libreport/events/report_Logger.xml
437 %config(noreplace) %{_sysconfdir}/libreport/events.d/print_event.conf
438 %{_mandir}/man1/reporter-print.1*
439
440 %files plugin-mailx
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_bindir}/reporter-mailx
443 %config(noreplace) %{_sysconfdir}/libreport/plugins/mailx.conf
444 %config(noreplace) %{_sysconfdir}/libreport/events.d/mailx_event.conf
445 %{_sysconfdir}/libreport/events/report_Mailx.xml
446 %{_mandir}/man1/reporter-mailx.1*
447
448 %files plugin-reportuploader
449 %defattr(644,root,root,755)
450 %attr(755,root,root) %{_bindir}/reporter-upload
451 %config(noreplace) %{_sysconfdir}/libreport/events.d/uploader_event.conf
452 %{_sysconfdir}/libreport/events/report_Uploader.xml
453 %{_sysconfdir}/libreport/workflows/workflow_Upload.xml
454 %{_mandir}/man1/reporter-upload.1*
455
456 %files plugin-rhtsupport
457 %defattr(644,root,root,755)
458 %attr(755,root,root) %{_bindir}/reporter-rhtsupport
459 %config(noreplace) %{_sysconfdir}/libreport/plugins/rhtsupport.conf
460 %config(noreplace) %{_sysconfdir}/libreport/events.d/rhtsupport_event.conf
461 %{_sysconfdir}/libreport/events/report_RHTSupport.xml
462 %{_mandir}/man1/reporter-rhtsupport.1*
463
464 %files plugin-ureport
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_bindir}/reporter-ureport
467 %{_sysconfdir}/libreport/events/report_uReport.xml
468 %{_sysconfdir}/libreport/events/report_EmergencyAnalysis.xml
469 %config(noreplace) %{_sysconfdir}/libreport/events.d/emergencyanalysis_event.conf
470
471 %files anaconda
472 %defattr(644,root,root,755)
473 %{_sysconfdir}/libreport/workflows/workflow_AnacondaFedora.xml
474 %{_sysconfdir}/libreport/workflows/workflow_AnacondaUpload.xml
475 %config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_anaconda_event.conf
476 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_anaconda.conf
477 %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_anaconda.conf
478 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/anaconda_event.conf
479
480 %files fedora
481 %defattr(644,root,root,755)
482 %{_sysconfdir}/libreport/workflows/workflow_Fedora.xml
483 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_fedora.conf
484
485 %files rhel
486 %defattr(644,root,root,755)
487 %{_sysconfdir}/libreport/workflows/workflow_RHEL*.xml
488 %config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel.conf
This page took 0.096657 seconds and 4 git commands to generate.