]> git.pld-linux.org Git - packages/abrt.git/blob - abrt.spec
465a900618374edee372840349a5bd961a1c0d76
[packages/abrt.git] / abrt.spec
1 # TODO
2 # - fixes to get working with jbj rpm
3 Summary:        Automatic bug detection and reporting tool
4 Name:           abrt
5 Version:        1.0.0
6 Release:        0.1
7 License:        GPL v2+
8 Group:          Applications/System
9 URL:            https://fedorahosted.org/abrt/
10 Source0:        http://jmoskovc.fedorapeople.org/%{name}-%{version}.tar.gz
11 # Source0-md5:  62a8a6a1d7712472133b97b38469683e
12 Source1:        %{name}.init
13 Patch0:         %{name}-rpm.patch
14 BuildRequires:  bzip2-devel
15 BuildRequires:  curl-devel
16 BuildRequires:  dbus-devel
17 BuildRequires:  desktop-file-utils
18 BuildRequires:  gettext
19 BuildRequires:  gtk+2-devel
20 BuildRequires:  intltool
21 BuildRequires:  libmagic-devel
22 BuildRequires:  libnotify-devel
23 BuildRequires:  libtar-devel
24 BuildRequires:  libzip-devel
25 BuildRequires:  nss-devel
26 BuildRequires:  polkit-devel
27 BuildRequires:  python-devel
28 BuildRequires:  rpm-devel >= 4.5-28
29 BuildRequires:  rpmbuild(macros) >= 1.219
30 BuildRequires:  sqlite3-devel
31 BuildRequires:  xmlrpc-c-devel >= 1.20.3-1
32 BuildRequires:  zlib-devel
33 Requires(postun):       /sbin/ldconfig
34 Requires(postun):       /usr/sbin/groupdel
35 Requires(pre):  /usr/bin/getgid
36 Requires(pre):  /usr/sbin/groupadd
37 Requires:       %{name}-libs = %{version}-%{release}
38 Provides:       group(abrt)
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 abrt is a tool to help users to detect defects in applications and to
43 create a bug report with all informations needed by maintainer to fix
44 it. It uses plugin system to extend its functionality.
45
46 %package libs
47 Summary:        Libraries for abrt
48 Group:          Libraries
49
50 %description libs
51 Libraries for %{name}.
52
53 %package devel
54 Summary:        Development libraries for abrt
55 Group:          Development/Libraries
56 Requires:       %{name}-libs = %{version}-%{release}
57
58 %description devel
59 Development libraries and headers for %{name}.
60
61 %package gui
62 Summary:        abrt's gui
63 Group:          X11/Applications
64 Requires:       %{name} = %{version}-%{release}
65 Requires:       dbus-python
66 Requires:       gnome-python2-gnomekeyring
67 Requires:       gnome-python2-gnomevfs
68 Requires:       pygtk2-libglade
69 Requires:       python-pygtk
70 # only if gtk2 version < 2.17
71 #Requires: python-sexy
72 Provides:       abrt-applet = %{version}-%{release}
73 Provides:       bug-buddy
74 Obsoletes:      abrt-applet < 0.0.5
75 Obsoletes:      bug-buddy
76 Obsoletes:      bug-buddy
77 Conflicts:      abrt-applet < 0.0.5
78
79 %description gui
80 GTK+ wizard for convenient bug reporting.
81
82 %package addon-ccpp
83 Summary:        abrt's C/C++ addon
84 Group:          Libraries
85 Requires:       %{name} = %{version}-%{release}
86 Requires:       elfutils
87 Requires:       gdb >= 7.0-3
88 Requires:       yum-utils
89
90 %description addon-ccpp
91 This package contains hook for C/C++ crashed programs and abrt's C/C++
92 analyzer plugin.
93
94 %package plugin-firefox
95 Summary:        abrt's Firefox analyzer plugin
96 Group:          Libraries
97 Requires:       %{name} = %{version}-%{release}
98 Requires:       elfutils
99 Requires:       gdb >= 7.0-3
100 Requires:       yum-utils
101
102 %description plugin-firefox
103 This package contains hook for Firefox
104
105 %package addon-kerneloops
106 Summary:        abrt's kerneloops addon
107 Group:          Libraries
108 Requires:       %{name} = %{version}-%{release}
109 Requires:       %{name}-plugin-kerneloopsreporter = %{version}-%{release}
110 Obsoletes:      abrt-plugin-kerneloops
111 Obsoletes:      kerneloops
112
113 %description addon-kerneloops
114 This package contains plugins for kernel crashes information
115 collecting.
116
117 %package plugin-kerneloopsreporter
118 Summary:        abrt's kerneloops reporter plugin
119 Group:          Libraries
120 Requires:       %{name} = %{version}-%{release}
121 Requires:       curl
122
123 %description plugin-kerneloopsreporter
124 This package contains reporter plugin, that sends, collected by abrt's
125 kerneloops addon, information about kernel crashes to specified
126 server, e.g. kerneloops.org.
127
128 %package plugin-sqlite3
129 Summary:        abrt's SQLite3 database plugin
130 Group:          Libraries
131 Requires:       %{name} = %{version}-%{release}
132
133 %description plugin-sqlite3
134 This package contains SQLite3 database plugin. It is used for storing
135 the data required for creating a bug report.
136
137 %package plugin-logger
138 Summary:        abrt's logger reporter plugin
139 Group:          Libraries
140 Requires:       %{name} = %{version}-%{release}
141
142 %description plugin-logger
143 The simple reporter plugin, which writes a report to a specified file.
144
145 %package plugin-mailx
146 Summary:        abrt's mailx reporter plugin
147 Group:          Libraries
148 Requires:       %{name} = %{version}-%{release}
149 Requires:       mailx
150
151 %description plugin-mailx
152 The simple reporter plugin, which sends a report via mailx to a
153 specified email.
154
155 %package plugin-runapp
156 Summary:        abrt's runapp plugin
157 Group:          Libraries
158 Requires:       %{name} = %{version}-%{release}
159
160 %description plugin-runapp
161 Plugin to run external programs.
162
163 %package plugin-sosreport
164 Summary:        abrt's sosreport plugin
165 Group:          Libraries
166 Requires:       %{name} = %{version}-%{release}
167 Requires:       sos
168
169 %description plugin-sosreport
170 Plugin to include an sosreport in an abrt report.
171
172 %package plugin-bugzilla
173 Summary:        abrt's bugzilla plugin
174 Group:          Libraries
175 Requires:       %{name} = %{version}-%{release}
176
177 %description plugin-bugzilla
178 Plugin to report bugs into the bugzilla.
179
180 %package plugin-catcut
181 Summary:        abrt's catcut plugin
182 Group:          Libraries
183 Requires:       %{name} = %{version}-%{release}
184
185 %description plugin-catcut
186 Plugin to report bugs into the catcut.
187
188 %package plugin-ticketuploader
189 Summary:        abrt's ticketuploader plugin
190 Group:          Libraries
191 Requires:       %{name} = %{version}-%{release}
192
193 %description plugin-ticketuploader
194 Plugin to report bugs into anonymous FTP site associated with
195 ticketing system.
196
197 %package plugin-filetransfer
198 Summary:        abrt's File Transfer plugin
199 Group:          Libraries
200 Requires:       %{name} = %{version}-%{release}
201
202 %description plugin-filetransfer
203 Plugin to uploading files to a server.
204
205 %package addon-python
206 Summary:        abrt's addon for catching and analyzing Python exceptions
207 Group:          Libraries
208 Requires:       %{name} = %{version}-%{release}
209
210 %description addon-python
211 This package contains python hook and python analyzer plugin for
212 hadnling uncaught exception in python programs.
213
214 %package cli
215 Summary:        abrt's command line interface
216 Group:          X11/Applications
217 Requires:       %{name} = %{version}-%{release}
218
219 %description cli
220 This package contains simple command line client for controling abrt
221 daemon over the sockets.
222
223 %package desktop
224 Summary:        Virtual package to install all necessary packages for usage from desktop environment
225 Group:          X11/Applications
226 Requires:       %{name} = %{version}-%{release}
227 Requires:       %{name}-addon-ccpp = %{version}-%{release}
228 Requires:       %{name}-addon-kerneloops = %{version}-%{release}
229 Requires:       %{name}-addon-python = %{version}-%{release}
230 Requires:       %{name}-plugin-bugzilla = %{version}-%{release}
231 #Requires:      %{name}-plugin-firefox = %{version}-%{release}
232 Requires:       %{name}-plugin-logger = %{version}-%{release}
233 Requires:       %{name}-plugin-sqlite3 = %{version}-%{release}
234
235 %description desktop
236 Virtual package to make easy default instalation on desktop
237 environments.
238
239 %prep
240 %setup -q
241 %patch0 -p1
242
243 %build
244 %configure
245 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
246 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
247 %{__make}
248
249 %install
250 rm -rf $RPM_BUILD_ROOT
251 %{__make} install \
252         mandir=%{_mandir} \
253         DESTDIR=$RPM_BUILD_ROOT
254
255 %find_lang %{name}
256
257 %py_postclean
258
259 # remove all .la and .a files
260 find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
261 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
262 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/abrtd
263 install -d $RPM_BUILD_ROOT/var/cache/%{name}
264 install -d $RPM_BUILD_ROOT/var/cache/%{name}-di
265 install -d $RPM_BUILD_ROOT/var/run/%{name}
266
267 desktop-file-install \
268         --dir $RPM_BUILD_ROOT%{_desktopdir} \
269         --delete-original \
270         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
271
272 desktop-file-install \
273         --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart \
274         src/Applet/%{name}-applet.desktop
275
276 %clean
277 rm -rf $RPM_BUILD_ROOT
278
279 %pre
280 %groupadd -g 182 abrt
281
282 %post
283 /sbin/chkconfig --add abrtd
284 %service abortd restart
285
286 %preun
287 if [ "$1" = "0" ]; then
288         %service abrtd stop
289         /sbin/chkconfig --del abrtd
290 fi
291
292 %post   libs -p /sbin/ldconfig
293
294 %postun
295 /sbin/ldconfig
296 if [ "$1" = "0" ]; then
297         %groupremove abrt
298 fi
299
300 %files -f %{name}.lang
301 %defattr(644,root,root,755)
302 %doc README COPYING
303 %attr(755,root,root) %{_sbindir}/abrtd
304 %attr(755,root,root) %{_bindir}/%{name}-debuginfo-install
305 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
306 %config(noreplace) /etc/dbus-1/system.d/dbus-%{name}.conf
307 %attr(754,root,root) /etc/rc.d/init.d/abrtd
308 %dir %attr(775,root,abrt) /var/cache/%{name}
309 %dir /var/cache/%{name}-di
310 %dir /var/run/%{name}
311 %dir %{_sysconfdir}/%{name}
312 %dir %{_sysconfdir}/%{name}/plugins
313 %dir %{_libdir}/%{name}
314 %{_mandir}/man8/abrtd.8*
315 %{_mandir}/man5/%{name}.conf.5*
316 %{_mandir}/man7/%{name}-plugins.7*
317 %{_mandir}/man5/pyhook.conf.5*
318 %{_datadir}/polkit-1/actions/org.fedoraproject.abrt.policy
319 %{_datadir}/dbus-1/system-services/com.redhat.abrt.service
320
321 %files libs
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/lib*.so.*
324
325 %files devel
326 %defattr(644,root,root,755)
327 %{_libdir}/lib*.so
328
329 %files gui
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_bindir}/%{name}-gui
332 %{_datadir}/%{name}
333 %{_desktopdir}/%{name}.desktop
334 %{_pixmapsdir}/abrt.png
335 %{_iconsdir}/hicolor/48x48/apps/*.png
336 %attr(755,root,root) %{_bindir}/%{name}-applet
337 %{_sysconfdir}/xdg/autostart/%{name}-applet.desktop
338
339 %files addon-ccpp
340 %defattr(644,root,root,755)
341 %config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
342 %attr(755,root,root) %{_libdir}/%{name}/libCCpp.so*
343 %{_libexecdir}/hookCCpp
344
345 #%files plugin-firefox
346 #%{_libdir}/%{name}/libFirefox.so*
347
348 %files addon-kerneloops
349 %defattr(644,root,root,755)
350 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf
351 %config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsScanner.conf
352 %attr(755,root,root) %{_bindir}/dumpoops
353 %attr(755,root,root) %{_libdir}/%{name}/libKerneloops.so*
354 %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsScanner.so*
355 %{_mandir}/man7/%{name}-KerneloopsScanner.7*
356
357 %files plugin-kerneloopsreporter
358 %defattr(644,root,root,755)
359 %config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsReporter.conf
360 %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsReporter.so*
361 %{_libdir}/%{name}/KerneloopsReporter.GTKBuilder
362 %{_mandir}/man7/%{name}-KerneloopsReporter.7*
363
364 %files plugin-sqlite3
365 %defattr(644,root,root,755)
366 %config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf
367 %attr(755,root,root) %{_libdir}/%{name}/libSQLite3.so*
368 %{_mandir}/man7/%{name}-SQLite3.7*
369
370 %files plugin-logger
371 %defattr(644,root,root,755)
372 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf
373 %attr(755,root,root) %{_libdir}/%{name}/libLogger.so*
374 %{_libdir}/%{name}/Logger.GTKBuilder
375 %{_mandir}/man7/%{name}-Logger.7*
376
377 %files plugin-mailx
378 %defattr(644,root,root,755)
379 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf
380 %attr(755,root,root) %{_libdir}/%{name}/libMailx.so*
381 %{_libdir}/%{name}/Mailx.GTKBuilder
382 %{_mandir}/man7/%{name}-Mailx.7*
383
384 %files plugin-runapp
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/%{name}/libRunApp.so*
387 %{_mandir}/man7/%{name}-RunApp.7*
388
389 %files plugin-sosreport
390 %defattr(644,root,root,755)
391 %attr(755,root,root) %{_libdir}/%{name}/libSOSreport.so*
392
393 %files plugin-bugzilla
394 %defattr(644,root,root,755)
395 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
396 %attr(755,root,root) %{_libdir}/%{name}/libBugzilla.so*
397 %{_libdir}/%{name}/Bugzilla.GTKBuilder
398 %{_mandir}/man7/%{name}-Bugzilla.7*
399
400 %files plugin-catcut
401 %defattr(644,root,root,755)
402 %config(noreplace) %{_sysconfdir}/%{name}/plugins/Catcut.conf
403 %attr(755,root,root) %{_libdir}/%{name}/libCatcut.so*
404 %{_libdir}/%{name}/Catcut.GTKBuilder
405 #%{_mandir}/man7/%{name}-Catcut.7*
406
407 %files plugin-ticketuploader
408 %defattr(644,root,root,755)
409 %config(noreplace) %{_sysconfdir}/%{name}/plugins/TicketUploader.conf
410 %attr(755,root,root) %{_libdir}/%{name}/libTicketUploader.so*
411 %{_libdir}/%{name}/TicketUploader.GTKBuilder
412 %{_mandir}/man7/%{name}-TicketUploader.7*
413
414 %files plugin-filetransfer
415 %defattr(644,root,root,755)
416 %config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf
417 %attr(755,root,root) %{_libdir}/%{name}/libFileTransfer.so*
418 %{_mandir}/man7/%{name}-FileTransfer.7*
419
420 %files addon-python
421 %defattr(644,root,root,755)
422 %attr(2755, root, abrt) %{_bindir}/%{name}-pyhook-helper
423 %config(noreplace) %{_sysconfdir}/%{name}/pyhook.conf
424 #%{python_sitearch}/ABRTUtils.so
425 %attr(755,root,root) %{_libdir}/%{name}/libPython.so*
426 %{py_sitescriptdir}/*.py[co]
427
428 %files cli
429 %defattr(644,root,root,755)
430 %attr(755,root,root) %{_bindir}/abrt-cli
431 %{_mandir}/man1/abrt-cli.1*
432 %{_sysconfdir}/bash_completion.d/abrt-cli.bash
433
434 %files desktop
435 %defattr(644,root,root,755)
This page took 0.125526 seconds and 2 git commands to generate.