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

  ViewVC Help
Powered by ViewVC 1.1.30