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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 109606 by ahmad, Sun Jun 19 04:55:45 2011 UTC revision 109812 by dmorgan, Sun Jun 19 14:46:17 2011 UTC
# Line 5  Line 5 
5  %define lib_name %mklibname %{name} %{lib_major}  %define lib_name %mklibname %{name} %{lib_major}
6  %define lib_name_devel %mklibname %{name} -d  %define lib_name_devel %mklibname %{name} -d
7    
8    %define _disable_ld_no_undefined 1
9    
10  Summary: Automatic bug detection and reporting tool  Summary: Automatic bug detection and reporting tool
11  Name: abrt  Name: abrt
12  Version: 1.1.17  Version: 2.0.2
13  Release: %mkrel 2  Release: %mkrel 1
14  License: GPLv2+  License: GPLv2+
15  Group: System/Base  Group: System/Base
16  URL: https://fedorahosted.org/abrt/  URL: https://fedorahosted.org/abrt/
# Line 17  Source1: abrt.init Line 19  Source1: abrt.init
19  Source2: 00abrt.sh  Source2: 00abrt.sh
20  Source3: 00abrt.csh  Source3: 00abrt.csh
21  Source4: abrt-debuginfo-install  Source4: abrt-debuginfo-install
22  # (fc) fix format security error  Source5: abrt-ccpp.init
23  # (misc) sent upstream https://fedorahosted.org/abrt/attachment/ticket/120  Source6: abrt-oops.init
24  Patch0: abrt-1.1.14-format_security.patch  Patch0: abrt-1.1.14-format_security.patch
25  # (fc) disable package signature check  # (fc) disable package signature check
26  Patch2: abrt_disable_gpgcheck.diff  Patch2: abrt_disable_gpgcheck.diff
# Line 30  Patch3: abrt-mageiabugzilla.patch Line 32  Patch3: abrt-mageiabugzilla.patch
32  # (pt) generate stacktrace twice to get missing -debug packages  # (pt) generate stacktrace twice to get missing -debug packages
33  Patch5: abrt-1.1.14-debug.patch  Patch5: abrt-1.1.14-debug.patch
34  # (fc) disable nspluginwrapper-i386 (Mdv bug #59237)  # (fc) disable nspluginwrapper-i386 (Mdv bug #59237)
35  Patch7: abrt-1.1.13-nspluginwrapper.patch  Patch7: abrt-2.0.2-nspluginwrapper.patch
36  # (fc) fix for non UTF-8 locale  # (fc) fix for non UTF-8 locale
37  Patch8: abrt-1.1.1-nonutf8-locale.patch  Patch8: abrt-2.0.2-nonutf8-locale.patch
 Patch10: abrt-1.1.14-link.patch  
38  # (eugeni): disable kernel oops cron plugin by default (mdv #61986)  # (eugeni): disable kernel oops cron plugin by default (mdv #61986)
39  Patch12: abrt-1.1.14-disable_oops_scanner.patch  Patch12: abrt-1.1.14-disable_oops_scanner.patch
40  BuildRequires: dbus-devel libdbus-glib-devel  BuildRequires: dbus-devel libdbus-glib-devel
# Line 54  BuildRequires: libzip-devel, libtar-deve Line 55  BuildRequires: libzip-devel, libtar-deve
55  BuildRequires: intltool  BuildRequires: intltool
56  BuildRequires: gnome-common  BuildRequires: gnome-common
57  BuildRequires: bison  BuildRequires: bison
58    BuildRequires: asciidoc
59    BuildRequires: xmlto
60  %if %{?with_systemd}  %if %{?with_systemd}
61  BuildRequires: systemd-units  BuildRequires: systemd-units
62  %endif  %endif
# Line 62  Requires(pre): rpm-helper Line 65  Requires(pre): rpm-helper
65  Requires(post): rpm-helper  Requires(post): rpm-helper
66  Requires(preun): rpm-helper  Requires(preun): rpm-helper
67  Requires(postun): rpm-helper  Requires(postun): rpm-helper
68  Obsoletes: plugin-catcut < 1.1.13  Obsoletes: abrt-plugin-catcut < 1.1.13
69    Obsoletes: abrt-plugin-sqlite3 < 1.1.18
70    # required for transition from 1.1.13, can be removed after some time
71    Obsoletes: abrt-plugin-runapp < 1.1.18
72    Obsoletes: abrt-plugin-filetransfer < 1.1.18
73    Obsoletes: abrt-plugin-sosreport < 1.1.18
74    
75  %description  %description
76  %{name} is a tool to help users to detect defects in applications and  %{name} is a tool to help users to detect defects in applications and
77  to create a bug report with all informations needed by maintainer to fix it.  to create a bug report with all informations needed by maintainer to fix it.
78  It uses plugin system to extend its functionality.  It uses plugin system to extend its functionality.
79    
80    %pre
81    %_pre_useradd %{name} %{_sysconfdir}/%{name} /bin/nologin
82    %_pre_groupadd %{name} %{name}
83    
84    %post
85    %_post_service %{name}d
86    %if %{?with_systemd}
87    # Enable (but don't start) the units by default
88      /bin/systemctl enable %{name}d.service >/dev/null 2>&1 || :
89    %endif
90    
91    %posttrans
92    service abrtd condrestart >/dev/null 2>&1 || :
93    
94    %preun
95    %_preun_service %{name}d
96    %if %{?with_systemd}
97    if [ "$1" -eq "0" ] ; then
98      /bin/systemctl stop %{name}d.service >/dev/null 2>&1 || :
99      /bin/systemctl disable %{name}d.service >/dev/null 2>&1 || :
100    fi
101    %endif
102    
103    %postun
104    %_postun_userdel %{name}
105    %_postun_groupdel %{name} %{name}
106    %if %{?with_systemd}
107    if [ $1 -ge 1 ] ; then
108    # On upgrade, reload init system configuration if we changed unit files
109      /bin/systemctl daemon-reload >/dev/null 2>&1 || :
110    fi
111    %endif
112    
113    %files -f %{name}.lang
114    %defattr(-,root,root,-)
115    %doc README COPYING
116    #systemd
117    %if %{?with_systemd}
118    /lib/systemd/system/%{name}d.service
119    %endif
120    %{_sbindir}/%{name}d
121    %{_sbindir}/%{name}-server
122    %{_bindir}/%{name}-debuginfo-install
123    %{_bindir}/%{name}-action-analyze-core.py
124    %{_bindir}/%{name}-handle-upload
125    %{_bindir}/%{name}-handle-crashdump
126    %{_bindir}/%{name}-action-save-package-data
127    %{_bindir}/%{name}-retrace-client
128    %{_bindir}/bug-reporting-wizard
129    %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
130    %config(noreplace) %{_sysconfdir}/%{name}/gpg_keys
131    %config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-%{name}.conf
132    %config(noreplace) %{_sysconfdir}/%{name}/%{name}_event.conf
133    %ghost %attr(0666, -, -) %{_localstatedir}/run/%{name}/abrt.socket
134    %ghost %attr(0644, -, -) %{_localstatedir}/run/%{name}d.pid
135    %{_initrddir}/%{name}d
136    #%dir %attr(0755, %{name}, %{name}) %{_localstatedir}/cache/%{name}
137    %dir /var/run/%{name}
138    %dir %{_sysconfdir}/%{name}
139    %dir %{_sysconfdir}/%{name}/plugins
140    %dir %{_sysconfdir}/%{name}/events.d
141    %dir %{_sysconfdir}/%{name}/events
142    %{_mandir}/man8/%{name}d.8.*
143    %{_mandir}/man5/%{name}.conf.5.*
144    %{_mandir}/man5/%{name}_event.conf.5.*
145    %{_mandir}/man7/%{name}-plugins.7.*
146    %{_datadir}/dbus-1/system-services/com.redhat.%{name}.service
147    
148    #--------------------------------------------------------------------
149    
150  %package -n %{lib_name}  %package -n %{lib_name}
151  Summary: Libraries for %{name}  Summary: Libraries for %{name}
152  Group: System/Libraries  Group: System/Libraries
# Line 76  Group: System/Libraries Line 154  Group: System/Libraries
154  %description -n %{lib_name}  %description -n %{lib_name}
155  Libraries for %{name}.  Libraries for %{name}.
156    
157    %files -n %{lib_name}
158    %defattr(-,root,root,-)
159    %{_libdir}/libabrt*.so.*
160    %{_libdir}/libbtparser.so.*
161    
162    #--------------------------------------------------------------------
163    
164  %package -n %{lib_name_devel}  %package -n %{lib_name_devel}
165  Summary: Development libraries for %{name}  Summary: Development libraries for %{name}
166  Group: Development/C  Group: Development/C
# Line 86  Obsoletes: %{_lib}abrt0-devel Line 171  Obsoletes: %{_lib}abrt0-devel
171  %description -n %{lib_name_devel}  %description -n %{lib_name_devel}
172  Development libraries and headers for %{name}.  Development libraries and headers for %{name}.
173    
174    %files -n %{lib_name_devel}
175    %defattr(-,root,root,-)
176    %{_includedir}/abrt/*
177    %{_includedir}/btparser/*
178    %{_libdir}/libabrt*.so
179    %{_libdir}/libbtparser.so
180    #FIXME: this should go to libreportgtk-devel package
181    %{_libdir}/libreportgtk.so
182    %{_libdir}/pkgconfig/%{name}.pc
183    %{_libdir}/pkgconfig/btparser.pc
184    
185    #--------------------------------------------------------------------
186    
187  %package gui  %package gui
188  Summary: %{name}'s gui  Summary: %{name}'s gui
189  Group: Graphical desktop/Other  Group: Graphical desktop/Other
# Line 97  Requires: gnome-python-desktop Line 195  Requires: gnome-python-desktop
195  %description gui  %description gui
196  GTK+ wizard for convenient bug reporting.  GTK+ wizard for convenient bug reporting.
197    
198    %files gui
199    %defattr(-,root,root,-)
200    %{_bindir}/%{name}-gui
201    %{_datadir}/%{name}
202    %{_datadir}/applications/%{name}.desktop
203    %{_datadir}/icons/hicolor/*/*/*.png
204    %{_bindir}/%{name}-applet
205    %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop
206    
207    #--------------------------------------------------------------------
208    
209  %package addon-ccpp  %package addon-ccpp
210  Summary: %{name}'s C/C++ addon  Summary: %{name}'s C/C++ addon
211  Group: System/Libraries  Group: System/Libraries
# Line 107  Requires: %{name} = %{version}-%{release Line 216  Requires: %{name} = %{version}-%{release
216  This package contains hook for C/C++ crashed programs and %{name}'s C/C++  This package contains hook for C/C++ crashed programs and %{name}'s C/C++
217  analyzer plugin.  analyzer plugin.
218    
219    %post addon-ccpp
220    chown -R abrt:abrt %{_localstatedir}/cache/abrt-di
221    #if [ $1 -eq 1 ]; then
222    /sbin/chkconfig --add abrt-ccpp
223    #fi
224    
225    %if %{?with_systemd}
226    if [ "$1" -eq "0" ] ; then
227        /bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
228        /bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || :
229    fi
230    %endif
231    
232    %posttrans addon-ccpp
233    service abrt-ccpp condrestart >/dev/null 2>&1 || :
234    
235    %preun addon-ccpp
236    if [ "$1" -eq "0" ] ; then
237      service abrt-ccpp stop >/dev/null 2>&1
238      /sbin/chkconfig --del abrt-ccpp
239    fi
240    
241    #systemd (not tested):
242    %if %{?with_systemd}
243    if [ "$1" -eq "0" ] ; then
244        /bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
245        /bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || :
246    fi
247    %endif
248    
249    %files addon-ccpp
250    %defattr(-,root,root,-)
251    %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
252    %dir %attr(0775, abrt, abrt) %{_localstatedir}/cache/abrt-di
253    %{_initrddir}/abrt-ccpp
254    %{_libexecdir}/abrt-hook-ccpp
255    %{_sysconfdir}/profile.d/00abrt.*
256    %{_bindir}/abrt-action-analyze-c
257    %{_bindir}/abrt-action-trim-files
258    %attr(2755, abrt, abrt) %{_bindir}/abrt-action-install-debuginfo
259    %{_bindir}/abrt-action-install-debuginfo.py*
260    %{_bindir}/abrt-action-generate-backtrace
261    %{_bindir}/abrt-action-analyze-backtrace
262    %{_bindir}/abrt-action-list-dsos.py*
263    %{_sysconfdir}/%{name}/events.d/ccpp_events.conf
264    %{_sysconfdir}/%{name}/events/analyze_LocalGDB.xml
265    %{_sysconfdir}/%{name}/events/reanalyze_LocalGDB.xml
266    %{_sysconfdir}/%{name}/events/analyze_RetraceServer.xml
267    %{_sysconfdir}/%{name}/events/reanalyze_RetraceServer.xml
268    %{_mandir}/man*/abrt-action-trim-files.*
269    %{_mandir}/man*/abrt-action-generate-backtrace.*
270    %{_mandir}/man*/abrt-action-analyze-backtrace.*
271    
272    #--------------------------------------------------------------------
273    
274  %package addon-kerneloops  %package addon-kerneloops
275  Summary: %{name}'s kerneloops addon  Summary: %{name}'s kerneloops addon
276  Group: System/Libraries  Group: System/Libraries
# Line 119  This package contains plugin for collect Line 283  This package contains plugin for collect
283  and reporter plugin which sends this information to specified server,  and reporter plugin which sends this information to specified server,
284  usually to kerneloops.org.  usually to kerneloops.org.
285    
286    %post addon-kerneloops
287    if [ $1 -eq 1 ]; then
288        /sbin/chkconfig --add abrt-oops
289    fi
290    
291    %posttrans addon-kerneloops
292    service abrt-oops condrestart >/dev/null 2>&1 || :
293    
294    %preun addon-kerneloops
295    if [ "$1" -eq "0" ] ; then
296        service abrt-oops stop >/dev/null 2>&1
297        /sbin/chkconfig --del abrt-oops
298    fi
299    #systemd (not tested):
300    %if %{?with_systemd}
301    if [ "$1" -eq "0" ] ; then
302        /bin/systemctl stop abrt-oops.service >/dev/null 2>&1 || :
303        /bin/systemctl disable abrt-oops.service >/dev/null 2>&1 || :
304    fi
305    %endif
306    
307    %files addon-kerneloops
308    %defattr(-,root,root,-)
309    %config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf
310    %config(noreplace) %{_sysconfdir}/%{name}/events.d/koops_events.conf
311    %{_sysconfdir}/%{name}/events/report_Kerneloops.xml
312    %{_initrddir}/abrt-oops
313    %{_mandir}/man7/abrt-KerneloopsReporter.7.*
314    %{_bindir}/abrt-dump-oops
315    %{_bindir}/abrt-action-analyze-oops
316    %{_bindir}/abrt-action-kerneloops
317    
318    #--------------------------------------------------------------------
319    
320  %package plugin-logger  %package plugin-logger
321  Summary: %{name}'s logger reporter plugin  Summary: %{name}'s logger reporter plugin
322  Group: System/Libraries  Group: System/Libraries
# Line 127  Requires: %{name} = %{version}-%{release Line 325  Requires: %{name} = %{version}-%{release
325  %description plugin-logger  %description plugin-logger
326  The simple reporter plugin which writes a report to a specified file.  The simple reporter plugin which writes a report to a specified file.
327    
328    %files plugin-logger
329    %defattr(-,root,root,-)
330    %{_sysconfdir}/%{name}/events/report_Logger.conf
331    %{_bindir}/abrt-action-print
332    %{_mandir}/man7/%{name}-Logger.7.*
333    %{_mandir}/man*/%{name}-action-print.*
334    
335    #--------------------------------------------------------------------
336    
337  %package plugin-mailx  %package plugin-mailx
338  Summary: %{name}'s mailx reporter plugin  Summary: %{name}'s mailx reporter plugin
339  Group: System/Libraries  Group: System/Libraries
# Line 137  Requires: mailx Line 344  Requires: mailx
344  The simple reporter plugin which sends a report via mailx to a specified  The simple reporter plugin which sends a report via mailx to a specified
345  email address.  email address.
346    
347  %package plugin-runapp  %files plugin-mailx
348  Summary: %{name}'s runapp plugin  %defattr(-,root,root,-)
349  Group: System/Libraries  %{_sysconfdir}/%{name}/events/report_Mailx.xml
350  Requires: %{name} = %{version}-%{release}  %{_sysconfdir}/%{name}/events.d/mailx_events.conf
351    %{_bindir}/abrt-action-mailx
352  %description plugin-runapp  %{_mandir}/man7/%{name}-Mailx.7.*
353  Plugin to run external programs.  %{_mandir}/man*/%{name}-action-mailx.*
   
 %package plugin-sosreport  
 Summary: %{name}'s sosreport plugin  
 Group: System/Libraries  
 Requires: sos  
 Requires: %{name} = %{version}-%{release}  
354    
355  %description plugin-sosreport  #--------------------------------------------------------------------
 Plugin to include an sosreport in an abrt report.  
356    
357  %package plugin-bugzilla  %package plugin-bugzilla
358  Summary: %{name}'s bugzilla plugin  Summary: %{name}'s bugzilla plugin
# Line 162  Requires: %{name} = %{version}-%{release Line 362  Requires: %{name} = %{version}-%{release
362  %description plugin-bugzilla  %description plugin-bugzilla
363  Plugin to report bugs into the bugzilla.  Plugin to report bugs into the bugzilla.
364    
365  ##%package plugin-catcut  %files plugin-bugzilla
366  #Summary: %{name}'s catcut plugin  %defattr(-,root,root,-)
367  #Group: System/Libraries  %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
368  #Requires: %{name} = %{version}-%{release}  %{_sysconfdir}/%{name}/events/report_Bugzilla.xml
369    %config(noreplace) %{_sysconfdir}/%{name}/events/report_Bugzilla.conf
370    # FIXME: remove with the old gui
371    %{_mandir}/man7/abrt-Bugzilla.7.*
372    %{_bindir}/abrt-action-bugzilla
373    
374  ##%description plugin-catcut  #--------------------------------------------------------------------
 #Plugin to report bugs into the catcut.  
375    
376  %package plugin-reportuploader  %package plugin-reportuploader
377  Summary: %{name}'s ticketuploader plugin  Summary: %{name}'s ticketuploader plugin
# Line 180  Provides: plugin-ticketuploader = %{vers Line 383  Provides: plugin-ticketuploader = %{vers
383  %description plugin-reportuploader  %description plugin-reportuploader
384  Plugin to report bugs into anonymous FTP site associated with ticketing system.  Plugin to report bugs into anonymous FTP site associated with ticketing system.
385    
386  %package plugin-filetransfer  %files plugin-reportuploader
387  Summary: %{name}'s File Transfer plugin  %defattr(-,root,root,-)
388  Group: System/Libraries  %config(noreplace) %{_sysconfdir}/%{name}/plugins/Upload.conf
389  Requires: %{name} = %{version}-%{release}  %{_mandir}/man7/abrt-Upload.7.*
390    %{_bindir}/abrt-action-upload
391    
392  %description plugin-filetransfer  #--------------------------------------------------------------------
 Plugin to uploading files to a server.  
393    
394  %package addon-python  %package addon-python
395  Summary: %{name}'s addon for catching and analyzing Python exceptions  Summary: %{name}'s addon for catching and analyzing Python exceptions
# Line 197  Requires: %{name} = %{version}-%{release Line 400  Requires: %{name} = %{version}-%{release
400  This package contains python hook and python analyzer plugin for handling  This package contains python hook and python analyzer plugin for handling
401  uncaught exception in python programs.  uncaught exception in python programs.
402    
403    %files addon-python
404    %defattr(-,root,root,-)
405    %config(noreplace) %{_sysconfdir}/%{name}/plugins/Python.conf
406    %{_bindir}/abrt-action-analyze-python
407    %{py_puresitedir}/abrt*.py*
408    %{py_puresitedir}/*.pth
409    
410    #--------------------------------------------------------------------
411    
412  %package cli  %package cli
413  Summary: %{name}'s command line interface  Summary: %{name}'s command line interface
414  Group: Graphical desktop/Other  Group: Graphical desktop/Other
# Line 209  Requires: %{name}-plugin-bugzilla, %{nam Line 421  Requires: %{name}-plugin-bugzilla, %{nam
421  This package contains simple command line client for controlling abrt  This package contains simple command line client for controlling abrt
422  daemon over the sockets.  daemon over the sockets.
423    
424    %files cli
425    %defattr(-,root,root,-)
426    %{_bindir}/abrt-cli
427    %{_mandir}/man1/abrt-cli.1.*
428    %{_sysconfdir}/bash_completion.d/abrt-cli.bash
429    
430    #--------------------------------------------------------------------
431    
432  %package desktop  %package desktop
433  Summary: Virtual package to install all necessary packages for usage from desktop environment  Summary: Virtual package to install all necessary packages for usage from desktop environment
434  Group: Graphical desktop/Other  Group: Graphical desktop/Other
# Line 230  Requires: %{name}-plugin-logger, %{name} Line 450  Requires: %{name}-plugin-logger, %{name}
450  %description desktop  %description desktop
451  Virtual package to make easy default installation on desktop environments.  Virtual package to make easy default installation on desktop environments.
452    
453    %files desktop
454    %defattr(-,root,root,-)
455    
456    #--------------------------------------------------------------------
457    
458    %package -n libreport
459    Summary: Libraries for reporting crashes to different targets.
460    Group: System Environment/Libraries
461    
462    %description -n libreport
463    Libraries providing API for reporting different problems in applications
464    to different bug targets like bugzilla, ftp, trac, etc...
465    
466    %files -n libreport
467    %defattr(-,root,root,-)
468    %{_libdir}/libreport.so.*
469    
470    #--------------------------------------------------------------------
471    
472    %package -n libreport-devel
473    Summary: Development libraries and headers for libreport.
474    Group: Development/Libraries
475    
476    %description -n libreport-devel
477    Development libraries and headers for libreport.
478    
479    %files -n libreport-devel
480    %defattr(-,root,root,-)
481    %{_includedir}/report/*
482    %{_libdir}/libreport.so
483    
484    #--------------------------------------------------------------------
485    
486    %package -n libreport-python
487    Summary: Python bindings for report-libs.
488    Group: System/Libraries
489    
490    %description -n libreport-python
491    Python bindings for report-libs.
492    
493    %files -n libreport-python
494    %defattr(-,root,root,-)
495    %{python_sitearch}/report/*
496    
497    #--------------------------------------------------------------------
498    
499    %package -n libreport-gtk
500    Summary: GTK frontend for libreport
501    Group:   System/Libraries
502    
503    %description -n libreport-gtk
504    Applications for reporting bugs using libreport backend.
505    
506    %files -n libreport-gtk
507    %defattr(-,root,root,-)
508    %{_libdir}/libreportgtk.so.*
509    
510    #--------------------------------------------------------------------
511    
512    %package retrace-server
513    Summary: %{name}'s retrace server using HTTP protocol
514    Group:   Graphical desktop/Other
515    Requires: abrt-addon-ccpp
516    Requires: gdb >= 7.0-3
517    Requires: httpd, mod_wsgi, mod_ssl, python-webob
518    Requires: mock, xz, elfutils, createrepo
519    Requires(preun): /sbin/install-info
520    Requires(post): /sbin/install-info
521    
522    %post retrace-server
523    /sbin/install-info %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || :
524    /usr/sbin/usermod -G mock apache 2> /dev/null || :
525    
526    %preun retrace-server
527    if [ "$1" = 0 ]; then
528      /sbin/install-info --delete %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || :
529    fi
530    
531    %description retrace-server
532    The retrace server provides a coredump analysis and backtrace
533    generation service over a network using HTTP protocol.
534    
535    %files retrace-server
536    %defattr(-,root,root,-)
537    %config(noreplace) %{_sysconfdir}/%{name}/retrace.conf
538    %config(noreplace) %{_sysconfdir}/httpd/conf.d/retrace_httpd.conf
539    %config(noreplace) %{_sysconfdir}/yum.repos.d/retrace.repo
540    %dir %attr(0775, apache, abrt) %{_localstatedir}/spool/abrt-retrace
541    %dir %attr(0755, abrt, abrt) %{_localstatedir}/cache/abrt-retrace
542    %dir %attr(0755, abrt, abrt) %{_localstatedir}/log/abrt-retrace
543    %caps(cap_setuid=ep) %{_bindir}/abrt-retrace-worker
544    %{_bindir}/abrt-retrace-cleanup
545    %{_bindir}/abrt-retrace-reposync
546    %{_bindir}/coredump2packages
547    %{py_puresitedir}/retrace.py*
548    %{_datadir}/abrt-retrace/*.py*
549    %{_datadir}/abrt-retrace/*.wsgi
550    %{_datadir}/abrt-retrace/plugins/*.py*
551    %{_infodir}/abrt-retrace-server*
552    
553    #--------------------------------------------------------------------
554    
555  %prep  %prep
556  %setup -q  %setup -q
557  %patch0 -p1 -b .format_security  %patch0 -p0
558  %patch2 -p1 -b .disable_signature_check  %patch2 -p1 -b .disable_signature_check
559  %patch3 -p1 -b .mgabugzilla  %patch3 -p1 -b .mgabugzilla
560  %patch5 -p0 -b .debug  #%patch5 -p0 -b .debug
561  %patch7 -p0 -b .nspluginwrapper  %patch7 -p1 -b .nspluginwrapper
562  %patch8 -p1 -b .nonutf8-locale  %patch8 -p1 -b .nonutf8-locale
563  %patch10 -p0 -b .link  #%patch12 -p1 -b .disable_oops_scanner
 %patch12 -p1 -b .disable_oops_scanner  
564    
565  %build  %build
566  NOCONFIGURE=yes gnome-autogen.sh  NOCONFIGURE=yes gnome-autogen.sh
# Line 260  rm -rf %{buildroot} Line 581  rm -rf %{buildroot}
581  # remove all .la and .a files  # remove all .la and .a files
582  find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f  find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
583  mkdir -p %{buildroot}/%{_initrddir}  mkdir -p %{buildroot}/%{_initrddir}
584  install -m 755 %SOURCE1 %{buildroot}/%{_initrddir}/abrtd  install -m 755 %SOURCE1 %{buildroot}/%{_initrddir}/%{name}d
585  mkdir -p %{buildroot}/var/cache/%{name}  install -m 755 %SOURCE5 %{buildroot}/%{_initrddir}/%{name}-ccpp
586    install -m 755 %SOURCE6 %{buildroot}/%{_initrddir}/%{name}-oops
587  mkdir -p %{buildroot}/var/cache/%{name}-di  mkdir -p %{buildroot}/var/cache/%{name}-di
588  mkdir -p %{buildroot}/var/run/%{name}  mkdir -p %{buildroot}/var/run/%{name}
589    mkdir -p %{buildroot}/var/spool/%{name}
590    mkdir -p %{buildroot}/var/spool/%{name}-retrace
591    mkdir -p %{buildroot}/var/cache/%{name}-retrace
592    mkdir -p %{buildroot}/var/log/%{name}-retrace
593    mkdir -p %{buildroot}/var/spool/%{name}-upload
594    
595  # remove fedora gpg key  # remove fedora gpg key
596  rm -f %{buildroot}%{_sysconfdir}/abrt/gpg_keys  rm -f %{buildroot}%{_sysconfdir}/abrt/gpg_keys
597  touch %{buildroot}%{_sysconfdir}/abrt/gpg_keys  touch %{buildroot}%{_sysconfdir}/abrt/gpg_keys
# Line 274  install -m755 %SOURCE2 %SOURCE3 %{buildr Line 602  install -m755 %SOURCE2 %SOURCE3 %{buildr
602    
603  desktop-file-install \  desktop-file-install \
604          --dir %{buildroot}%{_sysconfdir}/xdg/autostart \          --dir %{buildroot}%{_sysconfdir}/xdg/autostart \
605          src/Applet/%{name}-applet.desktop          src/applet/%{name}-applet.desktop
606    
607  # replace with our own version  # replace with our own version
608  cat %{SOURCE4} > %{buildroot}/usr/bin/%{name}-debuginfo-install  cat %{SOURCE4} > %{buildroot}/usr/bin/%{name}-debuginfo-install
# Line 282  cat %{SOURCE4} > %{buildroot}/usr/bin/%{ Line 610  cat %{SOURCE4} > %{buildroot}/usr/bin/%{
610  #remove RH specific plugins  #remove RH specific plugins
611  rm -f %{buildroot}%{_libdir}/%{name}/{RHTSupport.glade,libRHTSupport.so}  rm -f %{buildroot}%{_libdir}/%{name}/{RHTSupport.glade,libRHTSupport.so}
612  rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/RHTSupport.conf  rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/RHTSupport.conf
613    rm -f %{buildroot}%{_sysconfdir}/%{name}/events.d/rhtsupport_events.conf
614    rm -f %{buildroot}%{_sysconfdir}/%{name}/events/report_RHTSupport.xml
615    rm -f %{buildroot}%{_bindir}/%{name}-action-rhtsupport
616    
617    # After everything is installed, remove info dir
618  %clean  rm -f %{buildroot}%{_infodir}/dir
 rm -rf %{buildroot}  
   
 %pre  
 %_pre_useradd %{name} %{_sysconfdir}/%{name} /bin/nologin  
 %_pre_groupadd %{name} %{name}  
   
 %post  
 %_post_service %{name}d  
 %if %{?with_systemd}  
 # Enable (but don't start) the units by default  
   /bin/systemctl enable %{name}d.service >/dev/null 2>&1 || :  
 %endif  
   
   
 %preun  
 %_preun_service %{name}d  
 %if %{?with_systemd}  
 if [ "$1" -eq "0" ] ; then  
   /bin/systemctl stop %{name}d.service >/dev/null 2>&1 || :  
   /bin/systemctl disable %{name}d.service >/dev/null 2>&1 || :  
 fi  
 %endif  
   
   
 %postun  
 %_postun_userdel %{name}  
 %_postun_groupdel %{name} %{name}  
 %if %{?with_systemd}  
 if [ $1 -ge 1 ] ; then  
 # On upgrade, reload init system configuration if we changed unit files  
   /bin/systemctl daemon-reload >/dev/null 2>&1 || :  
 fi  
 %endif  
   
   
 %files -f %{name}.lang  
 %defattr(-,root,root,-)  
 %doc README COPYING  
 #systemd  
 %if %{?with_systemd}  
 /lib/systemd/system/%{name}d.service  
 %endif  
 %{_sbindir}/%{name}d  
 %{_bindir}/%{name}-debuginfo-install  
 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf  
 %config(noreplace) %{_sysconfdir}/%{name}/gpg_keys  
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-%{name}.conf  
 %{_initrddir}/%{name}d  
 %dir %attr(0755, %{name}, %{name}) %{_localstatedir}/cache/%{name}  
 %dir /var/run/%{name}  
 %dir %{_sysconfdir}/%{name}  
 %dir %{_sysconfdir}/%{name}/plugins  
 %dir %{_libdir}/%{name}  
 %{_mandir}/man8/abrtd.8.*  
 %{_mandir}/man5/%{name}.conf.5.*  
 #%{_mandir}/man5/pyhook.conf.5.*  
 %{_mandir}/man7/%{name}-plugins.7.*  
 %{_datadir}/polkit-1/actions/org.fedoraproject.abrt.policy  
 %{_datadir}/dbus-1/system-services/com.redhat.abrt.service  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf  
 %{_libdir}/%{name}/libSQLite3.so*  
 %{_mandir}/man7/%{name}-SQLite3.7.*  
   
 %files -n %{lib_name}  
 %defattr(-,root,root,-)  
 %{_libdir}/lib*.so.*  
   
 %files -n %{lib_name_devel}  
 %defattr(-,root,root,-)  
 %{_libdir}/lib*.so  
 %{_includedir}/%{name}/*.h  
 %{_libdir}/pkgconfig/%{name}.pc  
   
 %files gui  
 %defattr(-,root,root,-)  
 %{_bindir}/%{name}-gui  
 %{_datadir}/%{name}  
 %{_datadir}/applications/%{name}.desktop  
 %{_datadir}/icons/hicolor/*/*/*.png  
 %{_bindir}/%{name}-applet  
 %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop  
   
 %files addon-ccpp  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf  
 %dir %{_localstatedir}/cache/%{name}-di  
 %{_libdir}/%{name}/libCCpp.so*  
 %{_libexecdir}/abrt-hook-ccpp  
 %{_sysconfdir}/profile.d/00abrt.*  
   
 %files addon-kerneloops  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf  
 %{_bindir}/dumpoops  
 %{_libdir}/%{name}/libKerneloops.so*  
 %{_libdir}/%{name}/libKerneloopsScanner.so*  
 %{_mandir}/man7/%{name}-KerneloopsScanner.7.*  
 %{_libdir}/%{name}/libKerneloopsReporter.so*  
 %{_libdir}/%{name}/KerneloopsReporter.glade  
 %{_mandir}/man7/%{name}-KerneloopsReporter.7.*  
   
 %files plugin-logger  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf  
 %{_libdir}/%{name}/libLogger.so*  
 %{_libdir}/%{name}/Logger.glade  
 %{_mandir}/man7/%{name}-Logger.7.*  
   
 %files plugin-mailx  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf  
 %{_libdir}/%{name}/libMailx.so*  
 %{_libdir}/%{name}/Mailx.glade  
 %{_mandir}/man7/%{name}-Mailx.7.*  
   
 %files plugin-runapp  
 %defattr(-,root,root,-)  
 %{_libdir}/%{name}/libRunApp.so*  
 %{_mandir}/man7/%{name}-RunApp.7.*  
   
 %files plugin-sosreport  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/SOSreport.conf  
 %{_libdir}/%{name}/libSOSreport.so*  
   
   
 %files plugin-bugzilla  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf  
 %{_libdir}/%{name}/libBugzilla.so*  
 %{_libdir}/%{name}/Bugzilla.glade  
 %{_mandir}/man7/%{name}-Bugzilla.7.*  
   
 ##%files plugin-catcut  
 #%defattr(-,root,root,-)  
 #%config(noreplace) %{_sysconfdir}/%{name}/plugins/Catcut.conf  
 #%{_libdir}/%{name}/libCatcut.so*  
 #%{_libdir}/%{name}/Catcut.GTKBuilder  
 #%{_mandir}/man7/%{name}-Catcut.7.*  
   
 %files plugin-reportuploader  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/ReportUploader.conf  
 %{_bindir}/%{name}-handle-upload  
 %{_libdir}/%{name}/libReportUploader.so*  
 %{_libdir}/%{name}/ReportUploader.glade  
 %{_mandir}/man7/%{name}-ReportUploader.7.*  
   
 %files plugin-filetransfer  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf  
 %{_libdir}/%{name}/libFileTransfer.so*  
 %{_mandir}/man7/%{name}-FileTransfer.7.*  
   
 %files addon-python  
 %defattr(-,root,root,-)  
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Python.conf  
 #%attr(4755, abrt, abrt) %{_libexecdir}/abrt-hook-python  
 %{_libdir}/%{name}/libPython.so*  
 %{py_puresitedir}/*.py*  
 %{py_puresitedir}/*.pth  
   
   
 %files cli  
 %defattr(-,root,root,-)  
 %{_bindir}/abrt-cli  
 %{_mandir}/man1/abrt-cli.1.*  
 %{_sysconfdir}/bash_completion.d/abrt-cli.bash  
   
 %files desktop  
 %defattr(-,root,root,-)  
   
   
   

Legend:
Removed from v.109606  
changed lines
  Added in v.109812

  ViewVC Help
Powered by ViewVC 1.1.30