/[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 185005 - (show annotations) (download)
Tue Dec 20 20:12:12 2011 UTC (12 years, 3 months ago) by dmorgan
File size: 19423 byte(s)
Rebuild against new rpm
Enable systemd support

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

  ViewVC Help
Powered by ViewVC 1.1.30