commit da95b34b743575dda27a20ce449bac88f97884fb
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Fri Sep 18 09:39:37 2015 +0200

    - rel 3; fix python 3.5 build

 gnome-abrt-python.patch | 14 ++++++++++++++
 gnome-abrt.spec         | 12 +++++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/gnome-abrt.spec b/gnome-abrt.spec
index 53ccdc4..09cec88 100644
--- a/gnome-abrt.spec
+++ b/gnome-abrt.spec
@@ -6,19 +6,23 @@ Summary:      A utility for viewing problems that have 
occurred with the system
 Summary(pl.UTF-8):     Narzędzie do przeglądania problemów, które wystąpiły w 
systemie
 Name:          gnome-abrt
 Version:       1.2.0
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Applications/System
 Source0:       https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
 # Source0-md5: 9b2d3e364e735f6a7401a84462951232
 Patch0:                %{name}-pylint.patch
+Patch1:                %{name}-python.patch
 URL:           https://github.com/abrt/abrt/wiki/ABRT-Project
 BuildRequires: abrt-gui-devel >= 2.1.7
 BuildRequires: asciidoc
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: gettext-tools >= 0.17
 BuildRequires: gtk+3-devel >= 3.0
 BuildRequires: intltool >= 0.35.0
 BuildRequires: libreport-gtk-devel >= 2.0.20
+BuildRequires: libtool
 BuildRequires: pkgconfig
 %{?with_tests:BuildRequires:   pylint}
 BuildRequires: python3-devel >= 1:3.4
@@ -49,10 +53,16 @@ zapewniająca wygodny sposób zarządzania tymi problemami.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
+%{__sed} -i -e 's#-pedantic##g' configure.ac
 %{__sed} -i -e '1s,#!/usr/bin/env python,#!/usr/bin/python,' src/gnome-abrt
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
        --disable-silent-rules \
        %{!?with_tests:--with-nopylint}
diff --git a/gnome-abrt-python.patch b/gnome-abrt-python.patch
new file mode 100644
index 0000000..c1afef1
--- /dev/null
+++ b/gnome-abrt-python.patch
@@ -0,0 +1,14 @@
+--- gnome-abrt-1.2.0/src/gnome_abrt/wrappers/module.c~ 2015-06-03 
05:36:53.000000000 +0200
++++ gnome-abrt-1.2.0/src/gnome_abrt/wrappers/module.c  2015-09-18 
09:37:15.949588371 +0200
+@@ -41,7 +41,11 @@
+             .m_doc = module_doc,
+             .m_size = -1,
+             .m_methods = module_methods,
++#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 5
++            .m_slots = NULL,
++#else
+             .m_reload = NULL,
++#endif
+             .m_traverse = NULL,
+             .m_clear = NULL,
+             .m_free = NULL,
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to