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