]>
Commit | Line | Data |
---|---|---|
195da996 ER |
1 | Summary: Automatic bug detection and reporting tool |
2 | Name: abrt | |
8324bd53 | 3 | Version: 1.0.0 |
195da996 ER |
4 | Release: 0.1 |
5 | License: GPL v2+ | |
6 | Group: Applications/System | |
7 | URL: https://fedorahosted.org/abrt/ | |
8 | Source0: http://jmoskovc.fedorapeople.org/%{name}-%{version}.tar.gz | |
8324bd53 | 9 | # Source0-md5: 62a8a6a1d7712472133b97b38469683e |
195da996 | 10 | Source1: %{name}.init |
8324bd53 | 11 | BuildRequires: bzip2-devel |
195da996 | 12 | BuildRequires: curl-devel |
195da996 ER |
13 | BuildRequires: dbus-devel |
14 | BuildRequires: desktop-file-utils | |
195da996 | 15 | BuildRequires: gettext |
6b061db1 | 16 | BuildRequires: gtk+2-devel |
8324bd53 | 17 | BuildRequires: intltool |
6b061db1 | 18 | BuildRequires: libmagic-devel |
195da996 | 19 | BuildRequires: libnotify-devel |
8324bd53 ER |
20 | BuildRequires: libtar-devel |
21 | BuildRequires: libzip-devel | |
195da996 | 22 | BuildRequires: nss-devel |
6b061db1 | 23 | BuildRequires: polkit-devel |
195da996 | 24 | BuildRequires: python-devel |
6b061db1 ER |
25 | BuildRequires: rpm-devel |
26 | BuildRequires: sqlite3-devel | |
195da996 | 27 | BuildRequires: xmlrpc-c-devel |
8324bd53 ER |
28 | BuildRequires: zlib-devel |
29 | Requires(pre): /usr/sbin/groupadd | |
195da996 ER |
30 | Requires: %{name}-libs = %{version}-%{release} |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | abrt is a tool to help users to detect defects in applications and to | |
35 | create a bug report with all informations needed by maintainer to fix | |
36 | it. It uses plugin system to extend its functionality. | |
37 | ||
38 | %package libs | |
39 | Summary: Libraries for abrt | |
40 | Group: Libraries | |
41 | ||
42 | %description libs | |
43 | Libraries for %{name}. | |
44 | ||
45 | %package devel | |
46 | Summary: Development libraries for abrt | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-libs = %{version}-%{release} | |
49 | ||
50 | %description devel | |
51 | Development libraries and headers for %{name}. | |
52 | ||
53 | %package gui | |
54 | Summary: abrt's gui | |
55 | Group: X11/Applications | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | Requires: dbus-python | |
8324bd53 | 58 | Requires: gnome-python2-gnomekeyring |
195da996 ER |
59 | Requires: gnome-python2-gnomevfs |
60 | Requires: pygtk2-libglade | |
61 | Requires: python-pygtk | |
62 | # only if gtk2 version < 2.17 | |
63 | #Requires: python-sexy | |
64 | Provides: abrt-applet = %{version}-%{release} | |
6b061db1 | 65 | Provides: bug-buddy |
195da996 ER |
66 | Obsoletes: abrt-applet < 0.0.5 |
67 | Obsoletes: bug-buddy | |
6b061db1 | 68 | Obsoletes: bug-buddy |
195da996 ER |
69 | Conflicts: abrt-applet < 0.0.5 |
70 | ||
71 | %description gui | |
72 | GTK+ wizard for convenient bug reporting. | |
73 | ||
74 | %package addon-ccpp | |
75 | Summary: %{name}'s C/C++ addon | |
76 | Group: Libraries | |
77 | Requires: %{name} = %{version}-%{release} | |
8324bd53 ER |
78 | Requires: elfutils |
79 | Requires: gdb >= 7.0-3 | |
80 | Requires: yum-utils | |
195da996 ER |
81 | |
82 | %description addon-ccpp | |
83 | This package contains hook for C/C++ crashed programs and abrt's C/C++ | |
84 | analyzer plugin. | |
85 | ||
8324bd53 ER |
86 | %package plugin-firefox |
87 | Summary: %{name}'s Firefox analyzer plugin | |
88 | Group: Libraries | |
89 | Requires: %{name} = %{version}-%{release} | |
90 | Requires: elfutils | |
91 | Requires: gdb >= 7.0-3 | |
92 | Requires: yum-utils | |
93 | ||
94 | %description plugin-firefox | |
95 | This package contains hook for Firefox | |
96 | ||
195da996 ER |
97 | %package addon-kerneloops |
98 | Summary: %{name}'s kerneloops addon | |
99 | Group: Libraries | |
100 | Requires: %{name} = %{version}-%{release} | |
101 | Requires: %{name}-plugin-kerneloopsreporter = %{version}-%{release} | |
102 | Obsoletes: abrt-plugin-kerneloops | |
103 | Obsoletes: kerneloops | |
104 | ||
105 | %description addon-kerneloops | |
106 | This package contains plugins for kernel crashes information | |
107 | collecting. | |
108 | ||
109 | %package plugin-kerneloopsreporter | |
110 | Summary: %{name}'s kerneloops reporter plugin | |
111 | Group: Libraries | |
112 | Requires: %{name} = %{version}-%{release} | |
113 | Requires: curl | |
114 | ||
115 | %description plugin-kerneloopsreporter | |
116 | This package contains reporter plugin, that sends, collected by abrt's | |
117 | kerneloops addon, information about kernel crashes to specified | |
118 | server, e.g. kerneloops.org. | |
119 | ||
120 | %package plugin-sqlite3 | |
121 | Summary: %{name}'s SQLite3 database plugin | |
122 | Group: Libraries | |
123 | Requires: %{name} = %{version}-%{release} | |
124 | ||
125 | %description plugin-sqlite3 | |
126 | This package contains SQLite3 database plugin. It is used for storing | |
127 | the data required for creating a bug report. | |
128 | ||
129 | %package plugin-logger | |
130 | Summary: %{name}'s logger reporter plugin | |
131 | Group: Libraries | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | ||
134 | %description plugin-logger | |
135 | The simple reporter plugin, which writes a report to a specified file. | |
136 | ||
137 | %package plugin-mailx | |
138 | Summary: %{name}'s mailx reporter plugin | |
139 | Group: Libraries | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | Requires: mailx | |
142 | ||
143 | %description plugin-mailx | |
144 | The simple reporter plugin, which sends a report via mailx to a | |
145 | specified email. | |
146 | ||
147 | %package plugin-runapp | |
148 | Summary: %{name}'s runapp plugin | |
149 | Group: Libraries | |
150 | Requires: %{name} = %{version}-%{release} | |
151 | ||
152 | %description plugin-runapp | |
153 | Plugin to run external programs. | |
154 | ||
155 | %package plugin-sosreport | |
156 | Summary: %{name}'s sosreport plugin | |
157 | Group: Libraries | |
158 | Requires: %{name} = %{version}-%{release} | |
159 | Requires: sos | |
160 | ||
161 | %description plugin-sosreport | |
162 | Plugin to include an sosreport in an abrt report. | |
163 | ||
164 | %package plugin-bugzilla | |
165 | Summary: %{name}'s bugzilla plugin | |
166 | Group: Libraries | |
167 | Requires: %{name} = %{version}-%{release} | |
168 | ||
169 | %description plugin-bugzilla | |
170 | Plugin to report bugs into the bugzilla. | |
171 | ||
8324bd53 ER |
172 | %package plugin-catcut |
173 | Summary: %{name}'s catcut plugin | |
174 | Group: Libraries | |
175 | Requires: %{name} = %{version}-%{release} | |
176 | ||
177 | %description plugin-catcut | |
178 | Plugin to report bugs into the catcut. | |
179 | ||
6b061db1 ER |
180 | %package plugin-ticketuploader |
181 | Summary: %{name}'s ticketuploader plugin | |
182 | Group: Libraries | |
183 | Requires: %{name} = %{version}-%{release} | |
184 | ||
185 | %description plugin-ticketuploader | |
186 | Plugin to report bugs into anonymous FTP site associated with | |
187 | ticketing system. | |
188 | ||
195da996 ER |
189 | %package plugin-filetransfer |
190 | Summary: %{name}'s File Transfer plugin | |
191 | Group: Libraries | |
192 | Requires: %{name} = %{version}-%{release} | |
193 | ||
194 | %description plugin-filetransfer | |
195 | Plugin to uploading files to a server. | |
196 | ||
197 | %package addon-python | |
198 | Summary: %{name}'s addon for catching and analyzing Python exceptions | |
199 | Group: Libraries | |
200 | Requires: %{name} = %{version}-%{release} | |
201 | ||
202 | %description addon-python | |
203 | This package contains python hook and python analyzer plugin for | |
204 | hadnling uncaught exception in python programs. | |
205 | ||
206 | %package cli | |
207 | Summary: %{name}'s command line interface | |
208 | Group: X11/Applications | |
209 | Requires: %{name} = %{version}-%{release} | |
210 | ||
211 | %description cli | |
212 | This package contains simple command line client for controling abrt | |
213 | daemon over the sockets. | |
214 | ||
215 | %package desktop | |
216 | Summary: Virtual package to install all necessary packages for usage from desktop environment | |
217 | Group: X11/Applications | |
218 | Requires: %{name} = %{version}-%{release} | |
219 | Requires: %{name}-addon-ccpp = %{version}-%{release} | |
220 | Requires: %{name}-addon-kerneloops = %{version}-%{release} | |
221 | Requires: %{name}-addon-python = %{version}-%{release} | |
195da996 | 222 | Requires: %{name}-plugin-bugzilla = %{version}-%{release} |
8324bd53 ER |
223 | #Requires: %{name}-plugin-firefox = %{version}-%{release} |
224 | Requires: %{name}-plugin-logger = %{version}-%{release} | |
195da996 ER |
225 | Requires: %{name}-plugin-sqlite3 = %{version}-%{release} |
226 | ||
227 | %description desktop | |
228 | Virtual package to make easy default instalation on desktop | |
229 | environments. | |
230 | ||
231 | %prep | |
232 | %setup -q | |
6b061db1 | 233 | #sed -i -e /PKG_CHECK_MODULES.*RPM/s,^,dnl, configure.ac |
195da996 ER |
234 | |
235 | %build | |
236 | %configure | |
237 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool | |
238 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool | |
6b061db1 | 239 | %{__make} |
195da996 ER |
240 | |
241 | %install | |
242 | rm -rf $RPM_BUILD_ROOT | |
6b061db1 ER |
243 | %{__make} install \ |
244 | mandir=%{_mandir} \ | |
245 | DESTDIR=$RPM_BUILD_ROOT | |
195da996 ER |
246 | %find_lang %{name} |
247 | ||
195da996 ER |
248 | # remove all .la and .a files |
249 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f | |
250 | install -d ${RPM_BUILD_ROOT}/%{_initrddir} | |
6b061db1 | 251 | install %{SOURCE1} ${RPM_BUILD_ROOT}/%{_initrddir}/abrtd |
195da996 | 252 | install -d $RPM_BUILD_ROOT/var/cache/%{name} |
8324bd53 ER |
253 | install -d $RPM_BUILD_ROOT/var/cache/%{name}-di |
254 | install -d $RPM_BUILD_ROOT/var/run/%{name} | |
195da996 ER |
255 | |
256 | desktop-file-install \ | |
8324bd53 ER |
257 | --dir $RPM_BUILD_ROOT%{_desktopdir} \ |
258 | --vendor fedora \ | |
259 | --delete-original \ | |
260 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
195da996 ER |
261 | |
262 | desktop-file-install \ | |
263 | --dir ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart \ | |
264 | src/Applet/%{name}-applet.desktop | |
265 | ||
266 | %clean | |
267 | rm -rf $RPM_BUILD_ROOT | |
268 | ||
8324bd53 ER |
269 | %pre |
270 | /usr/sbin/groupadd -f --system abrt | |
271 | ||
195da996 | 272 | %post |
6b061db1 | 273 | /sbin/chkconfig --add abrtd |
8324bd53 | 274 | %service abortd restart |
195da996 ER |
275 | |
276 | %preun | |
6b061db1 ER |
277 | if [ "$1" = "0" ]; then |
278 | %service abrtd stop | |
279 | /sbin/chkconfig --del abrtd | |
195da996 ER |
280 | fi |
281 | ||
6b061db1 | 282 | %post libs -p /sbin/ldconfig |
195da996 ER |
283 | %postun libs -p /sbin/ldconfig |
284 | ||
285 | %files -f %{name}.lang | |
286 | %defattr(644,root,root,755) | |
287 | %doc README COPYING | |
288 | %attr(755,root,root) %{_sbindir}/%{name}d | |
8324bd53 | 289 | %attr(755,root,root) %{_bindir}/%{name}-debuginfo-install |
195da996 ER |
290 | %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf |
291 | %config(noreplace) /etc/dbus-1/system.d/dbus-%{name}.conf | |
292 | %{_initrddir}/%{name}d | |
293 | %dir /var/cache/%{name} | |
8324bd53 ER |
294 | %dir %attr(775, root, abrt) /var/cache/%{name} |
295 | %dir /var/cache/%{name}-di | |
296 | %dir /var/run/%{name} | |
195da996 ER |
297 | %dir %{_sysconfdir}/%{name} |
298 | %dir %{_sysconfdir}/%{name}/plugins | |
299 | %dir %{_libdir}/%{name} | |
8324bd53 | 300 | %{_mandir}/man8/abrtd.8* |
195da996 ER |
301 | %{_mandir}/man5/%{name}.conf.5* |
302 | %{_mandir}/man7/%{name}-plugins.7* | |
8324bd53 ER |
303 | %{_mandir}/man5/pyhook.conf.5* |
304 | %{_datadir}/polkit-1/actions/org.fedoraproject.abrt.policy | |
305 | %{_datadir}/dbus-1/system-services/com.redhat.abrt.service | |
195da996 ER |
306 | |
307 | %files libs | |
308 | %defattr(644,root,root,755) | |
309 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
310 | ||
311 | %files devel | |
312 | %defattr(644,root,root,755) | |
313 | %{_libdir}/lib*.so | |
314 | ||
315 | %files gui | |
316 | %defattr(644,root,root,755) | |
317 | %attr(755,root,root) %{_bindir}/%{name}-gui | |
318 | %{_datadir}/%{name} | |
8324bd53 ER |
319 | +%{_desktopdir}/%{name}.desktop |
320 | +%{_pixmapsdir}/abrt.png | |
321 | +%{_iconsdir}/hicolor/48x48/apps/*.png | |
195da996 ER |
322 | %attr(755,root,root) %{_bindir}/%{name}-applet |
323 | %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop | |
324 | ||
325 | %files addon-ccpp | |
326 | %defattr(644,root,root,755) | |
327 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf | |
328 | %attr(755,root,root) %{_libdir}/%{name}/libCCpp.so* | |
329 | %{_libexecdir}/hookCCpp | |
330 | ||
8324bd53 ER |
331 | #%files plugin-firefox |
332 | #%{_libdir}/%{name}/libFirefox.so* | |
333 | ||
195da996 ER |
334 | %files addon-kerneloops |
335 | %defattr(644,root,root,755) | |
8324bd53 | 336 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf |
195da996 ER |
337 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsScanner.conf |
338 | %attr(755,root,root) %{_bindir}/dumpoops | |
339 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloops.so* | |
340 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsScanner.so* | |
341 | %{_mandir}/man7/%{name}-KerneloopsScanner.7* | |
342 | ||
343 | %files plugin-kerneloopsreporter | |
344 | %defattr(644,root,root,755) | |
345 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsReporter.conf | |
346 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsReporter.so* | |
347 | %{_libdir}/%{name}/KerneloopsReporter.GTKBuilder | |
348 | %{_mandir}/man7/%{name}-KerneloopsReporter.7* | |
349 | ||
350 | %files plugin-sqlite3 | |
351 | %defattr(644,root,root,755) | |
352 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf | |
353 | %attr(755,root,root) %{_libdir}/%{name}/libSQLite3.so* | |
354 | %{_mandir}/man7/%{name}-SQLite3.7* | |
355 | ||
356 | %files plugin-logger | |
357 | %defattr(644,root,root,755) | |
358 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf | |
359 | %attr(755,root,root) %{_libdir}/%{name}/libLogger.so* | |
360 | %{_libdir}/%{name}/Logger.GTKBuilder | |
361 | %{_mandir}/man7/%{name}-Logger.7* | |
362 | ||
363 | %files plugin-mailx | |
364 | %defattr(644,root,root,755) | |
365 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf | |
366 | %attr(755,root,root) %{_libdir}/%{name}/libMailx.so* | |
367 | %{_libdir}/%{name}/Mailx.GTKBuilder | |
368 | %{_mandir}/man7/%{name}-Mailx.7* | |
369 | ||
370 | %files plugin-runapp | |
371 | %defattr(644,root,root,755) | |
372 | %attr(755,root,root) %{_libdir}/%{name}/libRunApp.so* | |
373 | %{_mandir}/man7/%{name}-RunApp.7* | |
374 | ||
375 | %files plugin-sosreport | |
376 | %defattr(644,root,root,755) | |
377 | %attr(755,root,root) %{_libdir}/%{name}/libSOSreport.so* | |
378 | ||
379 | %files plugin-bugzilla | |
380 | %defattr(644,root,root,755) | |
381 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf | |
382 | %attr(755,root,root) %{_libdir}/%{name}/libBugzilla.so* | |
383 | %{_libdir}/%{name}/Bugzilla.GTKBuilder | |
384 | %{_mandir}/man7/%{name}-Bugzilla.7* | |
385 | ||
8324bd53 ER |
386 | %files plugin-catcut |
387 | %defattr(644,root,root,755) | |
388 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Catcut.conf | |
389 | %attr(755,root,root) %{_libdir}/%{name}/libCatcut.so* | |
390 | %{_libdir}/%{name}/Catcut.GTKBuilder | |
391 | %{_mandir}/man7/%{name}-Catcut.7* | |
392 | ||
6b061db1 ER |
393 | %files plugin-ticketuploader |
394 | %defattr(644,root,root,755) | |
395 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/TicketUploader.conf | |
396 | %attr(755,root,root) %{_libdir}/%{name}/libTicketUploader.so* | |
397 | %{_libdir}/%{name}/TicketUploader.GTKBuilder | |
398 | %{_mandir}/man7/%{name}-TicketUploader.7* | |
399 | ||
195da996 ER |
400 | %files plugin-filetransfer |
401 | %defattr(644,root,root,755) | |
402 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf | |
403 | %attr(755,root,root) %{_libdir}/%{name}/libFileTransfer.so* | |
404 | %{_mandir}/man7/%{name}-FileTransfer.7* | |
405 | ||
406 | %files addon-python | |
407 | %defattr(644,root,root,755) | |
8324bd53 | 408 | %attr(2755, root, abrt) %{_bindir}/%{name}-pyhook-helper |
195da996 | 409 | %config(noreplace) %{_sysconfdir}/%{name}/pyhook.conf |
8324bd53 | 410 | #%{python_sitearch}/ABRTUtils.so |
195da996 ER |
411 | %attr(755,root,root) %{_libdir}/%{name}/libPython.so* |
412 | %{python_site}/*.py* | |
413 | ||
414 | %files cli | |
415 | %defattr(644,root,root,755) | |
416 | %attr(755,root,root) %{_bindir}/abrt-cli | |
8324bd53 ER |
417 | %{_mandir}/man1/abrt-cli.1* |
418 | %{_sysconfdir}/bash_completion.d/abrt-cli.bash | |
195da996 ER |
419 | |
420 | %files desktop | |
421 | %defattr(644,root,root,755) |