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