[packages/abrt] - up to 2.10.9

baggins baggins at pld-linux.org
Mon May 21 15:26:43 CEST 2018


commit b0d9bbce47922def02269140eec329ab2ee9239c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon May 21 22:26:19 2018 +0900

    - up to 2.10.9

 abrt-rpm5.patch | 44 ++++++++++++++++++++++++++------------------
 abrt.spec       | 26 +++++++++++++++++++-------
 2 files changed, 45 insertions(+), 25 deletions(-)
---
diff --git a/abrt.spec b/abrt.spec
index bb5a0eb..f7c568c 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -11,17 +11,17 @@
 Summary:	Automatic bug detection and reporting tool
 Summary(pl.UTF-8):	Narzędzie do automatycznego wykrywania i zgłaszania błędów
 Name:		abrt
-Version:	2.10.0
-Release:	3
+Version:	2.10.9
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
-Source0:	https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
-# Source0-md5:	050088fd550a8a063e2e21230b0588de
+Source0:	https://github.com/abrt/abrt/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	855f25bf30f4216e866db944da28aaf3
 Source1:	%{name}.init
 Patch0:		%{name}-rpm5.patch
 Patch1:		%{name}-rpm45.patch
 Patch2:		%{name}-link.patch
-URL:		https://fedorahosted.org/abrt/
+URL:		https://abrt.readthedocs.org/
 BuildRequires:	asciidoc
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -49,6 +49,7 @@ BuildRequires:	python-modules >= 2
 %{?with_tests:BuildRequires:	python-nose}
 BuildRequires:	python3-devel >= 3
 BuildRequires:	python3-modules >= 3
+BuildRequires:	python3-nose
 BuildRequires:	rpm-devel >= 4.5-28
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.721
@@ -491,13 +492,18 @@ się do powłoki.
 
 %{__sed} -n -e '/^%%changelog/,$p' abrt.spec.in | tail -n +2 > changelog
 
+echo -n %{version} > abrt-version
+
 %build
 %{__libtoolize}
+%{__gettextize}
+%{__intltoolize}
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
+	PYTHON_NOSE=/usr/bin/nosetests-3.6 \
 	--disable-silent-rules \
 	%{!?with_tests:--without-pythontests} \
 	--with-systemdsystemunitdir=%{systemdunitdir}
@@ -508,6 +514,7 @@ się do powłoki.
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
+	systemdsystemunitdir=%{systemdunitdir} \
 	pythondir=%{py_sitescriptdir} \
 	python3dir=%{py3_sitescriptdir}
 
@@ -663,7 +670,6 @@ fi
 %attr(755,root,root) %{_bindir}/abrt
 %attr(755,root,root) %{_bindir}/abrt-action-analyze-python
 %attr(755,root,root) %{_bindir}/abrt-action-notify
-%attr(755,root,root) %{_bindir}/abrt-action-save-container-data
 %attr(755,root,root) %{_bindir}/abrt-action-save-package-data
 %attr(755,root,root) %{_bindir}/abrt-handle-upload
 %attr(755,root,root) %{_bindir}/abrt-watch-log
@@ -671,9 +677,10 @@ fi
 %attr(755,root,root) %{_sbindir}/abrt-server
 %attr(755,root,root) %{_sbindir}/abrtd
 %attr(755,root,root) %{_libexecdir}/abrt-action-generate-machine-id
+%attr(755,root,root) %{_libexecdir}/abrt-action-save-container-data
 %attr(755,root,root) %{_libexecdir}/abrt-action-ureport
 %attr(755,root,root) %{_libexecdir}/abrt-handle-event
-%{py_sitedir}/abrtcli
+%{py3_sitedir}/abrtcli
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/conf.d
 %{_datadir}/%{name}/conf.d/abrt.conf
@@ -687,6 +694,7 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/gpg_keys.conf
 %dir %{_sysconfdir}/%{name}/plugins
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/abrt_event.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/machine-id_event.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/events.d/smart_event.conf
 %attr(754,root,root) /etc/rc.d/init.d/abrtd
 %{systemdunitdir}/abrtd.service
@@ -825,7 +833,9 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/plugins/catalog_python_format.conf
 %{_prefix}/lib/systemd/catalog/abrt_python.catalog
 %{py_sitedir}/abrt_exception_handler.py[co]
+%{py_sitedir}/abrt_exception_handler_container.py[co]
 %{py_sitedir}/abrt.pth
+%{py_sitedir}/abrt_container.pth
 %{_mandir}/man5/abrt-python.conf.5*
 %{_mandir}/man5/python_event.conf.5*
 
@@ -837,7 +847,9 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libreport/plugins/catalog_python3_format.conf
 %{_prefix}/lib/systemd/catalog/abrt_python3.catalog
 %{py3_sitedir}/abrt_exception_handler3.py*
+%{py3_sitedir}/abrt_exception_handler3_container.py*
 %{py3_sitedir}/abrt3.pth
+%{py3_sitedir}/abrt3_container.pth
 %{_mandir}/man5/abrt-python3.conf.5*
 %{_mandir}/man5/python3_event.conf.5*
 
diff --git a/abrt-rpm5.patch b/abrt-rpm5.patch
index f68aaf2..889d114 100644
--- a/abrt-rpm5.patch
+++ b/abrt-rpm5.patch
@@ -10,6 +10,21 @@
      -D_GNU_SOURCE \
 --- abrt-2.8.2/src/daemon/rpm.c.orig	2016-07-08 09:49:44.000000000 +0200
 +++ abrt-2.8.2/src/daemon/rpm.c	2016-08-03 20:51:03.649708165 +0200
+@@ -22,10 +22,10 @@
+ #include "rpm.h"
+ 
+ #ifdef HAVE_LIBRPM
+-#include <rpm/rpmts.h>
+-#include <rpm/rpmcli.h>
+-#include <rpm/rpmdb.h>
+-#include <rpm/rpmpgp.h>
++#include <rpmcli.h>
++#include <rpmts.h>
++#include <rpmdb.h>
++#include <rpmio.h>
+ #endif
+ 
+ /**
 @@ -62,7 +62,6 @@ void rpm_init()
  void rpm_destroy()
  {
@@ -18,6 +33,15 @@
      rpmFreeMacros(NULL);
      rpmFreeRpmrc();
  
+@@ -102,7 +102,7 @@
+     }
+ 
+     uint8_t keyID[8];
+-#if 0
++#if 1
+     if (pgpPubkeyFingerprint(pkt, pklen, keyID) == 0)
+ #else
+     if (pgpPubkeyKeyID(pkt, pklen, keyID) == 0)
 @@ -119,13 +118,20 @@ char *rpm_get_fingerprint(const char *pk
      const char *errmsg = NULL;
  
@@ -64,7 +88,7 @@
      if (header == NULL)
          goto error;
  
-@@ -177,13 +183,13 @@ bool CheckHash(const char* pPackage, con
+@@ -177,14 +183,14 @@ bool CheckHash(const char* pPackage, con
      }
      rpmfiFree(fi);
  error:
@@ -76,6 +100,7 @@
  }
  */
  
+ #ifdef HAVE_LIBRPM
 -static int rpm_query_file(rpmts *ts, rpmdbMatchIterator *iter, Header *header,
 +static int rpm_query_file(rpmts *ts, rpmmi *iter, Header *header,
          const char *filename, const char *rootdir_or_NULL)
@@ -181,23 +206,6 @@
      return NULL;
  }
  
---- abrt-2.0.8/src/daemon/rpm.h.0011~	2011-12-21 13:20:12.000000000 +0100
-+++ abrt-2.0.8/src/daemon/rpm.h	2012-03-11 21:28:01.051031573 +0100
-@@ -22,10 +22,10 @@
- #ifndef RPM_H_
- #define RPM_H_
- 
--#include <rpm/rpmts.h>
--#include <rpm/rpmcli.h>
--#include <rpm/rpmdb.h>
--#include <rpm/rpmpgp.h>
-+#include <rpmcli.h>
-+#include <rpmts.h>
-+#include <rpmdb.h>
-+#include <rpmio.h>
- 
- #ifdef __cplusplus
- extern "C" {
 --- abrt-2.0.15/src/plugins/bodhi.c~	2012-10-05 08:30:34.000000000 +0200
 +++ abrt-2.0.15/src/plugins/bodhi.c	2012-10-15 15:54:12.298943477 +0200
 @@ -331,24 +331,23 @@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/abrt.git/commitdiff/b0d9bbce47922def02269140eec329ab2ee9239c



More information about the pld-cvs-commit mailing list