]> git.pld-linux.org Git - packages/apport.git/blobdiff - apport.spec
- make crash logging and viewing work on PLD
[packages/apport.git] / apport.spec
index d3dc0bde2ccc56945800bc1c908fbf1b72815937..64cdf7bfb4a4175b056ca377df80dff22a97cfe4 100644 (file)
@@ -1,12 +1,15 @@
 Summary:       Read, write, and modify problem reports
 Name:          apport
 Version:       0.106
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/System
 Source0:       https://launchpad.net/ubuntu/hardy/+source/apport/%{version}/+files/%{name}_%{version}.tar.gz
 # Source0-md5: 128c5b362708bc9e54e4bd167075d45d
 Source1:       %{name}.init
+Source2:       %{name}-backend-pld.py
+Patch0:                %{name}-rpm-platform.patch
+Patch1:                %{name}-rpm-deps.patch
 URL:           https://wiki.ubuntu.com/Apport
 BuildRequires: gettext
 BuildRequires: intltool
@@ -20,6 +23,7 @@ Requires(post,preun): /sbin/chkconfig
 Requires(post,preun):  /sbin/service
 Requires(post,postun): hicolor-icon-theme
 Requires(post,postun): shared-mime-info
+Requires:      lsb-release
 Requires:      python-rpm
 Requires:      yum
 BuildArch:     noarch
@@ -82,16 +86,21 @@ happen with normal user privileges.
 
 %prep
 %setup -q -n ubuntu
+%patch0 -p1
+%patch1 -p1
 
 %build
+# only used by debian
+rm apport/packaging.py
 python setup.py build
 %{__make} -C po
 %{__make} -C gtk
 %{__make} -C qt4
 #%{__make} -C doc
 # set up the packaging backend
-cp backends/packaging_rpm.py backends/packaging_fedora.py apport
-ln -s packaging_fedora.py apport/packaging_impl.py
+cp backends/packaging_rpm.py apport
+cp %SOURCE2 apport/packaging_pld.py
+ln -s packaging_pld.py apport/packaging_impl.py
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.063561 seconds and 4 git commands to generate.