Hello community,

here is the log from the commit of package grantlee5 for openSUSE:Leap:15.2 
checked in at 2020-01-30 14:48:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/grantlee5 (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.grantlee5.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "grantlee5"

Thu Jan 30 14:48:59 2020 rev:12 rq:753182 version:5.1.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/grantlee5/grantlee5.changes    2020-01-15 
15:08:49.782018887 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.grantlee5.new.26092/grantlee5.changes 
2020-01-30 14:49:39.130878586 +0100
@@ -1,0 +2,12 @@
+Wed Jul 31 14:55:56 UTC 2019 - Fabian Vogt <[email protected]>
+
+- Add patch to fix build with newer CMake:
+  * 0001-Remove-vestigial-ansi-flag.patch
+
+-------------------------------------------------------------------
+Wed Apr 10 17:42:44 UTC 2019 - Christophe Giboudeaux <[email protected]>
+
+- Add fix-build-with-Qt-5.13.patch
+- Run spec-cleaner
+
+-------------------------------------------------------------------

New:
----
  0001-Remove-vestigial-ansi-flag.patch
  fix-build-with-Qt-5.13.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ grantlee5.spec ++++++
--- /var/tmp/diff_new_pack.EuO3Z1/_old  2020-01-30 14:49:39.518878792 +0100
+++ /var/tmp/diff_new_pack.EuO3Z1/_new  2020-01-30 14:49:39.518878792 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package grantlee5
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,19 +20,23 @@
 Version:        5.1.0
 Release:        0
 Summary:        Qt string template library
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          System/Libraries
-Url:            http://grantlee.org/
+URL:            http://grantlee.org/
 Source:         http://downloads.grantlee.org/grantlee-%{version}.tar.gz
 Source2:        baselibs.conf
 # PATCH-FIX-UPSTREAM includes.diff -- since upstream doesn't provide a way to 
install to custom directory, we cheat!
 Patch0:         includes.diff
+# PATCH-FIX-UPSTREAM fix-build-with-Qt-5.13.patch
+Patch1:         fix-build-with-Qt-5.13.patch
+# PATCH-FIX-UPSTREAM
+Patch2:         0001-Remove-vestigial-ansi-flag.patch
 BuildRequires:  cmake >= 3.1
 BuildRequires:  doxygen
+BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(Qt5Core) >= 5.3
 BuildRequires:  pkgconfig(Qt5Gui) >= 5.3
 BuildRequires:  pkgconfig(Qt5Script) >= 5.3
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 Grantlee is a string template engine based on the Django template system and
@@ -51,49 +55,33 @@
 grantlee.
 
 %prep
-%setup -q -n grantlee-%{version}
-%patch0 -p1
+%autosetup -p1 -n grantlee-%{version}
 
 %build
-%if "%{?_lib}" == "lib64"
-SUFFIX="64"
-%else
-SUFFIX=""
-%endif
-mkdir -p build
-pushd build
-cmake .. \
-  cmake -DCMAKE_BUILD_TYPE=None \\\
-      -DCMAKE_C_FLAGS="%{optflags} -DNDEBUG" \\\
-      -DCMAKE_CXX_FLAGS="%{optflags} -DNDEBUG" \\\
-      -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined 
-Wl,-Bsymbolic-functions" \\\
-      -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined 
-Wl,-Bsymbolic-functions" \\\
-      -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined 
-Wl,-Bsymbolic-functions" \\\
-      -DCMAKE_VERBOSE_MAKEFILE=ON \\\
-      -DCMAKE_INSTALL_PREFIX=%{_prefix} \\\
-      -DBUILD_TESTS=OFF \\\
-      -DLIB_SUFFIX=$SUFFIX ..
-
-  make %{?_smp_mflags} VERBOSE=1
-popd
+%cmake \
+  -DCMAKE_BUILD_TYPE=None \
+  -DBUILD_TESTS=OFF
+
+# Still not available on all leap flavors
+# %%cmake_build
+%make_jobs
 
 %install
-%makeinstall -C build
+%cmake_install
 
 %post -p /sbin/ldconfig
-
 %postun -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
-%doc AUTHORS CHANGELOG COPYING* README*
+%license COPYING*
+%doc AUTHORS CHANGELOG README*
 %{_libdir}/libGrantlee_TextDocument.so.*
 %{_libdir}/libGrantlee_Templates.so.*
 %{_libdir}/grantlee/
 
 %files devel
-%defattr(-,root,root,-)
-%doc AUTHORS CHANGELOG COPYING* README*
+%license COPYING*
+%doc AUTHORS CHANGELOG README*
 %{_includedir}/grantlee5/
 %{_libdir}/libGrantlee_TextDocument.so
 %{_libdir}/libGrantlee_Templates.so

++++++ 0001-Remove-vestigial-ansi-flag.patch ++++++
>From 9c70e731d1498a366172da7b497ea76252ad8267 Mon Sep 17 00:00:00 2001
From: Stephen Kelly <[email protected]>
Date: Sun, 21 Jul 2019 16:00:41 +0100
Subject: [PATCH] Remove vestigial -ansi flag

This causes the compiler to not operate in C++11 mode, meaning that
headers such as <type_traits> issue errors.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1324566..049fa4f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,7 +56,7 @@ endif()
 
 if (CMAKE_COMPILER_IS_GNUCXX)
   set (CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 
-Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts 
-Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security 
-Wmissing-format-attribute -fno-common")
-  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long 
-ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith 
-Wformat-security -fno-check-new -fno-common ")
+  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long 
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith 
-Wformat-security -fno-check-new -fno-common ")
 
   if (CMAKE_BUILD_TYPE MATCHES TestCocoon)
     # Needed on 64 bit
-- 
2.22.0

++++++ fix-build-with-Qt-5.13.patch ++++++
>From 0cee029ee03ab4906c6d19b57458b5036852b0f8 Mon Sep 17 00:00:00 2001
From: Michael Pyne <[email protected]>
Date: Tue, 18 Dec 2018 17:47:21 -0500
Subject: [PATCH] Fix build with Qt 5.13 / GCC 8.2.

At this point Grantlee doesn't build for me because QList is an
incomplete type. I think the compiler is right to complain, so I fix by
including the appropriate header.

Fixes issue #47.
---
 templates/lib/lexer_p.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/lib/lexer_p.h b/templates/lib/lexer_p.h
index 275aeea..1ae451a 100644
--- a/templates/lib/lexer_p.h
+++ b/templates/lib/lexer_p.h
@@ -24,7 +24,7 @@
 #include "textprocessingmachine_p.h"
 #include "token.h"
 
-template <typename T> class QList;
+#include <QList>
 
 namespace Grantlee
 {

Reply via email to