/[packages]/cauldron/abrt/current/SPECS/abrt.spec
ViewVC logotype

Contents of /cauldron/abrt/current/SPECS/abrt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 203831 - (show annotations) (download)
Wed Feb 1 04:03:30 2012 UTC (8 years, 8 months ago) by fwang
File size: 16994 byte(s)
update file list
1 # (blino) FIXME: switch back to 1 when systemd is installable
2 %define with_systemd 1
3
4 %define lib_major 0
5 %define lib_name %mklibname %{name} %{lib_major}
6
7 %define lib_name_devel %mklibname %{name} -d
8 %define lib_report_devel %mklibname report -d
9
10 Summary: Automatic bug detection and reporting tool
11 Name: abrt
12 Version: 2.0.7
13 Release: %mkrel 1
14 License: GPLv2+
15 Group: System/Libraries
16 URL: https://fedorahosted.org/abrt/
17 Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
18 Source1: abrt.init
19 Source2: 00abrt.sh
20 Source3: 00abrt.csh
21 Source4: abrt-debuginfo-install
22 Source5: abrt-ccpp.init
23 Source6: abrt-oops.init
24 Patch0: abrt-2.0.7-link.patch
25 # (fc) disable package signature check
26 Patch2: abrt_disable_gpgcheck.diff
27 # (pt) generate stacktrace twice to get missing -debug packages
28 #Patch5: abrt-1.1.14-debug.patch
29 # (fc) disable nspluginwrapper-i386 (Mdv bug #59237)
30 Patch7: abrt-2.0.2-nspluginwrapper.patch
31 # (fc) fix for non UTF-8 locale
32 Patch8: abrt-2.0.2-nonutf8-locale.patch
33 Patch9: abrt-2.0.2-glib-2.32.patch
34 Patch10: abrt-sec.diff
35 # (eugeni): disable kernel oops cron plugin by default (mdv #61986)
36 #Patch12: abrt-1.1.14-disable_oops_scanner.patch
37
38 # Fedora patches
39 BuildRequires: dbus-devel libdbus-glib-devel
40 BuildRequires: gtk2-devel
41 BuildRequires: curl-devel
42 BuildRequires: rpm-devel
43 BuildRequires: sqlite-devel > 3.0
44 BuildRequires: desktop-file-utils
45 #BuildRequires: nss-devel
46 BuildRequires: libnotify-devel
47 BuildRequires: xmlrpc-c-devel
48 BuildRequires: xmlrpc-c
49 BuildRequires: file-devel
50 BuildRequires: python-devel
51 BuildRequires: gettext
52 BuildRequires: polkit-1-devel
53 BuildRequires: libzip-devel, libtar-devel, bzip2-devel, zlib-devel
54 BuildRequires: intltool
55 BuildRequires: gnome-common
56 BuildRequires: bison
57 BuildRequires: asciidoc
58 BuildRequires: docbook-style-xsl docbook5-style-xsl
59 BuildRequires: xmlto
60 BuildRequires: libgnome-keyring-devel
61 BuildRequires: gettext-devel
62 %if %{?with_systemd}
63 BuildRequires: systemd-units
64 %endif
65 BuildRequires: btparser-devel
66 BuildRequires: libreport-devel
67 BuildRequires: pkgconfig(libreport-gtk)
68 Requires: %{lib_name} >= %{version}-%{release}
69 Requires(pre): rpm-helper
70 Requires(post): rpm-helper
71 Requires(preun): rpm-helper
72 Requires(postun): rpm-helper
73 Obsoletes: abrt-plugin-catcut < 1.1.13
74 Obsoletes: abrt-plugin-sqlite3 < 1.1.18
75 # required for transition from 1.1.13, can be removed after some time
76 Obsoletes: abrt-plugin-runapp < 1.1.18
77 Obsoletes: abrt-plugin-filetransfer < 1.1.18
78 Obsoletes: abrt-plugin-sosreport < 1.1.18
79
80 %description
81 %{name} is a tool to help users to detect defects in applications and
82 to create a bug report with all informations needed by maintainer to fix it.
83 It uses plugin system to extend its functionality.
84
85 %pre
86 %_pre_useradd %{name} %{_sysconfdir}/%{name} /bin/nologin
87 %_pre_groupadd %{name} %{name}
88
89 %post
90 %_post_service %{name}d
91 %if %{?with_systemd}
92 # Enable (but don't start) the units by default
93 /bin/systemctl enable %{name}d.service >/dev/null 2>&1 || :
94 %endif
95
96 %posttrans
97 service abrtd condrestart >/dev/null 2>&1 || :
98
99 %preun
100 %_preun_service %{name}d
101 %if %{?with_systemd}
102 if [ "$1" -eq "0" ] ; then
103 /bin/systemctl stop %{name}d.service >/dev/null 2>&1 || :
104 /bin/systemctl disable %{name}d.service >/dev/null 2>&1 || :
105 fi
106 %endif
107
108 %postun
109 %_postun_userdel %{name}
110 %_postun_groupdel %{name} %{name}
111 %if %{?with_systemd}
112 if [ $1 -ge 1 ] ; then
113 # On upgrade, reload init system configuration if we changed unit files
114 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
115 fi
116 %endif
117
118 %files -f %{name}.lang
119 %defattr(-,root,root,-)
120 %doc README COPYING
121 #systemd
122 %if %{?with_systemd}
123 %endif
124 %{_sbindir}/%{name}d
125 %{_sbindir}/%{name}-server
126 %{_sbindir}/abrt-dbus
127 %{_bindir}/%{name}-debuginfo-install
128 %{_bindir}/%{name}-handle-upload
129 %{_bindir}/%{name}-action-save-package-data
130 %{_bindir}/%{name}-retrace-client
131 %{_libexecdir}/abrt-handle-event
132 %config(noreplace) %{_sysconfdir}/%{name}/abrt.conf
133 %config(noreplace) %{_sysconfdir}/%{name}/abrt-action-save-package-data.conf
134 %config(noreplace) %{_sysconfdir}/%{name}/gpg_keys
135 %config(noreplace) %{_sysconfdir}/libreport/events.d/abrt_event.conf
136 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-abrt.conf
137 %config(noreplace) %{_sysconfdir}/libreport/events.d/smart_event.conf
138 %config(noreplace) %{_sysconfdir}/libreport/events.d/smolt_event.conf
139 %{_sysconfdir}/libreport/events.d/ccpp_retrace_event.conf
140 %{_sysconfdir}/libreport/events/analyze_RetraceServer.xml
141 %ghost %attr(0666, -, -) %{_localstatedir}/run/%{name}/abrt.socket
142 %ghost %attr(0644, -, -) %{_localstatedir}/run/%{name}d.pid
143 %{_initrddir}/%{name}d
144 #%dir %attr(0755, %{name}, %{name}) %{_localstatedir}/cache/%{name}
145 %dir /var/run/%{name}
146 %dir %{_sysconfdir}/%{name}
147 %dir %{_sysconfdir}/%{name}/plugins
148 %{_mandir}/man1/abrt-handle-upload.1.*
149 %{_mandir}/man1/abrt-server.1.*
150 %{_mandir}/man1/abrt-action-save-package-data.1.*
151 %{_mandir}/man1/abrt-retrace-client.1.*
152 %{_mandir}/man8/abrtd.8.*
153 %{_mandir}/man8/abrt-dbus.8.*
154 %{_mandir}/man5/abrt.conf.5.*
155 %{_mandir}/man5/abrt-action-save-package-data.conf.5.*
156 %{_datadir}/dbus-1/system-services/com.redhat.%{name}.service
157
158 #--------------------------------------------------------------------
159
160 %package -n %{lib_name}
161 Summary: Libraries for %{name}
162 Group: System/Libraries
163
164 %description -n %{lib_name}
165 Libraries for %{name}.
166
167 %files -n %{lib_name}
168 %defattr(-,root,root,-)
169 %{_libdir}/libabrt*.so.*
170
171 #--------------------------------------------------------------------
172
173 %package -n %{lib_name_devel}
174 Summary: Development libraries for %{name}
175 Group: Development/C
176 Requires: %{lib_name} = %{version}-%{release}
177 Requires: abrt = %{version}-%{release}
178 Obsoletes: %{_lib}abrt0-devel
179
180 %description -n %{lib_name_devel}
181 Development libraries and headers for %{name}.
182
183 %files -n %{lib_name_devel}
184 %defattr(-,root,root,-)
185 %{_includedir}/abrt/*
186 %{_libdir}/libabrt*.so
187 #FIXME: this should go to libreportgtk-devel package
188 %{_libdir}/pkgconfig/%{name}.pc
189
190 #--------------------------------------------------------------------
191
192 %package gui
193 Summary: %{name}'s gui
194 Group: Graphical desktop/Other
195 Requires: %{name} = %{version}-%{release}
196 Requires: dbus-python, pygtk2.0, pygtk2.0-libglade
197 Requires: python-gobject
198 Requires: gnome-python-desktop
199
200 %description gui
201 GTK+ wizard for convenient bug reporting.
202
203 %files gui
204 %defattr(-,root,root,-)
205 %{_bindir}/%{name}-gui
206 %{_datadir}/%{name}
207 %{_datadir}/applications/%{name}.desktop
208 %{_datadir}/icons/hicolor/*/*/*.png
209 %{_bindir}/%{name}-applet
210 %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop
211
212 #--------------------------------------------------------------------
213
214 %package addon-ccpp
215 Summary: %{name}'s C/C++ addon
216 Group: System/Libraries
217 Requires: elfutils
218 Requires: %{name} = %{version}-%{release}
219
220 %description addon-ccpp
221 This package contains hook for C/C++ crashed programs and %{name}'s C/C++
222 analyzer plugin.
223
224 %post addon-ccpp
225 chown -R abrt:abrt %{_localstatedir}/cache/abrt-di
226 #if [ $1 -eq 1 ]; then
227 /sbin/chkconfig --add abrt-ccpp
228 #fi
229
230 %if %{?with_systemd}
231 if [ "$1" -eq "0" ] ; then
232 /bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
233 /bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || :
234 fi
235 %endif
236
237 %posttrans addon-ccpp
238 service abrt-ccpp condrestart >/dev/null 2>&1 || :
239
240 %preun addon-ccpp
241 if [ "$1" -eq "0" ] ; then
242 service abrt-ccpp stop >/dev/null 2>&1
243 /sbin/chkconfig --del abrt-ccpp
244 fi
245
246 #systemd (not tested):
247 %if %{?with_systemd}
248 if [ "$1" -eq "0" ] ; then
249 /bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
250 /bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || :
251 fi
252 %endif
253
254 %files addon-ccpp
255 %defattr(-,root,root,-)
256 %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
257 %{_sysconfdir}/libreport/events.d/ccpp_event.conf
258 %{_sysconfdir}/libreport/events.d/gconf_event.conf
259 %{_sysconfdir}/libreport/events.d/vimrc_event.conf
260 %{_sysconfdir}/libreport/events/analyze_LocalGDB.xml
261 %{_sysconfdir}/libreport/events/collect_xsession_errors.xml
262 %{_sysconfdir}/libreport/events/collect_Smolt.xml
263 %{_sysconfdir}/libreport/events/collect_GConf.xml
264 %{_sysconfdir}/libreport/events/collect_vimrc_user.xml
265 %{_sysconfdir}/libreport/events/collect_vimrc_system.xml
266 %dir %attr(0775, abrt, abrt) %{_localstatedir}/cache/abrt-di
267 %{_initrddir}/abrt-ccpp
268 %{_libdir}/abrt-hook-ccpp
269 %{_sysconfdir}/profile.d/00abrt.*
270 %{_bindir}/abrt-action-analyze-c
271 %{_bindir}/abrt-action-trim-files
272 %{_bindir}/abrt-action-analyze-core
273 %{_bindir}/abrt-action-list-dsos
274 %attr(2755, abrt, abrt) %{_bindir}/abrt-action-install-debuginfo
275 %attr(4755, abrt, abrt) %{_libexecdir}/abrt-action-install-debuginfo-to-abrt-cache
276 %{_bindir}/abrt-action-generate-backtrace
277 %{_bindir}/abrt-action-analyze-backtrace
278 %{_sbindir}/abrt-install-ccpp-hook
279 %{_mandir}/man*/abrt-action-analyze-c.*
280 %{_mandir}/man*/abrt-action-trim-files.*
281 %{_mandir}/man*/abrt-action-generate-backtrace.*
282 %{_mandir}/man*/abrt-action-analyze-backtrace.*
283 %{_mandir}/man*/abrt-action-list-dsos.*
284 %{_mandir}/man1/abrt-install-ccpp-hook.*
285
286 #--------------------------------------------------------------------
287
288 %package addon-kerneloops
289 Summary: %{name}'s kerneloops addon
290 Group: System/Libraries
291 Requires: curl
292 Requires: %{name} = %{version}-%{release}
293 #Obsoletes: kerneloops
294
295 %description addon-kerneloops
296 This package contains plugin for collecting kernel crash information
297 and reporter plugin which sends this information to specified server,
298 usually to kerneloops.org.
299
300 %post addon-kerneloops
301 if [ $1 -eq 1 ]; then
302 /sbin/chkconfig --add abrt-oops
303 fi
304
305 %posttrans addon-kerneloops
306 service abrt-oops condrestart >/dev/null 2>&1 || :
307
308 %preun addon-kerneloops
309 if [ "$1" -eq "0" ] ; then
310 service abrt-oops stop >/dev/null 2>&1
311 /sbin/chkconfig --del abrt-oops
312 fi
313 #systemd (not tested):
314 %if %{?with_systemd}
315 if [ "$1" -eq "0" ] ; then
316 /bin/systemctl stop abrt-oops.service >/dev/null 2>&1 || :
317 /bin/systemctl disable abrt-oops.service >/dev/null 2>&1 || :
318 fi
319 %endif
320
321 %files addon-kerneloops
322 %defattr(-,root,root,-)
323 %config(noreplace) %{_sysconfdir}/libreport/events.d/koops_event.conf
324 %{_initrddir}/abrt-oops
325 %{_bindir}/abrt-dump-oops
326 %{_bindir}/abrt-action-analyze-oops
327 %{_mandir}/man1/abrt-action-analyze-oops.1*
328
329 #--------------------------------------------------------------------
330
331 %package addon-vmcore
332 Summary: %{name}'s vmcore addon
333 Group: System/Libraries
334 Requires: %{name} = %{version}-%{release}
335 Requires: abrt-addon-kerneloops
336
337 %description addon-vmcore
338 This package contains plugin for collecting kernel crash information from vmcore files.
339
340 %post addon-vmcore
341 if [ $1 -eq 1 ]; then
342 /sbin/chkconfig --add abrt-oops
343 fi
344
345 %posttrans addon-vmcore
346 service abrt-oops condrestart >/dev/null 2>&1 || :
347
348 %preun addon-vmcore
349 if [ "$1" -eq "0" ] ; then
350 service abrt-oops stop >/dev/null 2>&1
351 /sbin/chkconfig --del abrt-oops
352 fi
353 #systemd (not tested):
354 %if %{?with_systemd}
355 if [ "$1" -eq "0" ] ; then
356 /bin/systemctl stop abrt-oops.service >/dev/null 2>&1 || :
357 /bin/systemctl disable abrt-oops.service >/dev/null 2>&1 || :
358 fi
359 %endif
360
361 %files addon-vmcore
362 %config(noreplace) %{_sysconfdir}/libreport/events.d/vmcore_event.conf
363 %{_sysconfdir}/libreport/events/analyze_VMcore.xml
364 %{_initrddir}/abrt-vmcore
365 %{_sbindir}/abrt-harvest-vmcore
366 %{_bindir}/abrt-action-analyze-vmcore
367
368 #--------------------------------------------------------------------
369
370 %package addon-python
371 Summary: %{name}'s addon for catching and analyzing Python exceptions
372 Group: System/Libraries
373 Requires: %{name} = %{version}-%{release}
374
375 %description addon-python
376 This package contains python hook and python analyzer plugin for handling
377 uncaught exception in python programs.
378
379 %files addon-python
380 %defattr(-,root,root,-)
381 %config(noreplace) %{_sysconfdir}/%{name}/plugins/python.conf
382 %{_sysconfdir}/libreport/events.d/python_event.conf
383 %{_bindir}/abrt-action-analyze-python
384 %{_mandir}/man1/abrt-action-analyze-python.1*
385 %{py_puresitedir}/abrt*.py*
386 %{py_puresitedir}/*.pth
387
388 #--------------------------------------------------------------------
389
390 %package cli
391 Summary: %{name}'s command line interface
392 Group: Graphical desktop/Other
393 Requires: %{name} = %{version}-%{release}
394 Requires: %{name}-addon-kerneloops
395 Requires: %{name}-addon-ccpp, %{name}-addon-python
396 Requires: %{name}-plugin-bugzilla, %{name}-plugin-logger
397
398 %description cli
399 This package contains simple command line client for controlling abrt
400 daemon over the sockets.
401
402 %files cli
403 %defattr(-,root,root,-)
404 %{_bindir}/abrt-cli
405
406 #--------------------------------------------------------------------
407
408 %package desktop
409 Summary: Virtual package to install all necessary packages for usage from desktop environment
410 Group: Graphical desktop/Other
411 # This package gets installed when anything requests bug-buddy -
412 # happens when users upgrade Fn to Fn+1;
413 # or if user just wants "typical desktop installation".
414 # Installing abrt-desktop should result in the abrt which works without
415 # any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed)
416 Requires: %{name} = %{version}-%{release}
417 Requires: %{name}-addon-kerneloops
418 Requires: %{name}-addon-vmcore
419 Requires: %{name}-addon-ccpp, %{name}-addon-python
420 # Default config of addon-ccpp requires gdb
421 Requires: gdb >= 7.0-3
422 Requires: %{name}-gui
423 Requires: %{name}-plugin-logger, %{name}-plugin-bugzilla
424 #Obsoletes: bug-buddy
425 #Provides: bug-buddy
426
427 %description desktop
428 Virtual package to make easy default installation on desktop environments.
429
430 %files desktop
431 %defattr(-,root,root,-)
432
433 #--------------------------------------------------------------------
434 %if 0
435 %package retrace-server
436 Summary: %{name}'s retrace server using HTTP protocol
437 Group: Graphical desktop/Other
438 Requires: abrt-addon-ccpp
439 Requires: gdb >= 7.0-3
440 Requires: apache-mod_wsgi, apache-mod_ssl, python-webob
441 Requires: mock, xz, elfutils, createrepo
442 Requires(preun): /sbin/install-info
443 Requires(post): /sbin/install-info
444
445 %post retrace-server
446 /sbin/install-info %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || :
447 /usr/sbin/usermod -G mock apache 2> /dev/null || :
448
449 %preun retrace-server
450 if [ "$1" = 0 ]; then
451 /sbin/install-info --delete %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || :
452 fi
453
454 %description retrace-server
455 The retrace server provides a coredump analysis and backtrace
456 generation service over a network using HTTP protocol.
457
458 %files retrace-server
459 %defattr(-,root,root,-)
460 %config(noreplace) %{_sysconfdir}/%{name}/retrace.conf
461 %config(noreplace) %{_sysconfdir}/httpd/conf.d/retrace_httpd.conf
462 %config(noreplace) %{_sysconfdir}/yum.repos.d/retrace.repo
463 %dir %attr(0775, apache, abrt) %{_localstatedir}/spool/abrt-retrace
464 %dir %attr(0755, abrt, abrt) %{_localstatedir}/cache/abrt-retrace
465 %dir %attr(0755, abrt, abrt) %{_localstatedir}/log/abrt-retrace
466 %caps(cap_setuid=ep) %{_bindir}/abrt-retrace-worker
467 %{_bindir}/abrt-retrace-cleanup
468 %{_bindir}/abrt-retrace-reposync
469 %{_bindir}/coredump2packages
470 %{py_puresitedir}/retrace.py*
471 %{_datadir}/abrt-retrace/*.py*
472 %{_datadir}/abrt-retrace/*.wsgi
473 %{_datadir}/abrt-retrace/plugins/*.py*
474 %{_infodir}/abrt-retrace-server*
475 %endif
476 #--------------------------------------------------------------------
477
478 %prep
479 %setup -q
480 %apply_patches
481 # (tv)) disable -Werror:
482 perl -pi -e 's!-Werror!-Wno-deprecated!' configure{.ac,} */*/Makefile*
483
484 %build
485 NOCONFIGURE=yes gnome-autogen.sh
486 %configure2_5x \
487 %if !%{with_systemd}
488 --without-systemdsystemunitdir \
489 %endif
490 --disable-rpath
491 %make
492
493 %install
494 %makeinstall_std
495 %find_lang %{name}
496
497 # remove all .la and .a files
498 find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
499 mkdir -p %{buildroot}/%{_initrddir}
500 install -m 755 %SOURCE1 %{buildroot}/%{_initrddir}/%{name}d
501 install -m 755 %SOURCE5 %{buildroot}/%{_initrddir}/%{name}-ccpp
502 install -m 755 %SOURCE6 %{buildroot}/%{_initrddir}/%{name}-oops
503 mkdir -p %{buildroot}/var/cache/%{name}-di
504 mkdir -p %{buildroot}/var/run/%{name}
505 mkdir -p %{buildroot}/var/spool/%{name}
506 mkdir -p %{buildroot}/var/spool/%{name}-retrace
507 mkdir -p %{buildroot}/var/cache/%{name}-retrace
508 mkdir -p %{buildroot}/var/log/%{name}-retrace
509 mkdir -p %{buildroot}/var/spool/%{name}-upload
510
511 sed -i 's!@libexec@!%_libdir!' %{buildroot}/%{_initrddir}/%{name}-ccpp
512
513 # remove fedora gpg key
514 rm -f %{buildroot}%{_sysconfdir}/abrt/gpg_keys
515 touch %{buildroot}%{_sysconfdir}/abrt/gpg_keys
516
517 # install ulimit disabler
518 mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
519 install -m755 %SOURCE2 %SOURCE3 %{buildroot}%{_sysconfdir}/profile.d/
520
521 desktop-file-install \
522 --dir %{buildroot}%{_sysconfdir}/xdg/autostart \
523 src/applet/%{name}-applet.desktop
524
525 # replace with our own version
526 cat %{SOURCE4} > %{buildroot}/usr/bin/%{name}-debuginfo-install
527
528 #remove RH specific plugins
529 rm -f %{buildroot}%{_libdir}/%{name}/{RHTSupport.glade,libRHTSupport.so}
530 rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/RHTSupport.conf
531 rm -f %{buildroot}%{_sysconfdir}/%{name}/events.d/rhtsupport_events.conf
532 rm -f %{buildroot}%{_sysconfdir}/%{name}/events/report_RHTSupport.xml
533 rm -f %{buildroot}%{_bindir}/%{name}-action-rhtsupport
534
535 # After everything is installed, remove info dir
536 rm -f %{buildroot}%{_infodir}/dir

  ViewVC Help
Powered by ViewVC 1.1.28