/[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 61317 - (show annotations) (download)
Sun Feb 27 23:14:51 2011 UTC (9 years, 1 month ago) by dmorgan
File size: 13719 byte(s)
Remove rpm46 and rpm5 patches

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

  ViewVC Help
Powered by ViewVC 1.1.26