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