cfb16d5
%{!?python_site: %define python_site %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
cfb16d5
# platform-dependent
cfb16d5
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
5485d0e
Summary: Automatic bug detection and reporting tool
5485d0e
Name: abrt
cfb16d5
Version: 0.0.4
cfb16d5
Release: 2%{?dist}
5485d0e
License: GPLv2+
5485d0e
Group: Applications/System
cfb16d5
URL: https://fedorahosted.org/abrt/
5485d0e
Source: http://jmoskovc.fedorapeople.org/%{name}-%{version}.tar.gz
5485d0e
Source1: abrt.init
5485d0e
BuildRequires: dbus-c++-devel
5485d0e
BuildRequires: gtk2-devel
b1bfb09
BuildRequires: curl-devel
5485d0e
BuildRequires: rpm-devel >= 4.6
5485d0e
BuildRequires: sqlite-devel > 3.0
5485d0e
BuildRequires: desktop-file-utils
0c5c493
BuildRequires: nss-devel
0c5c493
BuildRequires: libnotify-devel
0c5c493
BuildRequires: xmlrpc-c-devel
0c5c493
BuildRequires: file-devel
cfb16d5
BuildRequires: python-devel
5485d0e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cfb16d5
# gui requirements
cfb16d5
Requires: dbus-python, rhpl, pygtk2, pygtk2-libglade
5485d0e
5485d0e
%description
5485d0e
%{name} is a tool to help users to detect defects in applications and 
5485d0e
to create a bug report with all informations needed by maintainer to fix it. 
5485d0e
It uses plugin system to extend its functionality.
5485d0e
5485d0e
%package libs
5485d0e
Summary: Libraries for %{name}
5485d0e
Group: System Environment/Libraries
5485d0e
5485d0e
%description libs
5485d0e
Libraries for %{name}.
5485d0e
5485d0e
%package devel
5485d0e
Summary: Development libraries for %{name}
5485d0e
Group: Development/Libraries
5485d0e
Requires: %{name}-libs = %{version}-%{release}
5485d0e
5485d0e
%description devel
5485d0e
Development libraries and headers for %{name}.
5485d0e
5485d0e
%package applet
5485d0e
Summary: %{name}'s applet
5485d0e
Group: User Interface/Desktops
5485d0e
Requires: %{name} = %{version}-%{release}
b1bfb09
Requires: %{name}-gui
5485d0e
5485d0e
%description applet
5485d0e
Simple systray applet to notify user about new events detected by %{name} 
5485d0e
daemon.
5485d0e
5485d0e
%package gui
5485d0e
Summary: %{name}'s gui
5485d0e
Group: User Interface/Desktops
5485d0e
Requires: %{name} = %{version}-%{release}
5485d0e
5485d0e
%description gui
5485d0e
GTK+ wizard for convenient bug reporting.
5485d0e
5485d0e
%package addon-ccpp
5485d0e
Summary: %{name}'s C/C++ addon
5485d0e
Group: System Environment/Libraries
5485d0e
Requires: gdb
5485d0e
Requires: %{name} = %{version}-%{release}
5485d0e
5485d0e
%description addon-ccpp
5485d0e
This package contains hook for C/C++ crashed programs and %{name}'s C/C++ 
0c5c493
analyzer plugin.
5485d0e
cfb16d5
%package addon-kerneloops
cfb16d5
Summary: %{name}'s kerneloops addon
b1bfb09
Group: System Environment/Libraries
b1bfb09
Requires: %{name}-plugin-kerneloopsreporter = %{version}-%{release}
b1bfb09
Requires: %{name} = %{version}-%{release}
cfb16d5
Conflicts: kerneloops
b1bfb09
cfb16d5
%description addon-kerneloops
cfb16d5
This package contains plugins for kernel crashes information collecting.
b1bfb09
b1bfb09
%package plugin-kerneloopsreporter
b1bfb09
Summary: %{name}'s kerneloops reporter plugin
b1bfb09
Group: System Environment/Libraries
b1bfb09
Requires: curl
b1bfb09
Requires: %{name} = %{version}-%{release}
b1bfb09
b1bfb09
%description plugin-kerneloopsreporter
b1bfb09
This package contains reporter plugin, that sends, collected by %{name}'s kerneloops
b1bfb09
addon, information about kernel crashes to specified server, e.g. kerneloops.org.
b1bfb09
5485d0e
%package plugin-sqlite3
5485d0e
Summary: %{name}'s SQLite3 database plugin
5485d0e
Group: System Environment/Libraries
5485d0e
Requires: %{name} = %{version}-%{release}
5485d0e
5485d0e
%description plugin-sqlite3
5485d0e
This package contains SQLite3 database plugin. It is used for storing the data 
5485d0e
required for creating a bug report.
5485d0e
5485d0e
%package plugin-logger
5485d0e
Summary: %{name}'s logger reporter plugin
5485d0e
Group: System Environment/Libraries
5485d0e
Requires: %{name} = %{version}-%{release}
5485d0e
5485d0e
%description plugin-logger
5485d0e
The simple reporter plugin, which writes a report to a specified file.
5485d0e
5485d0e
%package plugin-mailx
5485d0e
Summary: %{name}'s mailx reporter plugin
5485d0e
Group: System Environment/Libraries
5485d0e
Requires: %{name} = %{version}-%{release}
5485d0e
Requires: mailx
5485d0e
5485d0e
%description plugin-mailx
5485d0e
The simple reporter plugin, which sends a report via mailx to a specified
5485d0e
email. 
5485d0e
0c5c493
%package plugin-runapp
0c5c493
Summary: %{name}'s runapp plugin
0c5c493
Group: System Environment/Libraries
0c5c493
Requires: %{name} = %{version}-%{release}
0c5c493
0c5c493
%description plugin-runapp
0c5c493
Plugin to run external programs.
0c5c493
0c5c493
%package plugin-bugzilla
0c5c493
Summary: %{name}'s bugzilla plugin
0c5c493
Group: System Environment/Libraries
0c5c493
Requires: %{name} = %{version}-%{release}
0c5c493
0c5c493
%description plugin-bugzilla
0c5c493
Plugin to report bugs into the bugzilla.
0c5c493
cfb16d5
%package plugin-filetransfer
cfb16d5
Summary: %{name}'s File Transfer plugin
cfb16d5
Group: System Environment/Libraries
cfb16d5
Requires: %{name} = %{version}-%{release}
cfb16d5
cfb16d5
%description plugin-filetransfer
cfb16d5
Plugin to uploading files to a server.
cfb16d5
cfb16d5
%package addon-python
cfb16d5
Summary: %{name}'s addon for catching and analyzing Python exceptions
cfb16d5
Group: System Environment/Libraries
cfb16d5
Requires: %{name} = %{version}-%{release}
cfb16d5
cfb16d5
%description addon-python
cfb16d5
This package contains python hook and python analyzer plugin for hadnling
cfb16d5
uncaught exception in python programs.
cfb16d5
cfb16d5
%package cli
cfb16d5
Summary: %{name}'s command line interface
cfb16d5
Group: User Interface/Desktops
cfb16d5
Requires: %{name} = %{version}-%{release}
cfb16d5
cfb16d5
%description cli
cfb16d5
This package contains simple command line client for controling abrt daemon over
cfb16d5
the sockets.
cfb16d5
5485d0e
%prep
5485d0e
%setup -q
5485d0e
5485d0e
%build
5485d0e
%configure
5485d0e
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
5485d0e
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
5485d0e
make %{?_smp_mflags}
5485d0e
5485d0e
%install
5485d0e
rm -rf $RPM_BUILD_ROOT
cfb16d5
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
5485d0e
cfb16d5
#rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib*.la
cfb16d5
#rm -rf $RPM_BUILD_ROOT/%{_libdir}/%{name}/lib*.la
cfb16d5
# remove all .la and .a files
cfb16d5
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
5485d0e
mkdir -p ${RPM_BUILD_ROOT}/%{_initrddir}
5485d0e
install -m 755 %SOURCE1 ${RPM_BUILD_ROOT}/%{_initrddir}/%{name}
5485d0e
mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
5485d0e
5485d0e
desktop-file-install \
5485d0e
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
5485d0e
        src/Gui/%{name}.desktop
5485d0e
%clean
5485d0e
rm -rf $RPM_BUILD_ROOT
5485d0e
5485d0e
%post
5485d0e
/sbin/chkconfig --add %{name}
5485d0e
5485d0e
%post libs -p /sbin/ldconfig
5485d0e
5485d0e
%preun
5485d0e
if [ "$1" = 0 ] ; then
5485d0e
  service %{name} stop >/dev/null 2>&1
5485d0e
  /sbin/chkconfig --del %{name}
5485d0e
fi
5485d0e
5485d0e
%postun libs -p /sbin/ldconfig
5485d0e
5485d0e
%files
5485d0e
%defattr(-,root,root,-)
5485d0e
%doc README COPYING
5485d0e
%{_sbindir}/%{name}
5485d0e
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
5485d0e
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-%{name}.conf
5485d0e
%{_initrddir}/%{name}
5485d0e
%dir /var/cache/%{name}
5485d0e
%dir %{_sysconfdir}/%{name}
5485d0e
%dir %{_sysconfdir}/%{name}/plugins
5485d0e
%dir %{_libdir}/%{name}
cfb16d5
%{_mandir}/man8/%{name}.8.gz
cfb16d5
%{_mandir}/man5/%{name}.conf.5.gz
cfb16d5
%{_mandir}/man7/%{name}-plugins.7.gz
5485d0e
5485d0e
%files libs
5485d0e
%defattr(-,root,root,-)
5485d0e
%{_libdir}/lib*.so.*
5485d0e
5485d0e
%files devel
5485d0e
%defattr(-,root,root,-)
5485d0e
%{_libdir}/lib*.so
5485d0e
5485d0e
%files applet
5485d0e
%defattr(-,root,root,-)
b1bfb09
%{_bindir}/%{name}-applet
5485d0e
5485d0e
%files gui
5485d0e
%defattr(-,root,root,-)
5485d0e
%{_bindir}/%{name}-gui
5485d0e
%{_datadir}/%{name}
5485d0e
%{_datadir}/applications/%{name}.desktop
5485d0e
5485d0e
%files addon-ccpp
5485d0e
%defattr(-,root,root,-)
5485d0e
%config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
5485d0e
%{_libdir}/%{name}/libCCpp.so*
5485d0e
%{_libexecdir}/hookCCpp
5485d0e
cfb16d5
%files addon-kerneloops
b1bfb09
%defattr(-,root,root,-)
cfb16d5
%config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsScanner.conf
b1bfb09
%{_libdir}/%{name}/libKerneloops.so*
cfb16d5
%{_libdir}/%{name}/libKerneloopsScanner.so*
cfb16d5
%{_mandir}/man7/%{name}-KerneloopsScanner.7.gz
b1bfb09
b1bfb09
%files plugin-kerneloopsreporter
b1bfb09
%defattr(-,root,root,-)
b1bfb09
%config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsReporter.conf
b1bfb09
%{_libdir}/%{name}/libKerneloopsReporter.so*
cfb16d5
%{_mandir}/man7/%{name}-KerneloopsReporter.7.gz
b1bfb09
5485d0e
%files plugin-sqlite3
5485d0e
%defattr(-,root,root,-)
5485d0e
%config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf
5485d0e
%{_libdir}/%{name}/libSQLite3.so*
cfb16d5
%{_mandir}/man7/%{name}-SQLite3.7.gz
5485d0e
5485d0e
%files plugin-logger
5485d0e
%defattr(-,root,root,-)
5485d0e
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf
5485d0e
%{_libdir}/%{name}/libLogger.so*
cfb16d5
%{_mandir}/man7/%{name}-Logger.7.gz
5485d0e
5485d0e
%files plugin-mailx
5485d0e
%defattr(-,root,root,-)
5485d0e
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf
5485d0e
%{_libdir}/%{name}/libMailx.so*
cfb16d5
%{_mandir}/man7/%{name}-Mailx.7.gz
5485d0e
0c5c493
%files plugin-runapp
0c5c493
%defattr(-,root,root,-)
0c5c493
%{_libdir}/%{name}/libRunApp.so*
cfb16d5
%{_mandir}/man7/%{name}-RunApp.7.gz
0c5c493
0c5c493
%files plugin-bugzilla
0c5c493
%defattr(-,root,root,-)
0c5c493
%config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
0c5c493
%{_libdir}/%{name}/libBugzilla.so*
cfb16d5
%{_mandir}/man7/%{name}-Bugzilla.7.gz
cfb16d5
cfb16d5
%files plugin-filetransfer
cfb16d5
%defattr(-,root,root,-)
cfb16d5
%config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf
cfb16d5
%{_libdir}/%{name}/libFileTransfer.so*
cfb16d5
%{_mandir}/man7/%{name}-FileTransfer.7.gz
cfb16d5
cfb16d5
%files addon-python
cfb16d5
%defattr(-,root,root,-)
cfb16d5
%config(noreplace) %{_sysconfdir}/%{name}/pyhook.conf
cfb16d5
%{python_sitearch}/ABRTUtils.so
cfb16d5
%{_libdir}/%{name}/libPython.so*
cfb16d5
%{python_site}/*.py*
cfb16d5
cfb16d5
%files cli
cfb16d5
%defattr(-,root,root,-)
cfb16d5
%{_bindir}/abrt-cli
0c5c493
5485d0e
%changelog
cfb16d5
* Tue Jun 16 2009 Daniel Novotny <dnovotny@redhat.com> 0.0.4-2
cfb16d5
- added manual pages (also for plugins)
cfb16d5
cfb16d5
* Mon Jun 15 2009  Jiri Moskovcak <jmoskovc@redhat.com> 0.0.4-1
cfb16d5
- new version
cfb16d5
- added cli (only supports sockets)
cfb16d5
- added python hook
cfb16d5
- many fixes
cfb16d5
0c5c493
* Fri Apr 10 2009  Jiri Moskovcak <jmoskovc@redhat.com> 0.0.3-1
b1bfb09
- new version
0c5c493
- added bz plugin
0c5c493
- minor fix in reporter gui
0c5c493
- Configurable max size of debugdump storage rhbz#490889
0c5c493
- Wrap lines in report to keep the window sane sized
0c5c493
- Fixed gui for new daemon API
0c5c493
- removed unneeded code
0c5c493
- removed dependency on args
0c5c493
- new guuid hash creating
0c5c493
- fixed local UUID
0c5c493
- fixed debuginfo-install checks
0c5c493
- renamed MW library
0c5c493
- Added notification thru libnotify
0c5c493
- fixed parsing settings of action plugins
0c5c493
- added support for action plugins
0c5c493
- kerneloops - plugin: fail gracefully.
0c5c493
- Added commlayer to make dbus optional
0c5c493
- a lot of kerneloops fixes
0c5c493
- new approach for getting debuginfos and backtraces
0c5c493
- fixed unlocking of a debugdump
0c5c493
- replaced language and application plugins by analyzer plugin
0c5c493
- more excetpion handling
0c5c493
- conf file isn't needed
0c5c493
- Plugin's configuration file is optional
0c5c493
- Add curl dependency
0c5c493
- Added column 'user' to the gui
0c5c493
- Gui: set the newest entry as active (ticket#23)
0c5c493
- Delete and Report button are no longer active if no entry is selected (ticket#41)
0c5c493
- Gui refreshes silently (ticket#36)
0c5c493
- Added error reporting over dbus to daemon, error handling in gui, about dialog
0c5c493
0c5c493
* Wed Mar 11 2009  Jiri Moskovcak <jmoskovc@redhat.com> 0.0.2-1
b1bfb09
- added kerneloops addon to rpm (aarapov)
b1bfb09
- added kerneloops addon and plugin (aarapov)
b1bfb09
- Made Crash() private
b1bfb09
- Applet requires gui, removed dbus-glib deps
b1bfb09
- Closing stdout in daemon rhbz#489622
b1bfb09
- Changed applet behaviour according to rhbz#489624
b1bfb09
- Changed gui according to rhbz#489624, fixed dbus timeouts
b1bfb09
- Increased timeout for async dbus calls to 60sec
b1bfb09
- deps cleanup, signal AnalyzeComplete has the crashreport as an argument.
b1bfb09
- Fixed empty package Description.
b1bfb09
- Fixed problem with applet tooltip on x86_64
0c5c493
0c5c493
* Wed Mar  4 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-13
b1bfb09
- More renaming issues fixed..
b1bfb09
- Changed BR from gtkmm24 to gtk2
b1bfb09
- Fixed saving of user comment
b1bfb09
- Added a progress bar, new Comment entry for user comments..
b1bfb09
- FILENAME_CMDLINE and FILENAME_RELEASE are optional
b1bfb09
- new default path to DB
0c5c493
- Rename to abrt
8698733
5485d0e
* Tue Mar  3 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-12
5485d0e
- initial fedora release
5485d0e
- changed SOURCE url
5485d0e
- added desktop-file-utils to BR
5485d0e
- changed crash-catcher to %%{name}
5485d0e
5485d0e
* Mon Mar  2 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-11
5485d0e
- more spec file fixes according to review
5485d0e
- async dbus method calls, added exception handler
5485d0e
- avoid deadlocks (zprikryl)
5485d0e
- root is god (zprikryl)
5485d0e
- create bt only once (zprikryl)
5485d0e
5485d0e
* Sat Feb 28 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-10
5485d0e
- New gui
5485d0e
- Added new method DeleteDebugDump to daemon
5485d0e
- Removed gcc warnings from applet
5485d0e
- Rewritten CCpp hook and removed dealock in DebugDumps lib (zprikryl)
5485d0e
- fixed few gcc warnings
5485d0e
- DBusBackend improvements
5485d0e
5485d0e
* Fri Feb 27 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-9
5485d0e
- fixed few gcc warnings
5485d0e
- added scrolled window for long reports
5485d0e
5485d0e
* Thu Feb 26 2009 Adam Williamson <awilliam@redhat.com> 0.0.1-8
5485d0e
- fixes for all issues identified in review
5485d0e
5485d0e
* Thu Feb 26 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-7
5485d0e
- Fixed cancel button behaviour in reporter
5485d0e
- disabled core file sending
5485d0e
- removed some debug messages
5485d0e
5485d0e
* Thu Feb 26 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-6
5485d0e
- fixed DB path
5485d0e
- added new signals to handler
5485d0e
- gui should survive the dbus timeout
5485d0e
5485d0e
* Thu Feb 26 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-5
5485d0e
- fixed catching debuinfo install exceptions
5485d0e
- some gui fixes
5485d0e
- added check for GPGP public key
5485d0e
5485d0e
* Thu Feb 26 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-4
5485d0e
- changed from full bt to simple bt
5485d0e
5485d0e
* Thu Feb 26 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-3
5485d0e
- spec file cleanups
5485d0e
- changed default paths to crash DB and log DB
5485d0e
- fixed some memory leaks
5485d0e
5485d0e
* Tue Feb 24 2009 Jiri Moskovcak <jmoskovc@redhat.com> 0.0.1-2
5485d0e
- spec cleanup
5485d0e
- added new subpackage gui
5485d0e
5485d0e
* Wed Feb 18 2009 Zdenek Prikryl <zprikryl@redhat.com> 0.0.1-1
5485d0e
- initial packing