/[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 61084 - (show annotations) (download)
Sat Feb 26 23:53:49 2011 UTC (13 years, 1 month ago) by tmb
File size: 13823 byte(s)
systemd-units is only needed for the build, not actually Required
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) fix build with rpm 4.6
24 Patch1: abrt-1.0.8-rpm46.patch
25 # (fc) disable package signature check
26 Patch2: abrt_disable_gpgcheck.diff
27 # (blino) use Mageia bugzilla (adapted from Mandriva patch from fcrozat)
28 # FIXME: check the query is still correct when bugzilla is deployed
29 Patch3: abrt-mageiabugzilla.patch
30 # (pt) generate stacktrace twice to get missing -debug packages
31 Patch5: abrt-1.1.14-debug.patch
32 # (blino) parse /etc/release (adapted from Mandriva patch from fcrozat)
33 # FIXME: check the parsing is ok
34 Patch6: abrt-1.1.13-mageia-release.patch
35 # (fc) disable nspluginwrapper-i386 (Mdv bug #59237)
36 Patch7: abrt-1.1.13-nspluginwrapper.patch
37 # (fc) fix for non UTF-8 locale
38 Patch8: abrt-1.1.1-nonutf8-locale.patch
39 Patch10: abrt-1.1.14-link.patch
40 # (proyvind): port to rpm5 api
41 Patch11: abrt-1.1.14-rpm5.patch
42 # (eugeni): disable kernel oops cron plugin by default (mdv #61986)
43 Patch12: abrt-1.1.14-disable_oops_scanner.patch
44 BuildRequires: dbus-devel
45 BuildRequires: gtk2-devel
46 BuildRequires: curl-devel
47 BuildRequires: rpm-devel
48 BuildRequires: sqlite-devel > 3.0
49 BuildRequires: desktop-file-utils
50 #BuildRequires: nss-devel
51 BuildRequires: libnotify-devel
52 BuildRequires: xmlrpc-c-devel
53 BuildRequires: xmlrpc-c
54 BuildRequires: file-devel
55 BuildRequires: python-devel
56 BuildRequires: gettext
57 BuildRequires: polkit-1-devel
58 BuildRequires: libzip-devel, libtar-devel, bzip2-devel, zlib-devel
59 BuildRequires: intltool
60 BuildRequires: gnome-common
61 BuildRequires: bison
62 %if %{?with_systemd}
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
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