/[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 83126 - (show annotations) (download)
Mon Apr 11 00:03:41 2011 UTC (10 years ago) by dmorgan
File size: 13579 byte(s)
New version 1.1.17
Merge patch 3 and 6
Fix file list

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

  ViewVC Help
Powered by ViewVC 1.1.28