]>
Commit | Line | Data |
---|---|---|
195da996 ER |
1 | Summary: Automatic bug detection and reporting tool |
2 | Name: abrt | |
3 | Version: 0.0.7.2 | |
4 | Release: 0.1 | |
5 | License: GPL v2+ | |
6 | Group: Applications/System | |
7 | URL: https://fedorahosted.org/abrt/ | |
8 | Source0: http://jmoskovc.fedorapeople.org/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: a822aef023f2e2e018f26901082eccce | |
10 | Source1: %{name}.init | |
11 | BuildRequires: curl-devel | |
12 | BuildRequires: dbus-c++-devel | |
13 | BuildRequires: dbus-devel | |
14 | BuildRequires: desktop-file-utils | |
15 | BuildRequires: file-devel | |
16 | BuildRequires: gettext | |
17 | BuildRequires: gtk2-devel | |
18 | BuildRequires: libnotify-devel | |
19 | BuildRequires: nss-devel | |
20 | BuildRequires: nss-devel | |
21 | BuildRequires: python-devel | |
22 | BuildRequires: rpm-devel >= 4.6 | |
23 | BuildRequires: sqlite-devel > 3.0 | |
24 | BuildRequires: xmlrpc-c-devel | |
25 | Requires: %{name}-libs = %{version}-%{release} | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | abrt is a tool to help users to detect defects in applications and to | |
30 | create a bug report with all informations needed by maintainer to fix | |
31 | it. It uses plugin system to extend its functionality. | |
32 | ||
33 | %package libs | |
34 | Summary: Libraries for abrt | |
35 | Group: Libraries | |
36 | ||
37 | %description libs | |
38 | Libraries for %{name}. | |
39 | ||
40 | %package devel | |
41 | Summary: Development libraries for abrt | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-libs = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Development libraries and headers for %{name}. | |
47 | ||
48 | %package gui | |
49 | Summary: abrt's gui | |
50 | Group: X11/Applications | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: dbus-python | |
53 | Requires: gnome-python2-gnomevfs | |
54 | Requires: pygtk2-libglade | |
55 | Requires: python-pygtk | |
56 | # only if gtk2 version < 2.17 | |
57 | #Requires: python-sexy | |
58 | Provides: abrt-applet = %{version}-%{release} | |
59 | Obsoletes: abrt-applet < 0.0.5 | |
60 | Obsoletes: bug-buddy | |
61 | Conflicts: abrt-applet < 0.0.5 | |
62 | ||
63 | %description gui | |
64 | GTK+ wizard for convenient bug reporting. | |
65 | ||
66 | %package addon-ccpp | |
67 | Summary: %{name}'s C/C++ addon | |
68 | Group: Libraries | |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: gdb | |
71 | ||
72 | %description addon-ccpp | |
73 | This package contains hook for C/C++ crashed programs and abrt's C/C++ | |
74 | analyzer plugin. | |
75 | ||
76 | %package addon-kerneloops | |
77 | Summary: %{name}'s kerneloops addon | |
78 | Group: Libraries | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | Requires: %{name}-plugin-kerneloopsreporter = %{version}-%{release} | |
81 | Obsoletes: abrt-plugin-kerneloops | |
82 | Obsoletes: kerneloops | |
83 | ||
84 | %description addon-kerneloops | |
85 | This package contains plugins for kernel crashes information | |
86 | collecting. | |
87 | ||
88 | %package plugin-kerneloopsreporter | |
89 | Summary: %{name}'s kerneloops reporter plugin | |
90 | Group: Libraries | |
91 | Requires: %{name} = %{version}-%{release} | |
92 | Requires: curl | |
93 | ||
94 | %description plugin-kerneloopsreporter | |
95 | This package contains reporter plugin, that sends, collected by abrt's | |
96 | kerneloops addon, information about kernel crashes to specified | |
97 | server, e.g. kerneloops.org. | |
98 | ||
99 | %package plugin-sqlite3 | |
100 | Summary: %{name}'s SQLite3 database plugin | |
101 | Group: Libraries | |
102 | Requires: %{name} = %{version}-%{release} | |
103 | ||
104 | %description plugin-sqlite3 | |
105 | This package contains SQLite3 database plugin. It is used for storing | |
106 | the data required for creating a bug report. | |
107 | ||
108 | %package plugin-logger | |
109 | Summary: %{name}'s logger reporter plugin | |
110 | Group: Libraries | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | ||
113 | %description plugin-logger | |
114 | The simple reporter plugin, which writes a report to a specified file. | |
115 | ||
116 | %package plugin-mailx | |
117 | Summary: %{name}'s mailx reporter plugin | |
118 | Group: Libraries | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | Requires: mailx | |
121 | ||
122 | %description plugin-mailx | |
123 | The simple reporter plugin, which sends a report via mailx to a | |
124 | specified email. | |
125 | ||
126 | %package plugin-runapp | |
127 | Summary: %{name}'s runapp plugin | |
128 | Group: Libraries | |
129 | Requires: %{name} = %{version}-%{release} | |
130 | ||
131 | %description plugin-runapp | |
132 | Plugin to run external programs. | |
133 | ||
134 | %package plugin-sosreport | |
135 | Summary: %{name}'s sosreport plugin | |
136 | Group: Libraries | |
137 | Requires: %{name} = %{version}-%{release} | |
138 | Requires: sos | |
139 | ||
140 | %description plugin-sosreport | |
141 | Plugin to include an sosreport in an abrt report. | |
142 | ||
143 | %package plugin-bugzilla | |
144 | Summary: %{name}'s bugzilla plugin | |
145 | Group: Libraries | |
146 | Requires: %{name} = %{version}-%{release} | |
147 | ||
148 | %description plugin-bugzilla | |
149 | Plugin to report bugs into the bugzilla. | |
150 | ||
151 | %package plugin-filetransfer | |
152 | Summary: %{name}'s File Transfer plugin | |
153 | Group: Libraries | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | ||
156 | %description plugin-filetransfer | |
157 | Plugin to uploading files to a server. | |
158 | ||
159 | %package addon-python | |
160 | Summary: %{name}'s addon for catching and analyzing Python exceptions | |
161 | Group: Libraries | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | ||
164 | %description addon-python | |
165 | This package contains python hook and python analyzer plugin for | |
166 | hadnling uncaught exception in python programs. | |
167 | ||
168 | %package cli | |
169 | Summary: %{name}'s command line interface | |
170 | Group: X11/Applications | |
171 | Requires: %{name} = %{version}-%{release} | |
172 | ||
173 | %description cli | |
174 | This package contains simple command line client for controling abrt | |
175 | daemon over the sockets. | |
176 | ||
177 | %package desktop | |
178 | Summary: Virtual package to install all necessary packages for usage from desktop environment | |
179 | Group: X11/Applications | |
180 | Requires: %{name} = %{version}-%{release} | |
181 | Requires: %{name}-addon-ccpp = %{version}-%{release} | |
182 | Requires: %{name}-addon-kerneloops = %{version}-%{release} | |
183 | Requires: %{name}-addon-python = %{version}-%{release} | |
184 | Requires: %{name}-gui = %{version}-%{release} | |
185 | Requires: %{name}-plugin-bugzilla = %{version}-%{release} | |
186 | Requires: %{name}-plugin-sqlite3 = %{version}-%{release} | |
187 | ||
188 | %description desktop | |
189 | Virtual package to make easy default instalation on desktop | |
190 | environments. | |
191 | ||
192 | %prep | |
193 | %setup -q | |
194 | ||
195 | %build | |
196 | %configure | |
197 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool | |
198 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool | |
199 | %{__make} %{?_smp_mflags} | |
200 | ||
201 | %install | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | %{__make} install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} | |
204 | %find_lang %{name} | |
205 | ||
206 | #rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib*.la | |
207 | #rm -rf $RPM_BUILD_ROOT/%{_libdir}/%{name}/lib*.la | |
208 | # remove all .la and .a files | |
209 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f | |
210 | install -d ${RPM_BUILD_ROOT}/%{_initrddir} | |
211 | install %SOURCE1 ${RPM_BUILD_ROOT}/%{_initrddir}/abrtd | |
212 | install -d $RPM_BUILD_ROOT/var/cache/%{name} | |
213 | ||
214 | desktop-file-install \ | |
215 | --dir ${RPM_BUILD_ROOT}%{_desktopdir} \ | |
216 | src/Gui/%{name}.desktop | |
217 | ||
218 | desktop-file-install \ | |
219 | --dir ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart \ | |
220 | src/Applet/%{name}-applet.desktop | |
221 | ||
222 | %clean | |
223 | rm -rf $RPM_BUILD_ROOT | |
224 | ||
225 | %post | |
226 | /sbin/chkconfig --add %{name}d | |
227 | ||
228 | %post libs -p /sbin/ldconfig | |
229 | ||
230 | %preun | |
231 | if [ "$1" -eq "0" ] ; then | |
232 | service %{name}d stop >/dev/null 2>&1 | |
233 | /sbin/chkconfig --del %{name}d | |
234 | fi | |
235 | ||
236 | %postun libs -p /sbin/ldconfig | |
237 | ||
238 | %files -f %{name}.lang | |
239 | %defattr(644,root,root,755) | |
240 | %doc README COPYING | |
241 | %attr(755,root,root) %{_sbindir}/%{name}d | |
242 | %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf | |
243 | %config(noreplace) /etc/dbus-1/system.d/dbus-%{name}.conf | |
244 | %{_initrddir}/%{name}d | |
245 | %dir /var/cache/%{name} | |
246 | %dir %{_sysconfdir}/%{name} | |
247 | %dir %{_sysconfdir}/%{name}/plugins | |
248 | %dir %{_libdir}/%{name} | |
249 | %{_mandir}/man8/%{name}.8* | |
250 | %{_mandir}/man5/%{name}.conf.5* | |
251 | %{_mandir}/man7/%{name}-plugins.7* | |
252 | ||
253 | %files libs | |
254 | %defattr(644,root,root,755) | |
255 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
256 | ||
257 | %files devel | |
258 | %defattr(644,root,root,755) | |
259 | %{_libdir}/lib*.so | |
260 | ||
261 | %files gui | |
262 | %defattr(644,root,root,755) | |
263 | %attr(755,root,root) %{_bindir}/%{name}-gui | |
264 | %{_datadir}/%{name} | |
265 | %{_desktopdir}/%{name}.desktop | |
266 | %attr(755,root,root) %{_bindir}/%{name}-applet | |
267 | %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop | |
268 | ||
269 | %files addon-ccpp | |
270 | %defattr(644,root,root,755) | |
271 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf | |
272 | %attr(755,root,root) %{_libdir}/%{name}/libCCpp.so* | |
273 | %{_libexecdir}/hookCCpp | |
274 | ||
275 | %files addon-kerneloops | |
276 | %defattr(644,root,root,755) | |
277 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsScanner.conf | |
278 | %attr(755,root,root) %{_bindir}/dumpoops | |
279 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloops.so* | |
280 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsScanner.so* | |
281 | %{_mandir}/man7/%{name}-KerneloopsScanner.7* | |
282 | ||
283 | %files plugin-kerneloopsreporter | |
284 | %defattr(644,root,root,755) | |
285 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsReporter.conf | |
286 | %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsReporter.so* | |
287 | %{_libdir}/%{name}/KerneloopsReporter.GTKBuilder | |
288 | %{_mandir}/man7/%{name}-KerneloopsReporter.7* | |
289 | ||
290 | %files plugin-sqlite3 | |
291 | %defattr(644,root,root,755) | |
292 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf | |
293 | %attr(755,root,root) %{_libdir}/%{name}/libSQLite3.so* | |
294 | %{_mandir}/man7/%{name}-SQLite3.7* | |
295 | ||
296 | %files plugin-logger | |
297 | %defattr(644,root,root,755) | |
298 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf | |
299 | %attr(755,root,root) %{_libdir}/%{name}/libLogger.so* | |
300 | %{_libdir}/%{name}/Logger.GTKBuilder | |
301 | %{_mandir}/man7/%{name}-Logger.7* | |
302 | ||
303 | %files plugin-mailx | |
304 | %defattr(644,root,root,755) | |
305 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf | |
306 | %attr(755,root,root) %{_libdir}/%{name}/libMailx.so* | |
307 | %{_libdir}/%{name}/Mailx.GTKBuilder | |
308 | %{_mandir}/man7/%{name}-Mailx.7* | |
309 | ||
310 | %files plugin-runapp | |
311 | %defattr(644,root,root,755) | |
312 | %attr(755,root,root) %{_libdir}/%{name}/libRunApp.so* | |
313 | %{_mandir}/man7/%{name}-RunApp.7* | |
314 | ||
315 | %files plugin-sosreport | |
316 | %defattr(644,root,root,755) | |
317 | %attr(755,root,root) %{_libdir}/%{name}/libSOSreport.so* | |
318 | ||
319 | %files plugin-bugzilla | |
320 | %defattr(644,root,root,755) | |
321 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf | |
322 | %attr(755,root,root) %{_libdir}/%{name}/libBugzilla.so* | |
323 | %{_libdir}/%{name}/Bugzilla.GTKBuilder | |
324 | %{_mandir}/man7/%{name}-Bugzilla.7* | |
325 | ||
326 | %files plugin-filetransfer | |
327 | %defattr(644,root,root,755) | |
328 | %config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf | |
329 | %attr(755,root,root) %{_libdir}/%{name}/libFileTransfer.so* | |
330 | %{_mandir}/man7/%{name}-FileTransfer.7* | |
331 | ||
332 | %files addon-python | |
333 | %defattr(644,root,root,755) | |
334 | %config(noreplace) %{_sysconfdir}/%{name}/pyhook.conf | |
335 | %{python_sitearch}/ABRTUtils.so | |
336 | %attr(755,root,root) %{_libdir}/%{name}/libPython.so* | |
337 | %{python_site}/*.py* | |
338 | ||
339 | %files cli | |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_bindir}/abrt-cli | |
342 | ||
343 | %files desktop | |
344 | %defattr(644,root,root,755) |