/[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 21484 - (hide annotations) (download)
Mon Jan 17 17:56:58 2011 UTC (13 years, 2 months ago) by blino
File size: 13636 byte(s)
remove old version in comments

1 blino 21273 %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 blino 21484 # (fc) fix format security error
20 blino 21273 # (misc) sent upstream https://fedorahosted.org/abrt/attachment/ticket/120
21     Patch0: abrt-1.1.14-format_security.patch
22 blino 21484 # (fc) fix build with rpm 4.6
23 blino 21273 Patch1: abrt-1.0.8-rpm46.patch
24 blino 21484 # (fc) disable package signature check
25 blino 21273 Patch2: abrt_disable_gpgcheck.diff
26 blino 21484 # (fc) use mdv bugzilla
27 blino 21273 Patch3: abrt-mdvbugzilla.patch
28 blino 21484 # (pt) generate stacktrace twice to get missing -debug packages
29 blino 21273 Patch5: abrt-1.1.14-debug.patch
30 blino 21484 # (fc) parse mandriva-release
31 blino 21273 Patch6: abrt-1.1.13-mandriva-release.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     # (proyvind): port to rpm5 api
38     Patch11: abrt-1.1.14-rpm5.patch
39     # (eugeni): disable kernel oops cron plugin by default (mdv #61986)
40     Patch12: abrt-1.1.14-disable_oops_scanner.patch
41     BuildRequires: dbus-devel
42     BuildRequires: gtk2-devel
43     BuildRequires: curl-devel
44     BuildRequires: rpm-devel >= 1:5.3
45     BuildRequires: sqlite-devel > 3.0
46     BuildRequires: desktop-file-utils
47     #BuildRequires: nss-devel
48     BuildRequires: libnotify-devel
49     BuildRequires: xmlrpc-c-devel
50     BuildRequires: xmlrpc-c
51     BuildRequires: file-devel
52     BuildRequires: python-devel
53     BuildRequires: gettext
54     BuildRequires: polkit-1-devel
55     BuildRequires: libzip-devel, libtar-devel, bzip2-devel, zlib-devel
56     BuildRequires: intltool
57     BuildRequires: gnome-common
58     BuildRequires: bison
59     %if %{?with_systemd}
60     Requires: systemd-units
61     BuildRequires: systemd-units
62     %endif
63     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
64     Requires: %{lib_name} >= %{version}-%{release}
65     Requires(pre): rpm-helper
66     Requires(post): rpm-helper
67     Requires(preun): rpm-helper
68     Requires(postun): rpm-helper
69     Obsoletes: plugin-catcut < 1.1.13
70    
71     %description
72     %{name} is a tool to help users to detect defects in applications and
73     to create a bug report with all informations needed by maintainer to fix it.
74     It uses plugin system to extend its functionality.
75    
76     %package -n %{lib_name}
77     Summary: Libraries for %{name}
78     Group: System/Libraries
79    
80     %description -n %{lib_name}
81     Libraries for %{name}.
82    
83     %package -n %{lib_name_devel}
84     Summary: Development libraries for %{name}
85     Group: Development/C
86     Requires: %{lib_name} = %{version}-%{release}
87     Requires: abrt = %{version}-%{release}
88     Obsoletes: %{_lib}abrt0-devel
89    
90     %description -n %{lib_name_devel}
91     Development libraries and headers for %{name}.
92    
93     %package gui
94     Summary: %{name}'s gui
95     Group: Graphical desktop/Other
96     Requires: %{name} = %{version}-%{release}
97     Requires: dbus-python, pygtk2.0, pygtk2.0-libglade
98     Requires: python-gobject
99     Requires: gnome-python-desktop
100    
101     %description gui
102     GTK+ wizard for convenient bug reporting.
103    
104     %package addon-ccpp
105     Summary: %{name}'s C/C++ addon
106     Group: System/Libraries
107     Requires: elfutils
108     Requires: %{name} = %{version}-%{release}
109    
110     %description addon-ccpp
111     This package contains hook for C/C++ crashed programs and %{name}'s C/C++
112     analyzer plugin.
113    
114     %package addon-kerneloops
115     Summary: %{name}'s kerneloops addon
116     Group: System/Libraries
117     Requires: curl
118     Requires: %{name} = %{version}-%{release}
119     #Obsoletes: kerneloops
120    
121     %description addon-kerneloops
122     This package contains plugin for collecting kernel crash information
123     and reporter plugin which sends this information to specified server,
124     usually to kerneloops.org.
125    
126     %package plugin-logger
127     Summary: %{name}'s logger reporter plugin
128     Group: System/Libraries
129     Requires: %{name} = %{version}-%{release}
130    
131     %description plugin-logger
132     The simple reporter plugin which writes a report to a specified file.
133    
134     %package plugin-mailx
135     Summary: %{name}'s mailx reporter plugin
136     Group: System/Libraries
137     Requires: %{name} = %{version}-%{release}
138     Requires: mailx
139    
140     %description plugin-mailx
141     The simple reporter plugin which sends a report via mailx to a specified
142     email address.
143    
144     %package plugin-runapp
145     Summary: %{name}'s runapp plugin
146     Group: System/Libraries
147     Requires: %{name} = %{version}-%{release}
148    
149     %description plugin-runapp
150     Plugin to run external programs.
151    
152     %package plugin-sosreport
153     Summary: %{name}'s sosreport plugin
154     Group: System/Libraries
155     Requires: sos
156     Requires: %{name} = %{version}-%{release}
157    
158     %description plugin-sosreport
159     Plugin to include an sosreport in an abrt report.
160    
161     %package plugin-bugzilla
162     Summary: %{name}'s bugzilla plugin
163     Group: System/Libraries
164     Requires: %{name} = %{version}-%{release}
165    
166     %description plugin-bugzilla
167     Plugin to report bugs into the bugzilla.
168    
169     ##%package plugin-catcut
170     #Summary: %{name}'s catcut plugin
171     #Group: System/Libraries
172     #Requires: %{name} = %{version}-%{release}
173    
174     ##%description plugin-catcut
175     #Plugin to report bugs into the catcut.
176    
177     %package plugin-reportuploader
178     Summary: %{name}'s ticketuploader plugin
179     Group: System/Libraries
180     Requires: %{name} = %{version}-%{release}
181     Obsoletes: plugin-ticketuploader < 1.1.13
182     Provides: plugin-ticketuploader = %{version}-%{release}
183    
184     %description plugin-reportuploader
185     Plugin to report bugs into anonymous FTP site associated with ticketing system.
186    
187     %package plugin-filetransfer
188     Summary: %{name}'s File Transfer plugin
189     Group: System/Libraries
190     Requires: %{name} = %{version}-%{release}
191    
192     %description plugin-filetransfer
193     Plugin to uploading files to a server.
194    
195     %package addon-python
196     Summary: %{name}'s addon for catching and analyzing Python exceptions
197     Group: System/Libraries
198     Requires: %{name} = %{version}-%{release}
199    
200     %description addon-python
201     This package contains python hook and python analyzer plugin for handling
202     uncaught exception in python programs.
203    
204     %package cli
205     Summary: %{name}'s command line interface
206     Group: Graphical desktop/Other
207     Requires: %{name} = %{version}-%{release}
208     Requires: %{name}-addon-kerneloops
209     Requires: %{name}-addon-ccpp, %{name}-addon-python
210     Requires: %{name}-plugin-bugzilla, %{name}-plugin-logger, %{name}-plugin-runapp
211    
212     %description cli
213     This package contains simple command line client for controlling abrt
214     daemon over the sockets.
215    
216     %package desktop
217     Summary: Virtual package to install all necessary packages for usage from desktop environment
218     Group: Graphical desktop/Other
219     # This package gets installed when anything requests bug-buddy -
220     # happens when users upgrade Fn to Fn+1;
221     # or if user just wants "typical desktop installation".
222     # Installing abrt-desktop should result in the abrt which works without
223     # any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed)
224     Requires: %{name} = %{version}-%{release}
225     Requires: %{name}-addon-kerneloops
226     Requires: %{name}-addon-ccpp, %{name}-addon-python
227     # Default config of addon-ccpp requires gdb
228     Requires: gdb >= 7.0-3
229     Requires: %{name}-gui
230     Requires: %{name}-plugin-logger, %{name}-plugin-bugzilla, %{name}-plugin-runapp
231     #Obsoletes: bug-buddy
232     #Provides: bug-buddy
233    
234     %description desktop
235     Virtual package to make easy default installation on desktop environments.
236    
237     %prep
238     %setup -q
239     %patch0 -p1 -b .format_security
240     %patch1 -p1 -b .rpm46
241     %patch2 -p1 -b .disable_signature_check
242     %patch3 -p0 -b .mdvbugzilla
243     %patch5 -p0 -b .debug
244     %patch6 -p0 -b .mandriva-release
245     %patch7 -p0 -b .nspluginwrapper
246     %patch8 -p1 -b .nonutf8-locale
247     %patch10 -p0 -b .link
248     %patch11 -p1 -b .rpm5~
249     %patch12 -p1 -b .disable_oops_scanner
250    
251     %build
252     NOCONFIGURE=yes gnome-autogen.sh
253     %configure2_5x --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     /lib/systemd/system/abrtd.service
356    
357     %files -n %{lib_name}
358     %defattr(-,root,root,-)
359     %{_libdir}/lib*.so.*
360    
361     %files -n %{lib_name_devel}
362     %defattr(-,root,root,-)
363     %{_libdir}/lib*.so
364     %{_includedir}/%{name}/*.h
365     %{_libdir}/pkgconfig/%{name}.pc
366    
367     %files gui
368     %defattr(-,root,root,-)
369     %{_bindir}/%{name}-gui
370     %{_datadir}/%{name}
371     %{_datadir}/applications/%{name}.desktop
372     %{_datadir}/icons/hicolor/*/*/*.png
373     %{_bindir}/%{name}-applet
374     %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop
375    
376     %files addon-ccpp
377     %defattr(-,root,root,-)
378     %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
379     %dir %{_localstatedir}/cache/%{name}-di
380     %{_libdir}/%{name}/libCCpp.so*
381     %{_libexecdir}/abrt-hook-ccpp
382     %{_sysconfdir}/profile.d/00abrt.*
383    
384     %files addon-kerneloops
385     %defattr(-,root,root,-)
386     %config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf
387     %{_bindir}/dumpoops
388     %{_libdir}/%{name}/libKerneloops.so*
389     %{_libdir}/%{name}/libKerneloopsScanner.so*
390     %{_mandir}/man7/%{name}-KerneloopsScanner.7.*
391     %{_libdir}/%{name}/libKerneloopsReporter.so*
392     %{_libdir}/%{name}/KerneloopsReporter.glade
393     %{_mandir}/man7/%{name}-KerneloopsReporter.7.*
394    
395     %files plugin-logger
396     %defattr(-,root,root,-)
397     %config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf
398     %{_libdir}/%{name}/libLogger.so*
399     %{_libdir}/%{name}/Logger.glade
400     %{_mandir}/man7/%{name}-Logger.7.*
401    
402     %files plugin-mailx
403     %defattr(-,root,root,-)
404     %config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf
405     %{_libdir}/%{name}/libMailx.so*
406     %{_libdir}/%{name}/Mailx.glade
407     %{_mandir}/man7/%{name}-Mailx.7.*
408    
409     %files plugin-runapp
410     %defattr(-,root,root,-)
411     %{_libdir}/%{name}/libRunApp.so*
412     %{_mandir}/man7/%{name}-RunApp.7.*
413    
414     %files plugin-sosreport
415     %defattr(-,root,root,-)
416     %config(noreplace) %{_sysconfdir}/%{name}/plugins/SOSreport.conf
417     %{_libdir}/%{name}/libSOSreport.so*
418    
419    
420     %files plugin-bugzilla
421     %defattr(-,root,root,-)
422     %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
423     %{_libdir}/%{name}/libBugzilla.so*
424     %{_libdir}/%{name}/Bugzilla.glade
425     %{_mandir}/man7/%{name}-Bugzilla.7.*
426    
427     ##%files plugin-catcut
428     #%defattr(-,root,root,-)
429     #%config(noreplace) %{_sysconfdir}/%{name}/plugins/Catcut.conf
430     #%{_libdir}/%{name}/libCatcut.so*
431     #%{_libdir}/%{name}/Catcut.GTKBuilder
432     #%{_mandir}/man7/%{name}-Catcut.7.*
433    
434     %files plugin-reportuploader
435     %defattr(-,root,root,-)
436     %config(noreplace) %{_sysconfdir}/%{name}/plugins/ReportUploader.conf
437     %{_bindir}/%{name}-handle-upload
438     %{_libdir}/%{name}/libReportUploader.so*
439     %{_libdir}/%{name}/ReportUploader.glade
440     %{_mandir}/man7/%{name}-ReportUploader.7.*
441    
442     %files plugin-filetransfer
443     %defattr(-,root,root,-)
444     %config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf
445     %{_libdir}/%{name}/libFileTransfer.so*
446     %{_mandir}/man7/%{name}-FileTransfer.7.*
447    
448     %files addon-python
449     %defattr(-,root,root,-)
450     %config(noreplace) %{_sysconfdir}/%{name}/plugins/Python.conf
451     #%attr(4755, abrt, abrt) %{_libexecdir}/abrt-hook-python
452     %{_libdir}/%{name}/libPython.so*
453     %{py_puresitedir}/*.py*
454     %{py_puresitedir}/*.pth
455    
456    
457     %files cli
458     %defattr(-,root,root,-)
459     %{_bindir}/abrt-cli
460     %{_mandir}/man1/abrt-cli.1.*
461     %{_sysconfdir}/bash_completion.d/abrt-cli.bash
462    
463     %files desktop
464     %defattr(-,root,root,-)
465    
466    
467    

  ViewVC Help
Powered by ViewVC 1.1.30