/[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 21530 - (show annotations) (download)
Mon Jan 17 18:19:18 2011 UTC (13 years, 2 months ago) by blino
File size: 13827 byte(s)
adapt release patch
1 %define with_systemd 1
2
3 %define lib_major 0
4 %define lib_name %mklibname %{name} %{lib_major}
5 %define lib_name_devel %mklibname %{name} -d
6
7 Summary: Automatic bug detection and reporting tool
8 Name: abrt
9 Version: 1.1.14
10 Release: %mkrel 8
11 License: GPLv2+
12 Group: System/Base
13 URL: https://fedorahosted.org/abrt/
14 Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
15 Source1: abrt.init
16 Source2: 00abrt.sh
17 Source3: 00abrt.csh
18 Source4: abrt-debuginfo-install
19 # (fc) fix format security error
20 # (misc) sent upstream https://fedorahosted.org/abrt/attachment/ticket/120
21 Patch0: abrt-1.1.14-format_security.patch
22 # (fc) fix build with rpm 4.6
23 Patch1: abrt-1.0.8-rpm46.patch
24 # (fc) disable package signature check
25 Patch2: abrt_disable_gpgcheck.diff
26 # (blino) use Mageia bugzilla (adapted from Mandriva patch from fcrozat)
27 # FIXME: check the query is still correct when bugzilla is deployed
28 Patch3: abrt-mageiabugzilla.patch
29 # (pt) generate stacktrace twice to get missing -debug packages
30 Patch5: abrt-1.1.14-debug.patch
31 # (blino) parse /etc/release (adapted from Mandriva patch from fcrozat)
32 # FIXME: check the parsing is ok
33 Patch6: abrt-1.1.13-mageia-release.patch
34 # (fc) disable nspluginwrapper-i386 (Mdv bug #59237)
35 Patch7: abrt-1.1.13-nspluginwrapper.patch
36 # (fc) fix for non UTF-8 locale
37 Patch8: abrt-1.1.1-nonutf8-locale.patch
38 Patch10: abrt-1.1.14-link.patch
39 # (proyvind): port to rpm5 api
40 Patch11: abrt-1.1.14-rpm5.patch
41 # (eugeni): disable kernel oops cron plugin by default (mdv #61986)
42 Patch12: abrt-1.1.14-disable_oops_scanner.patch
43 BuildRequires: dbus-devel
44 BuildRequires: gtk2-devel
45 BuildRequires: curl-devel
46 BuildRequires: rpm-devel >= 1:5.3
47 BuildRequires: sqlite-devel > 3.0
48 BuildRequires: desktop-file-utils
49 #BuildRequires: nss-devel
50 BuildRequires: libnotify-devel
51 BuildRequires: xmlrpc-c-devel
52 BuildRequires: xmlrpc-c
53 BuildRequires: file-devel
54 BuildRequires: python-devel
55 BuildRequires: gettext
56 BuildRequires: polkit-1-devel
57 BuildRequires: libzip-devel, libtar-devel, bzip2-devel, zlib-devel
58 BuildRequires: intltool
59 BuildRequires: gnome-common
60 BuildRequires: bison
61 %if %{?with_systemd}
62 Requires: systemd-units
63 BuildRequires: systemd-units
64 %endif
65 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
66 Requires: %{lib_name} >= %{version}-%{release}
67 Requires(pre): rpm-helper
68 Requires(post): rpm-helper
69 Requires(preun): rpm-helper
70 Requires(postun): rpm-helper
71 Obsoletes: plugin-catcut < 1.1.13
72
73 %description
74 %{name} is a tool to help users to detect defects in applications and
75 to create a bug report with all informations needed by maintainer to fix it.
76 It uses plugin system to extend its functionality.
77
78 %package -n %{lib_name}
79 Summary: Libraries for %{name}
80 Group: System/Libraries
81
82 %description -n %{lib_name}
83 Libraries for %{name}.
84
85 %package -n %{lib_name_devel}
86 Summary: Development libraries for %{name}
87 Group: Development/C
88 Requires: %{lib_name} = %{version}-%{release}
89 Requires: abrt = %{version}-%{release}
90 Obsoletes: %{_lib}abrt0-devel
91
92 %description -n %{lib_name_devel}
93 Development libraries and headers for %{name}.
94
95 %package gui
96 Summary: %{name}'s gui
97 Group: Graphical desktop/Other
98 Requires: %{name} = %{version}-%{release}
99 Requires: dbus-python, pygtk2.0, pygtk2.0-libglade
100 Requires: python-gobject
101 Requires: gnome-python-desktop
102
103 %description gui
104 GTK+ wizard for convenient bug reporting.
105
106 %package addon-ccpp
107 Summary: %{name}'s C/C++ addon
108 Group: System/Libraries
109 Requires: elfutils
110 Requires: %{name} = %{version}-%{release}
111
112 %description addon-ccpp
113 This package contains hook for C/C++ crashed programs and %{name}'s C/C++
114 analyzer plugin.
115
116 %package addon-kerneloops
117 Summary: %{name}'s kerneloops addon
118 Group: System/Libraries
119 Requires: curl
120 Requires: %{name} = %{version}-%{release}
121 #Obsoletes: kerneloops
122
123 %description addon-kerneloops
124 This package contains plugin for collecting kernel crash information
125 and reporter plugin which sends this information to specified server,
126 usually to kerneloops.org.
127
128 %package plugin-logger
129 Summary: %{name}'s logger reporter plugin
130 Group: System/Libraries
131 Requires: %{name} = %{version}-%{release}
132
133 %description plugin-logger
134 The simple reporter plugin which writes a report to a specified file.
135
136 %package plugin-mailx
137 Summary: %{name}'s mailx reporter plugin
138 Group: System/Libraries
139 Requires: %{name} = %{version}-%{release}
140 Requires: mailx
141
142 %description plugin-mailx
143 The simple reporter plugin which sends a report via mailx to a specified
144 email address.
145
146 %package plugin-runapp
147 Summary: %{name}'s runapp plugin
148 Group: System/Libraries
149 Requires: %{name} = %{version}-%{release}
150
151 %description plugin-runapp
152 Plugin to run external programs.
153
154 %package plugin-sosreport
155 Summary: %{name}'s sosreport plugin
156 Group: System/Libraries
157 Requires: sos
158 Requires: %{name} = %{version}-%{release}
159
160 %description plugin-sosreport
161 Plugin to include an sosreport in an abrt report.
162
163 %package plugin-bugzilla
164 Summary: %{name}'s bugzilla plugin
165 Group: System/Libraries
166 Requires: %{name} = %{version}-%{release}
167
168 %description plugin-bugzilla
169 Plugin to report bugs into the bugzilla.
170
171 ##%package plugin-catcut
172 #Summary: %{name}'s catcut plugin
173 #Group: System/Libraries
174 #Requires: %{name} = %{version}-%{release}
175
176 ##%description plugin-catcut
177 #Plugin to report bugs into the catcut.
178
179 %package plugin-reportuploader
180 Summary: %{name}'s ticketuploader plugin
181 Group: System/Libraries
182 Requires: %{name} = %{version}-%{release}
183 Obsoletes: plugin-ticketuploader < 1.1.13
184 Provides: plugin-ticketuploader = %{version}-%{release}
185
186 %description plugin-reportuploader
187 Plugin to report bugs into anonymous FTP site associated with ticketing system.
188
189 %package plugin-filetransfer
190 Summary: %{name}'s File Transfer plugin
191 Group: System/Libraries
192 Requires: %{name} = %{version}-%{release}
193
194 %description plugin-filetransfer
195 Plugin to uploading files to a server.
196
197 %package addon-python
198 Summary: %{name}'s addon for catching and analyzing Python exceptions
199 Group: System/Libraries
200 Requires: %{name} = %{version}-%{release}
201
202 %description addon-python
203 This package contains python hook and python analyzer plugin for handling
204 uncaught exception in python programs.
205
206 %package cli
207 Summary: %{name}'s command line interface
208 Group: Graphical desktop/Other
209 Requires: %{name} = %{version}-%{release}
210 Requires: %{name}-addon-kerneloops
211 Requires: %{name}-addon-ccpp, %{name}-addon-python
212 Requires: %{name}-plugin-bugzilla, %{name}-plugin-logger, %{name}-plugin-runapp
213
214 %description cli
215 This package contains simple command line client for controlling abrt
216 daemon over the sockets.
217
218 %package desktop
219 Summary: Virtual package to install all necessary packages for usage from desktop environment
220 Group: Graphical desktop/Other
221 # This package gets installed when anything requests bug-buddy -
222 # happens when users upgrade Fn to Fn+1;
223 # or if user just wants "typical desktop installation".
224 # Installing abrt-desktop should result in the abrt which works without
225 # any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed)
226 Requires: %{name} = %{version}-%{release}
227 Requires: %{name}-addon-kerneloops
228 Requires: %{name}-addon-ccpp, %{name}-addon-python
229 # Default config of addon-ccpp requires gdb
230 Requires: gdb >= 7.0-3
231 Requires: %{name}-gui
232 Requires: %{name}-plugin-logger, %{name}-plugin-bugzilla, %{name}-plugin-runapp
233 #Obsoletes: bug-buddy
234 #Provides: bug-buddy
235
236 %description desktop
237 Virtual package to make easy default installation on desktop environments.
238
239 %prep
240 %setup -q
241 %patch0 -p1 -b .format_security
242 %patch1 -p1 -b .rpm46
243 %patch2 -p1 -b .disable_signature_check
244 %patch3 -p0 -b .mgabugzilla
245 %patch5 -p0 -b .debug
246 %patch6 -p0 -b .mageia-release
247 %patch7 -p0 -b .nspluginwrapper
248 %patch8 -p1 -b .nonutf8-locale
249 %patch10 -p0 -b .link
250 %patch11 -p1 -b .rpm5~
251 %patch12 -p1 -b .disable_oops_scanner
252
253 %build
254 NOCONFIGURE=yes gnome-autogen.sh
255 %configure2_5x --disable-rpath
256 %make
257
258 %install
259 rm -rf %{buildroot}
260 %makeinstall_std
261 %find_lang %{name}
262
263 #rm -rf %{buildroot}/%{_libdir}/lib*.la
264 #rm -rf %{buildroot}/%{_libdir}/%{name}/lib*.la
265 # remove all .la and .a files
266 find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
267 mkdir -p %{buildroot}/%{_initrddir}
268 install -m 755 %SOURCE1 %{buildroot}/%{_initrddir}/abrtd
269 mkdir -p %{buildroot}/var/cache/%{name}
270 mkdir -p %{buildroot}/var/cache/%{name}-di
271 mkdir -p %{buildroot}/var/run/%{name}
272 # remove fedora gpg key
273 rm -f %{buildroot}%{_sysconfdir}/abrt/gpg_keys
274 touch %{buildroot}%{_sysconfdir}/abrt/gpg_keys
275
276 # install ulimit disabler
277 mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
278 install -m755 %SOURCE2 %SOURCE3 %{buildroot}%{_sysconfdir}/profile.d/
279
280 desktop-file-install \
281 --dir %{buildroot}%{_sysconfdir}/xdg/autostart \
282 src/Applet/%{name}-applet.desktop
283
284 # replace with our own version
285 cat %{SOURCE4} > %{buildroot}/usr/bin/%{name}-debuginfo-install
286
287 #remove RH specific plugins
288 rm -f %{buildroot}%{_libdir}/%{name}/{RHTSupport.glade,libRHTSupport.so}
289 rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/RHTSupport.conf
290
291
292 %clean
293 rm -rf %{buildroot}
294
295 %pre
296 %_pre_useradd %{name} %{_sysconfdir}/%{name} /bin/nologin
297 %_pre_groupadd %{name} %{name}
298
299 %post
300 %_post_service %{name}d
301 %if %{?with_systemd}
302 # Enable (but don't start) the units by default
303 /bin/systemctl enable %{name}d.service >/dev/null 2>&1 || :
304 %endif
305
306
307 %preun
308 %_preun_service %{name}d
309 %if %{?with_systemd}
310 if [ "$1" -eq "0" ] ; then
311 /bin/systemctl stop %{name}d.service >/dev/null 2>&1 || :
312 /bin/systemctl disable %{name}d.service >/dev/null 2>&1 || :
313 fi
314 %endif
315
316
317 %postun
318 %_postun_userdel %{name}
319 %_postun_groupdel %{name} %{name}
320 %if %{?with_systemd}
321 if [ $1 -ge 1 ] ; then
322 # On upgrade, reload init system configuration if we changed unit files
323 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
324 fi
325 %endif
326
327
328 %files -f %{name}.lang
329 %defattr(-,root,root,-)
330 %doc README COPYING
331 #systemd
332 %if %{?with_systemd}
333 /lib/systemd/system/%{name}d.service
334 %endif
335 %{_sbindir}/%{name}d
336 %{_bindir}/%{name}-debuginfo-install
337 %{_bindir}/%{name}-backtrace
338 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
339 %config(noreplace) %{_sysconfdir}/%{name}/gpg_keys
340 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-%{name}.conf
341 %{_initrddir}/%{name}d
342 %dir %attr(0755, %{name}, %{name}) %{_localstatedir}/cache/%{name}
343 %dir /var/run/%{name}
344 %dir %{_sysconfdir}/%{name}
345 %dir %{_sysconfdir}/%{name}/plugins
346 %dir %{_libdir}/%{name}
347 %{_mandir}/man1/%{name}-backtrace.1.*
348 %{_mandir}/man8/abrtd.8.*
349 %{_mandir}/man5/%{name}.conf.5.*
350 #%{_mandir}/man5/pyhook.conf.5.*
351 %{_mandir}/man7/%{name}-plugins.7.*
352 %{_datadir}/polkit-1/actions/org.fedoraproject.abrt.policy
353 %{_datadir}/dbus-1/system-services/com.redhat.abrt.service
354 %config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf
355 %{_libdir}/%{name}/libSQLite3.so*
356 %{_mandir}/man7/%{name}-SQLite3.7.*
357 /lib/systemd/system/abrtd.service
358
359 %files -n %{lib_name}
360 %defattr(-,root,root,-)
361 %{_libdir}/lib*.so.*
362
363 %files -n %{lib_name_devel}
364 %defattr(-,root,root,-)
365 %{_libdir}/lib*.so
366 %{_includedir}/%{name}/*.h
367 %{_libdir}/pkgconfig/%{name}.pc
368
369 %files gui
370 %defattr(-,root,root,-)
371 %{_bindir}/%{name}-gui
372 %{_datadir}/%{name}
373 %{_datadir}/applications/%{name}.desktop
374 %{_datadir}/icons/hicolor/*/*/*.png
375 %{_bindir}/%{name}-applet
376 %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop
377
378 %files addon-ccpp
379 %defattr(-,root,root,-)
380 %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
381 %dir %{_localstatedir}/cache/%{name}-di
382 %{_libdir}/%{name}/libCCpp.so*
383 %{_libexecdir}/abrt-hook-ccpp
384 %{_sysconfdir}/profile.d/00abrt.*
385
386 %files addon-kerneloops
387 %defattr(-,root,root,-)
388 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf
389 %{_bindir}/dumpoops
390 %{_libdir}/%{name}/libKerneloops.so*
391 %{_libdir}/%{name}/libKerneloopsScanner.so*
392 %{_mandir}/man7/%{name}-KerneloopsScanner.7.*
393 %{_libdir}/%{name}/libKerneloopsReporter.so*
394 %{_libdir}/%{name}/KerneloopsReporter.glade
395 %{_mandir}/man7/%{name}-KerneloopsReporter.7.*
396
397 %files plugin-logger
398 %defattr(-,root,root,-)
399 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf
400 %{_libdir}/%{name}/libLogger.so*
401 %{_libdir}/%{name}/Logger.glade
402 %{_mandir}/man7/%{name}-Logger.7.*
403
404 %files plugin-mailx
405 %defattr(-,root,root,-)
406 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf
407 %{_libdir}/%{name}/libMailx.so*
408 %{_libdir}/%{name}/Mailx.glade
409 %{_mandir}/man7/%{name}-Mailx.7.*
410
411 %files plugin-runapp
412 %defattr(-,root,root,-)
413 %{_libdir}/%{name}/libRunApp.so*
414 %{_mandir}/man7/%{name}-RunApp.7.*
415
416 %files plugin-sosreport
417 %defattr(-,root,root,-)
418 %config(noreplace) %{_sysconfdir}/%{name}/plugins/SOSreport.conf
419 %{_libdir}/%{name}/libSOSreport.so*
420
421
422 %files plugin-bugzilla
423 %defattr(-,root,root,-)
424 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
425 %{_libdir}/%{name}/libBugzilla.so*
426 %{_libdir}/%{name}/Bugzilla.glade
427 %{_mandir}/man7/%{name}-Bugzilla.7.*
428
429 ##%files plugin-catcut
430 #%defattr(-,root,root,-)
431 #%config(noreplace) %{_sysconfdir}/%{name}/plugins/Catcut.conf
432 #%{_libdir}/%{name}/libCatcut.so*
433 #%{_libdir}/%{name}/Catcut.GTKBuilder
434 #%{_mandir}/man7/%{name}-Catcut.7.*
435
436 %files plugin-reportuploader
437 %defattr(-,root,root,-)
438 %config(noreplace) %{_sysconfdir}/%{name}/plugins/ReportUploader.conf
439 %{_bindir}/%{name}-handle-upload
440 %{_libdir}/%{name}/libReportUploader.so*
441 %{_libdir}/%{name}/ReportUploader.glade
442 %{_mandir}/man7/%{name}-ReportUploader.7.*
443
444 %files plugin-filetransfer
445 %defattr(-,root,root,-)
446 %config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf
447 %{_libdir}/%{name}/libFileTransfer.so*
448 %{_mandir}/man7/%{name}-FileTransfer.7.*
449
450 %files addon-python
451 %defattr(-,root,root,-)
452 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Python.conf
453 #%attr(4755, abrt, abrt) %{_libexecdir}/abrt-hook-python
454 %{_libdir}/%{name}/libPython.so*
455 %{py_puresitedir}/*.py*
456 %{py_puresitedir}/*.pth
457
458
459 %files cli
460 %defattr(-,root,root,-)
461 %{_bindir}/abrt-cli
462 %{_mandir}/man1/abrt-cli.1.*
463 %{_sysconfdir}/bash_completion.d/abrt-cli.bash
464
465 %files desktop
466 %defattr(-,root,root,-)
467
468
469

  ViewVC Help
Powered by ViewVC 1.1.30