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