]>
Commit | Line | Data |
---|---|---|
1 | Summary: Automatic bug detection and reporting tool | |
2 | Name: abrt | |
3 | Version: 2.0.15 | |
4 | Release: 0.1 | |
5 | License: GPL v2+ | |
6 | Group: Applications/System | |
7 | URL: https://fedorahosted.org/abrt/ | |
8 | Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 0ac147b6e43ca873e6b1927601ec22a4 | |
10 | Source1: %{name}.init | |
11 | Patch0: %{name}-rpm5.patch | |
12 | Patch1: automake.patch | |
13 | Patch2: rpmkey-pld.patch | |
14 | Patch3: format_security.patch | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: bison | |
18 | BuildRequires: bzip2-devel | |
19 | BuildRequires: curl-devel | |
20 | BuildRequires: dbus-devel | |
21 | BuildRequires: gettext-devel | |
22 | BuildRequires: gtk+2-devel | |
23 | BuildRequires: intltool | |
24 | BuildRequires: libmagic-devel | |
25 | BuildRequires: libnotify-devel | |
26 | BuildRequires: libtar-devel | |
27 | BuildRequires: libtool | |
28 | BuildRequires: libzip-devel | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: polkit-devel | |
31 | BuildRequires: python-devel | |
32 | BuildRequires: python-modules | |
33 | BuildRequires: rpm-devel >= 4.5-28 | |
34 | BuildRequires: rpm-pythonprov | |
35 | BuildRequires: rpmbuild(macros) >= 1.219 | |
36 | BuildRequires: sqlite3-devel | |
37 | BuildRequires: xmlrpc-c-client | |
38 | BuildRequires: xmlrpc-c-devel >= 1.20.3-1 | |
39 | BuildRequires: zlib-devel | |
40 | Requires(postun): /usr/sbin/groupdel | |
41 | Requires(postun): /usr/sbin/userdel | |
42 | Requires(pre): /bin/id | |
43 | Requires(pre): /usr/bin/getgid | |
44 | Requires(pre): /usr/sbin/groupadd | |
45 | Requires(pre): /usr/sbin/useradd | |
46 | Requires: %{name}-libs = %{version}-%{release} | |
47 | Provides: group(abrt) | |
48 | Provides: user(abrt) | |
49 | Obsoletes: abrt-plugin-sqlite3 | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | abrt is a tool to help users to detect defects in applications and to | |
54 | create a bug report with all informations needed by maintainer to fix | |
55 | it. It uses plugin system to extend its functionality. | |
56 | ||
57 | %package libs | |
58 | Summary: Libraries for abrt | |
59 | Group: Libraries | |
60 | ||
61 | %description libs | |
62 | Libraries for %{name}. | |
63 | ||
64 | %package devel | |
65 | Summary: Development libraries for abrt | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-libs = %{version}-%{release} | |
68 | ||
69 | %description devel | |
70 | Development libraries and headers for %{name}. | |
71 | ||
72 | %package gui | |
73 | Summary: abrt's gui | |
74 | Group: X11/Applications | |
75 | Requires(post,postun): gtk-update-icon-cache | |
76 | Requires(post,postun): hicolor-icon-theme | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | Requires: python-dbus | |
79 | Requires: python-gnome-desktop-keyring | |
80 | Requires: python-gnome-vfs | |
81 | Requires: python-pygtk-glade | |
82 | Requires: python-pygtk-gtk | |
83 | # only if gtk2 version < 2.17 | |
84 | #Requires: python-sexy | |
85 | Provides: abrt-applet = %{version}-%{release} | |
86 | Obsoletes: abrt-applet < 0.0.5 | |
87 | Conflicts: abrt-applet < 0.0.5 | |
88 | ||
89 | %description gui | |
90 | GTK+ wizard for convenient bug reporting. | |
91 | ||
92 | %package addon-ccpp | |
93 | Summary: abrt's C/C++ addon | |
94 | Group: Libraries | |
95 | Requires: %{name} = %{version}-%{release} | |
96 | Requires: elfutils | |
97 | Requires: yum-utils | |
98 | ||
99 | %description addon-ccpp | |
100 | This package contains hook for C/C++ crashed programs and abrt's C/C++ | |
101 | analyzer plugin. | |
102 | ||
103 | %package addon-kerneloops | |
104 | Summary: abrt's kerneloops addon | |
105 | Group: Libraries | |
106 | Requires: %{name} = %{version}-%{release} | |
107 | Requires: curl | |
108 | Obsoletes: abrt-plugin-kerneloops | |
109 | Obsoletes: abrt-plugin-kerneloopsreporter | |
110 | Obsoletes: kerneloops | |
111 | ||
112 | %description addon-kerneloops | |
113 | This package contains plugin for collecting kernel crash information | |
114 | and reporter plugin which sends this information to specified server, | |
115 | usually to kerneloops.org. | |
116 | ||
117 | %package plugin-rhfastcheck | |
118 | Summary: %{name}'s rhfastcheck plugin | |
119 | Group: Libraries | |
120 | Requires: %{name} = %{version}-%{release} | |
121 | ||
122 | %description plugin-rhfastcheck | |
123 | Plugin to quickly check RH support DB for known solution. | |
124 | ||
125 | %package plugin-rhticket | |
126 | Summary: %{name}'s rhticket plugin | |
127 | Group: Libraries | |
128 | Requires: %{name} = %{version}-%{release} | |
129 | ||
130 | %description plugin-rhticket | |
131 | Plugin to report bugs into RH support system. | |
132 | ||
133 | %package plugin-logger | |
134 | Summary: abrt's logger reporter plugin | |
135 | Group: Libraries | |
136 | Requires: %{name} = %{version}-%{release} | |
137 | ||
138 | %description plugin-logger | |
139 | The simple reporter plugin which writes a report to a specified file. | |
140 | ||
141 | %package plugin-mailx | |
142 | Summary: abrt's mailx reporter plugin | |
143 | Group: Libraries | |
144 | Requires: %{name} = %{version}-%{release} | |
145 | Requires: mailx | |
146 | ||
147 | %description plugin-mailx | |
148 | The simple reporter plugin which sends a report via mailx to a | |
149 | specified email. | |
150 | ||
151 | %package plugin-runapp | |
152 | Summary: abrt's runapp plugin | |
153 | Group: Libraries | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | ||
156 | %description plugin-runapp | |
157 | Plugin to run external programs. | |
158 | ||
159 | %package plugin-sosreport | |
160 | Summary: abrt's sosreport plugin | |
161 | Group: Libraries | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | Requires: sosreport | |
164 | ||
165 | %description plugin-sosreport | |
166 | Plugin to include an sosreport in an abrt report. | |
167 | ||
168 | %package plugin-bugzilla | |
169 | Summary: abrt's bugzilla plugin | |
170 | Group: Libraries | |
171 | Requires: %{name} = %{version}-%{release} | |
172 | ||
173 | %description plugin-bugzilla | |
174 | Plugin to report bugs into the bugzilla. | |
175 | ||
176 | %package plugin-catcut | |
177 | Summary: abrt's catcut plugin | |
178 | Group: Libraries | |
179 | Requires: %{name} = %{version}-%{release} | |
180 | ||
181 | %description plugin-catcut | |
182 | Plugin to report bugs into the catcut. | |
183 | ||
184 | %package plugin-ticketuploader | |
185 | Summary: abrt's ticketuploader plugin | |
186 | Group: Libraries | |
187 | Requires: %{name} = %{version}-%{release} | |
188 | ||
189 | %description plugin-ticketuploader | |
190 | Plugin to report bugs into anonymous FTP site associated with | |
191 | ticketing system. | |
192 | ||
193 | %package plugin-filetransfer | |
194 | Summary: abrt's File Transfer plugin | |
195 | Group: Libraries | |
196 | Requires: %{name} = %{version}-%{release} | |
197 | ||
198 | %description plugin-filetransfer | |
199 | Plugin to uploading files to a server. | |
200 | ||
201 | %package addon-python | |
202 | Summary: abrt's addon for catching and analyzing Python exceptions | |
203 | Group: Libraries | |
204 | Requires: %{name} = %{version}-%{release} | |
205 | ||
206 | %description addon-python | |
207 | This package contains python hook and python analyzer plugin for | |
208 | handling uncaught exception in python programs. | |
209 | ||
210 | %package cli | |
211 | Summary: abrt's command line interface | |
212 | Group: X11/Applications | |
213 | Requires: %{name} = %{version}-%{release} | |
214 | # analyzers | |
215 | Requires: %{name}-addon-ccpp | |
216 | Requires: %{name}-addon-kerneloops | |
217 | Requires: %{name}-addon-python | |
218 | # reporters | |
219 | Requires: %{name}-plugin-logger | |
220 | Requires: %{name}-plugin-runapp | |
221 | ||
222 | %description cli | |
223 | This package contains simple command line client for controling abrt | |
224 | daemon over the sockets. | |
225 | ||
226 | %package desktop | |
227 | Summary: Virtual package to install all necessary packages for usage from desktop environment | |
228 | Group: X11/Applications | |
229 | # This package gets installed when anything requests bug-buddy - | |
230 | # happens when users upgrade Fn to Fn+1; | |
231 | # or if user just wants "typical desktop installation". | |
232 | # Installing abrt-desktop should result in the abrt which works without | |
233 | # any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed) | |
234 | Requires: %{name} = %{version}-%{release} | |
235 | Requires: %{name}-addon-ccpp = %{version}-%{release} | |
236 | Requires: %{name}-addon-kerneloops = %{version}-%{release} | |
237 | Requires: %{name}-addon-python = %{version}-%{release} | |
238 | # Default config of addon-ccpp requires gdb | |
239 | Requires: %{name}-gui | |
240 | Requires: %{name}-plugin-logger | |
241 | Requires: %{name}-plugin-runapp | |
242 | Requires: gdb >= 7.0-3 | |
243 | Provides: bug-buddy | |
244 | Obsoletes: bug-buddy | |
245 | ||
246 | %description desktop | |
247 | Virtual package to make easy default installation on desktop | |
248 | environments. | |
249 | ||
250 | %prep | |
251 | %setup -q | |
252 | %patch0 -p1 | |
253 | %patch1 -p1 | |
254 | %patch2 -p1 | |
255 | %patch3 -p1 | |
256 | ||
257 | %build | |
258 | %{__libtoolize} | |
259 | %{__aclocal} | |
260 | %{__autoconf} | |
261 | %{__autoheader} | |
262 | %{__automake} | |
263 | %configure \ | |
264 | --with-systemdsystemunitdir=%{systemdunitdir} | |
265 | ||
266 | %{__make} | |
267 | ||
268 | %install | |
269 | rm -rf $RPM_BUILD_ROOT | |
270 | %{__make} install \ | |
271 | DESTDIR=$RPM_BUILD_ROOT | |
272 | ||
273 | %find_lang %{name} | |
274 | ||
275 | %py_postclean | |
276 | ||
277 | # remove all .la files | |
278 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
279 | ||
280 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
281 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/abrtd | |
282 | install -d $RPM_BUILD_ROOT/var/cache/%{name} | |
283 | install -d $RPM_BUILD_ROOT/var/cache/%{name}-di | |
284 | install -d $RPM_BUILD_ROOT/var/run/%{name} | |
285 | ||
286 | cp -a src/Gui/abrt.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
287 | cp -a src/Applet/%{name}-applet.desktop $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart | |
288 | ||
289 | %clean | |
290 | rm -rf $RPM_BUILD_ROOT | |
291 | ||
292 | %pre | |
293 | %groupadd -g 248 abrt | |
294 | %useradd -u 248 -g abrt -d /etc/abrt -s /sbin/nologin abrt | |
295 | ||
296 | %post | |
297 | /sbin/chkconfig --add abrtd | |
298 | %service abrtd restart | |
299 | ||
300 | %preun | |
301 | if [ "$1" = "0" ]; then | |
302 | %service abrtd stop | |
303 | /sbin/chkconfig --del abrtd | |
304 | fi | |
305 | ||
306 | %postun | |
307 | if [ "$1" = "0" ]; then | |
308 | %userremove abrt | |
309 | %groupremove abrt | |
310 | fi | |
311 | ||
312 | %post gui | |
313 | %update_icon_cache hicolor | |
314 | ||
315 | %postun gui | |
316 | %update_icon_cache hicolor | |
317 | ||
318 | %post libs -p /sbin/ldconfig | |
319 | %postun libs -p /sbin/ldconfig | |
320 | ||
321 | %files -f %{name}.lang | |
322 | %defattr(644,root,root,755) | |
323 | %doc README | |
324 | %attr(755,root,root) %{_sbindir}/abrtd | |
325 | %attr(755,root,root) %{_bindir}/%{name}-debuginfo-install | |
326 | %attr(755,root,root) %{_bindir}/%{name}-backtrace | |
327 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf | |
328 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/gpg_keys | |
329 | /etc/dbus-1/system.d/dbus-%{name}.conf | |
330 | %attr(754,root,root) /etc/rc.d/init.d/abrtd | |
331 | %dir %attr(775,root,abrt) /var/cache/%{name} | |
332 | %dir /var/run/%{name} | |
333 | %dir %{_sysconfdir}/%{name} | |
334 | %dir %{_sysconfdir}/%{name}/plugins | |
335 | %dir %{_libdir}/%{name} | |
336 | %{_mandir}/man1/%{name}-backtrace.1* | |
337 | %{_mandir}/man8/abrtd.8* | |
338 | %{_mandir}/man5/%{name}.conf.5* | |
339 | %{_mandir}/man7/%{name}-plugins.7* | |
340 | %{_datadir}/polkit-1/actions/org.fedoraproject.abrt.policy | |
341 | %{_datadir}/dbus-1/system-services/com.redhat.abrt.service | |
342 | ||
343 | # plugin-sqlite3 | |
344 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/SQLite3.conf | |
345 | %attr(755,root,root) %{_libdir}/%{name}/libSQLite3.so | |
346 | %{_mandir}/man7/%{name}-SQLite3.7* | |
347 | ||
348 | %files libs | |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/libABRTUtils.so.*.*.* | |
351 | %attr(755,root,root) %ghost %{_libdir}/libABRTUtils.so.0 | |
352 | %attr(755,root,root) %{_libdir}/libABRTdUtils.so.*.*.* | |
353 | %attr(755,root,root) %ghost %{_libdir}/libABRTdUtils.so.0 | |
354 | ||
355 | %files devel | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_libdir}/libABRTUtils.so | |
358 | %attr(755,root,root) %{_libdir}/libABRTdUtils.so | |
359 | ||
360 | %files gui | |
361 | %defattr(644,root,root,755) | |
362 | %attr(755,root,root) %{_bindir}/%{name}-gui | |
363 | %dir %{_datadir}/%{name} | |
364 | # all glade, gtkbuilder and py files for gui | |
365 | %{_datadir}/%{name}/*.py* | |
366 | %{_datadir}/%{name}/*.glade | |
367 | %{_desktopdir}/%{name}.desktop | |
368 | %{_iconsdir}/hicolor/*/apps/* | |
369 | # XXX ... should be in hicolor dir? | |
370 | %dir %{_datadir}/%{name}/icons | |
371 | %dir %{_datadir}/%{name}/icons/hicolor | |
372 | %dir %{_datadir}/%{name}/icons/hicolor/* | |
373 | %dir %{_datadir}/%{name}/icons/hicolor/*/status | |
374 | %{_datadir}/%{name}/icons/hicolor/*/status/*.png | |
375 | %attr(755,root,root) %{_bindir}/%{name}-applet | |
376 | %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop | |
377 | ||
378 | %files addon-ccpp | |
379 | %defattr(644,root,root,755) | |
380 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/CCpp.conf | |
381 | %attr(755,root,root) %{_libdir}/%{name}/libCCpp.so | |
382 | %attr(755,root,root) %{_libexecdir}/abrt-hook-ccpp | |
383 | %dir %{_localstatedir}/cache/%{name}-di | |
384 | ||
385 | %files addon-kerneloops | |
386 | %defattr(644,root,root,755) | |
387 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf | |
388 | %attr(755,root,root) %{_bindir}/dumpoops | |
389 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloops.so | |
390 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsScanner.so | |
391 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsReporter.so | |
392 | %{_libdir}/%{name}/KerneloopsReporter.GTKBuilder | |
393 | %{_mandir}/man7/%{name}-KerneloopsScanner.7* | |
394 | %{_mandir}/man7/%{name}-KerneloopsReporter.7* | |
395 | ||
396 | %files plugin-logger | |
397 | %defattr(644,root,root,755) | |
398 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Logger.conf | |
399 | %attr(755,root,root) %{_libdir}/%{name}/libLogger.so | |
400 | %{_libdir}/%{name}/Logger.GTKBuilder | |
401 | %{_mandir}/man7/%{name}-Logger.7* | |
402 | ||
403 | %files plugin-mailx | |
404 | %defattr(644,root,root,755) | |
405 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Mailx.conf | |
406 | %attr(755,root,root) %{_libdir}/%{name}/libMailx.so | |
407 | %{_libdir}/%{name}/Mailx.GTKBuilder | |
408 | %{_mandir}/man7/%{name}-Mailx.7* | |
409 | ||
410 | %files plugin-runapp | |
411 | %defattr(644,root,root,755) | |
412 | %attr(755,root,root) %{_libdir}/%{name}/libRunApp.so | |
413 | %{_mandir}/man7/%{name}-RunApp.7* | |
414 | ||
415 | %files plugin-sosreport | |
416 | %defattr(644,root,root,755) | |
417 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/SOSreport.conf | |
418 | %attr(755,root,root) %{_libdir}/%{name}/libSOSreport.so | |
419 | ||
420 | %files plugin-bugzilla | |
421 | %defattr(644,root,root,755) | |
422 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf | |
423 | %attr(755,root,root) %{_libdir}/%{name}/libBugzilla.so | |
424 | %{_libdir}/%{name}/Bugzilla.GTKBuilder | |
425 | %{_mandir}/man7/%{name}-Bugzilla.7* | |
426 | ||
427 | %files plugin-rhfastcheck | |
428 | %defattr(644,root,root,755) | |
429 | %attr(755,root,root) %{_libdir}/%{name}/librhfastcheck.so | |
430 | ||
431 | %files plugin-rhticket | |
432 | %defattr(644,root,root,755) | |
433 | %attr(755,root,root) %{_libdir}/%{name}/librhticket.so | |
434 | ||
435 | %files plugin-catcut | |
436 | %defattr(644,root,root,755) | |
437 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Catcut.conf | |
438 | %attr(755,root,root) %{_libdir}/%{name}/libCatcut.so | |
439 | %{_libdir}/%{name}/Catcut.GTKBuilder | |
440 | #%{_mandir}/man7/%{name}-Catcut.7* | |
441 | ||
442 | %files plugin-ticketuploader | |
443 | %defattr(644,root,root,755) | |
444 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/TicketUploader.conf | |
445 | %attr(755,root,root) %{_libdir}/%{name}/libTicketUploader.so | |
446 | %{_libdir}/%{name}/TicketUploader.GTKBuilder | |
447 | %{_mandir}/man7/%{name}-TicketUploader.7* | |
448 | ||
449 | %files plugin-filetransfer | |
450 | %defattr(644,root,root,755) | |
451 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf | |
452 | %attr(755,root,root) %{_libdir}/%{name}/libFileTransfer.so | |
453 | %{_mandir}/man7/%{name}-FileTransfer.7* | |
454 | ||
455 | %files addon-python | |
456 | %defattr(644,root,root,755) | |
457 | %attr(4755,abrt,abrt) %{_libexecdir}/abrt-hook-python | |
458 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Python.conf | |
459 | %attr(755,root,root) %{_libdir}/%{name}/libPython.so | |
460 | %{py_sitescriptdir}/*.py[co] | |
461 | %{py_sitescriptdir}/abrt.pth | |
462 | ||
463 | %files cli | |
464 | %defattr(644,root,root,755) | |
465 | %attr(755,root,root) %{_bindir}/abrt-cli | |
466 | %{_mandir}/man1/abrt-cli.1* | |
467 | /etc/bash_completion.d/abrt-cli.bash | |
468 | ||
469 | %files desktop | |
470 | %defattr(644,root,root,755) |