/[packages]/cauldron/abrt/current/SPECS/abrt.spec
ViewVC logotype

Annotation of /cauldron/abrt/current/SPECS/abrt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 109606 - (hide annotations) (download)
Sun Jun 19 04:55:45 2011 UTC (12 years, 10 months ago) by ahmad
File size: 13540 byte(s)
- Rebuild against new libnotify-0.7
- Add BR libdbus-glib-devel

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

  ViewVC Help
Powered by ViewVC 1.1.30