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