[packages/libglademm] - fix building with gcc 5.x - rel 8

baggins baggins at pld-linux.org
Mon Oct 5 20:25:46 CEST 2015


commit c2f84837f8ad7b0856c960e16fbb4ff48bcd00a4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 5 20:25:21 2015 +0200

    - fix building with gcc 5.x
    - rel 8

 libglademm.spec           | 10 +++++++++-
 no-get_defs-in-gcc5.patch | 19 +++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/libglademm.spec b/libglademm.spec
index bdc71df..9c69131 100644
--- a/libglademm.spec
+++ b/libglademm.spec
@@ -5,12 +5,14 @@ Summary:	C++ wrappers for libglade
 Summary(pl.UTF-8):	Interfejsy C++ dla libglade
 Name:		libglademm
 Version:	2.6.7
-Release:	7
+Release:	8
 License:	LGPL v2+
 Group:		X11/Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/libglademm/2.6/%{name}-%{version}.tar.bz2
 # Source0-md5:	f9ca5b67f6c551ea98790ab5f21c19d0
+Patch0:		no-get_defs-in-gcc5.patch
 URL:		http://www.gtkmm.org/
+BuildRequires:	glibmm-devel
 BuildRequires:	gtkmm-devel >= 2.12.1
 BuildRequires:	libglade2-devel >= 1:2.6.2
 BuildRequires:	perl-base
@@ -63,8 +65,14 @@ Dokumentacja dla libglademm.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I scripts
+%{__autoconf}
+%{__automake}
+export CXXFLAGS="%{rpmcxxflags} -std=c++11"
 %configure \
 	--enable-static
 %{__make}
diff --git a/no-get_defs-in-gcc5.patch b/no-get_defs-in-gcc5.patch
new file mode 100644
index 0000000..c1ab75b
--- /dev/null
+++ b/no-get_defs-in-gcc5.patch
@@ -0,0 +1,19 @@
+--- libglademm-2.6.7/tools/Makefile.am~	2008-07-01 11:40:39.000000000 +0200
++++ libglademm-2.6.7/tools/Makefile.am	2015-10-05 20:15:57.333539954 +0200
+@@ -1,4 +1,4 @@
+-SUBDIRS = extra_defs_gen m4
++SUBDIRS = m4
+ 
+ include $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment
+ 
+--- libglademm-2.6.7/configure.in~	2008-09-21 15:23:11.000000000 +0200
++++ libglademm-2.6.7/configure.in	2015-10-05 20:23:08.455086518 +0200
+@@ -143,7 +143,7 @@
+ 
+ # This macro is installed by glibmm
+ # Doxygen needs the path to the installed perl.
+-GLIBMM_CHECK_PERL([5.6.0])
++# GLIBMM_CHECK_PERL([5.6.0])
+ 
+ #########################################################################
+ #  Dependancy checks
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libglademm.git/commitdiff/c2f84837f8ad7b0856c960e16fbb4ff48bcd00a4



More information about the pld-cvs-commit mailing list