]> git.pld-linux.org Git - packages/apport.git/blame - apport.spec
- Requires(post,postun): gtk-update-icon-cache
[packages/apport.git] / apport.spec
CommitLineData
7ce35e5c
PZ
1Summary: Read, write, and modify problem reports
2Name: apport
ab4c69b5 3Version: 0.108.2
f6b2888c 4Release: 5
7ce35e5c
PZ
5License: GPL
6Group: Applications/System
4f5ece38 7Source0: https://launchpad.net/ubuntu/hardy/+source/apport/%{version}/+files/%{name}_%{version}.tar.gz
ab4c69b5 8# Source0-md5: b2eb9a3b1168329ae7cdeb2a988d3443
7ce35e5c 9Source1: %{name}.init
c8193fa4 10Source2: %{name}-backend-pld.py
88d190c7
ER
11Patch0: %{name}-pager.patch
12Patch1: %{name}-crashdb.patch
37323b2f 13Patch2: %{name}-gtk-glade.patch
7ce35e5c 14URL: https://wiki.ubuntu.com/Apport
77f9d1e4 15BuildRequires: gettext-devel
7ce35e5c
PZ
16BuildRequires: intltool
17BuildRequires: python-devel >= 1:2.5
77f9d1e4 18BuildRequires: python-modules
19BuildRequires: rpm-pythonprov
25bc769a 20BuildRequires: rpmbuild(macros) >= 1.268
7ce35e5c
PZ
21#BuildRequires: tetex-format-pdflatex
22#BuildRequires: tetex-latex
f6b2888c 23Requires(post,postun): gtk-update-icon-cache
7ce35e5c
PZ
24Requires(post,postun): hicolor-icon-theme
25Requires(post,postun): shared-mime-info
25bc769a 26Requires(post,preun): /sbin/chkconfig
56811d2d 27Requires: lsb-release
f8d8a6b1 28Requires: python-launchpad-bugs
7ce35e5c 29Requires: python-rpm
25bc769a 30Requires: rc-scripts
7ce35e5c 31Requires: yum
25bc769a
ER
32# Need the ability to use pipes in /proc/sys/kernel/core_pattern
33# seems only 2.6.24 allows command line params
34Requires: uname(release) >= 2.6.24
7ce35e5c
PZ
35BuildArch: noarch
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39apport automatically collects data from crashed processes and compiles
40a problem report in /var/crash/.
41
42This package also provides apport's python libraries and a command
43line frontend for browsing and handling the crash reports.
44
f8d8a6b1 45See <https://wiki.ubuntu.com/AutomatedProblemReports> for more
7ce35e5c
PZ
46information.
47
48%package gtk
49Summary: GTK frontend for the apport crash report system
50Group: Applications/System
51Requires: procps
7ce35e5c 52Requires: python-pygtk-glade
25bc769a 53Requires: python-pygtk-gtk
7ce35e5c
PZ
54Requires: python-pyxdg
55
56%description gtk
57apport automatically collects data from crashed processes and compiles
58a problem report in /var/crash/.
59
60This package provides a GTK frontend for browsing and handling the
61crash reports.
62
63%package qt
64Summary: Qt4 frontend for the apport crash report system
65Group: Applications/System
66Requires: procps
25bc769a 67Requires: python-PyQt4
7ce35e5c
PZ
68Requires: python-pyxdg
69
70%description qt
71apport automatically collects data from crashed processes and compiles
72a problem report in /var/crash/.
73
74This package provides a Qt4 frontend for browsing and handling the
75crash reports.
76
77%package retrace
78Summary: Tools for reprocessing Apport crash reports
79Group: Applications/System
80
81%description retrace
82apport-retrace recombines an Apport crash report (either a file or a
83Launchpad bug) and debug symbol packages (.ddebs) into fully symbolic
84stack traces.
85
86This package also ships apport-chroot. This tool can create and manage
87chroots for usage with apport-retrace. If the fakeroot and fakechroot
88libraries are available (either by installing the packages or by
89merely putting their libraries somewhere and setting two environment
90variables), the entire process of retracing crashes in chroots can
91happen with normal user privileges.
92
93%prep
ab4c69b5 94%setup -q -n hardy
88d190c7
ER
95%patch0 -p1
96%patch1 -p1
37323b2f 97%patch2 -p1
7ce35e5c 98
c8193fa4
PZ
99# only used by debian
100rm apport/packaging.py
f8d8a6b1
ER
101
102# set up the packaging backend
103cp backends/packaging_rpm.py apport
104cp %{SOURCE2} apport/packaging_pld.py
105ln -s packaging_pld.py apport/packaging_impl.py
106
107%build
7ce35e5c
PZ
108python setup.py build
109%{__make} -C po
110%{__make} -C gtk
111%{__make} -C qt4
f8d8a6b1 112
7ce35e5c 113#%{__make} -C doc
7ce35e5c
PZ
114
115%install
116rm -rf $RPM_BUILD_ROOT
117python setup.py install \
118 --optimize=2 \
ab4c69b5 119 --root=$RPM_BUILD_ROOT
7ce35e5c
PZ
120
121%py_postclean
122
123# Do the man pages
124install -d $RPM_BUILD_ROOT%{_mandir}/man1
125install man/apport-*.1 $RPM_BUILD_ROOT%{_mandir}/man1
126# cron job
127install -d $RPM_BUILD_ROOT/etc/cron.daily
128install debian/apport.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/apport
129# create the dir for crash reports
130install -d $RPM_BUILD_ROOT/var/crash
131# install initscript
132install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
0cf0ec71
ER
133install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apport
134
9adff5a3
ER
135# KDE integration
136install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_datadir}/mimelnk/text}
137# application
138cp -a qt4/apport-qt.desktop $RPM_BUILD_ROOT%{_desktopdir}
139# mimetype and associated action
140cp -a qt4/apport-qt-mimelnk.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/text/x-apport.desktop
141cp -a qt4/apport-qt-mime.desktop $RPM_BUILD_ROOT%{_desktopdir}
142
0cf0ec71 143rm -f $RPM_BUILD_ROOT%{_docdir}/apport/package-hooks.txt
7ce35e5c
PZ
144
145%clean
146rm -rf $RPM_BUILD_ROOT
147
148%post
7ce35e5c 149/sbin/chkconfig --add apport
39515a19 150%service apport restart
7ce35e5c
PZ
151%update_mime_database
152%update_icon_cache hicolor
153
154%preun
155if [ "$1" == "0" ]; then
39515a19
ER
156 %service apport stop
157 /sbin/chkconfig --del apport
7ce35e5c
PZ
158fi
159
7ce35e5c
PZ
160%update_mime_database
161%update_icon_cache hicolor
162
163%files
164%defattr(644,root,root,755)
0cf0ec71 165%doc doc/package-hooks.txt
7ce35e5c
PZ
166%dir /var/crash
167%{_mandir}/man1/*
168%{_iconsdir}/hicolor/*/apps/apport.svg
169%{_datadir}/mime/packages/apport.xml
39515a19 170%{py_sitescriptdir}/apport-*.egg-info
7ce35e5c 171%dir %{_datadir}/apport
ab4c69b5
PZ
172%attr(755,root,root) %{_bindir}/apport
173%attr(755,root,root) %{_bindir}/apport-cli
174%attr(755,root,root) %{_bindir}/gcc_ice_hook
175%attr(755,root,root) %{_bindir}/apport-checkreports
176%attr(755,root,root) %{_bindir}/package_hook
177%attr(755,root,root) %{_bindir}/kernel_hook
178%attr(755,root,root) %{_bindir}/apport-unpack
7ce35e5c
PZ
179%attr(755,root,root) %{_datadir}/apport/testsuite/
180%dir %{_datadir}/apport/general-hooks/
181%attr(755,root,root) %{_datadir}/apport/general-hooks/*.py
182%dir %{_datadir}/apport/package-hooks/
183%attr(755,root,root) %{_datadir}/apport/package-hooks/*.py
184%{py_sitescriptdir}/apport_python_hook.py[co]
185%{py_sitescriptdir}/problem_report*.py[co]
186%dir %{py_sitescriptdir}/apport
187%{py_sitescriptdir}/apport/*.py[co]
188%dir %{py_sitescriptdir}/apport/crashdb_impl
189%{py_sitescriptdir}/apport/crashdb_impl/*.py[co]
25bc769a
ER
190/etc/cron.daily/apport
191%attr(754,root,root) /etc/rc.d/init.d/apport
7ce35e5c
PZ
192%dir %{_sysconfdir}/apport
193%config %{_sysconfdir}/apport/crashdb.conf
194%{_sysconfdir}/apport/blacklist.d
195
196%files gtk
197%defattr(644,root,root,755)
ab4c69b5 198%attr(755,root,root) %{_bindir}/apport-gtk
7ce35e5c
PZ
199%{_datadir}/apport/apport-gtk.glade
200
201%files qt
202%defattr(644,root,root,755)
ab4c69b5 203%attr(755,root,root) %{_bindir}/apport-qt
7ce35e5c 204%{_datadir}/apport/*.ui
9adff5a3
ER
205%{_desktopdir}/apport-qt.desktop
206%{_desktopdir}/apport-qt-mime.desktop
207%{_datadir}/mimelnk/text/x-apport.desktop
7ce35e5c
PZ
208
209%files retrace
210%defattr(644,root,root,755)
211%{_mandir}/man1/apport-retrace.1*
ab4c69b5
PZ
212%attr(755,root,root) %{_bindir}/apport-retrace
213%attr(755,root,root) %{_bindir}/apport-chroot
214%attr(755,root,root) %{_bindir}/dupdb-admin
This page took 0.084834 seconds and 4 git commands to generate.