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

  ViewVC Help
Powered by ViewVC 1.1.30