File project.diff of Package telepathy-qt5

--- baselibs.conf.orig
+++ baselibs.conf
@@ -1,7 +1,7 @@
 libtelepathy-qt5-0
 libtelepathy-qt5-farstream0
-libtelepathy-qt5-service0
+libtelepathy-qt5-service1
 telepathy-qt5-devel
-        requires "libtelepathy-qt5-service0-<targettype> = <version>"
+        requires "libtelepathy-qt5-service1-<targettype> = <version>"
 	requires "libtelepathy-qt5-farstream0-<targettype> = <version>"
 	requires "libtelepathy-qt5-0-<targettype> = <version>"
--- telepathy-qt5.changes.orig
+++ telepathy-qt5.changes
@@ -1,4 +1,48 @@
 -------------------------------------------------------------------
+Tue Nov 12 13:04:34 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>
+
+- spec file changes
+  + Define cmake_build if it is not available
+  + Drop test for suse_version at license tag in files section
+
+-------------------------------------------------------------------
+Tue Nov 12 11:13:56 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>
+
+- Update to 0.9.8
+  + Dependencies:
+    * CMake minimum version bumped to 3.5
+    * Qt minimum version bumped to 5.6
+    * C++11 compatible compiler required
+    * Python 3 (only for build)
+  + Enhancements:
+    * The project ported to Python 3
+    * Improved the documentation generation
+    * Reworked exported CMake targets
+    * GNUInstallDirs used to simplify packaging
+  + API Changes:
+    * Added constructor from initializer_list to generated Telepathy
+      types
+    * Added a getter for 'silent' Message flag
+  + Service-side API changes:
+    * Adjusted BaseChannelTextType API
+    * Added BaseConnectionContactGroupsInterface
+    * Fixed BaseDebug API
+    * Added BaseConnection::getExistingChannel()
+  + Fixes:
+    * Fixed work with threaded QtDBus
+    * Omit parts with non-empty 'interface' key value for Message::text()
+    * A lot of fixes in tests
+    * fd.o #40008: Fix dependencies lookup (we used to prefer
+      system-wide libs)
+- spec file changes
+  + Adopt requirements to new version
+  + Reorganize and clean up requirements
+  + Enable tests
+  + Rename libtelepathy-qt5-service0 to libtelepathy-qt5-service1
+    * ABI version has changed
+  + Use cmake macros
+
+-------------------------------------------------------------------
 Fri Sep  2 15:30:31 UTC 2016 - buschmann23@opensuse.org
 
 - add libtelepathy-qt5-service0 to baselibs.conf
--- telepathy-qt5.spec.orig
+++ telepathy-qt5.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package telepathy-qt5
 #
-# 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,12 +12,16 @@
 # 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/
 #
 
 
+%{?!cmake_build:%define cmake_build() make %{?_smp_mflags} VERBOSE=1}
+
 %define         libname libtelepathy-qt5
 %define         major   0
+%define         servicemajor 1
+%define         with_tests 1
 
 # SLE12 does not have farstream support in ppc64le but openSUSE Factory and Ports does
 %if 0%{?suse_version} == 1315 && !0%{?is_opensuse}
@@ -29,36 +33,47 @@
 %endif
 
 Name:           telepathy-qt5
-Version:        0.9.7
+Version:        0.9.8
 Release:        0
 Summary:        Qt5 bindings for the Telepathy Library
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          Development/Tools/Other
 Url:            http://telepathy.freedesktop.org/
 Source:         http://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-%{version}.tar.gz
 Source1:        baselibs.conf
-BuildRequires:  cmake >= 2.8.12
-BuildRequires:  dbus-1-python
+BuildRequires:  cmake >= 3.5
 BuildRequires:  fdupes
+BuildRequires:  pkgconfig(Qt5Core) >= 5.6.0
+BuildRequires:  pkgconfig(Qt5DBus) >= 5.6.0
+BuildRequires:  pkgconfig(Qt5Network) >= 5.6.0
+BuildRequires:  pkgconfig(Qt5Xml) >= 5.6.0
 # FIXME patch, or make upstream look for qhelpgenerator-qt5 first
 #BuildRequires:  libqt5-qttools-devel
 #BuildRequires:  doxygen
-BuildRequires:  libxml2-devel
-BuildRequires:  python-xml
-BuildRequires:  pkgconfig(Qt5Core)
-BuildRequires:  pkgconfig(Qt5DBus)
-BuildRequires:  pkgconfig(Qt5Gui)
-BuildRequires:  pkgconfig(Qt5Network)
-BuildRequires:  pkgconfig(Qt5Test)
-BuildRequires:  pkgconfig(Qt5Widgets)
-BuildRequires:  pkgconfig(Qt5Xml)
-BuildRequires:  pkgconfig(gstreamer-1.0)
-BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
 %if 0%{?with_farstream}
 BuildRequires:  pkgconfig(farstream-0.2)
-BuildRequires:  pkgconfig(telepathy-farstream)
+BuildRequires:  pkgconfig(gstreamer-1.0)
+BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
+BuildRequires:  pkgconfig(telepathy-farstream) >= 0.6.0
+%endif
+%if 0%{?with_farstream} || 0%{?with_tests}
+BuildRequires:  pkgconfig(dbus-1)
+BuildRequires:  pkgconfig(dbus-glib-1)
+BuildRequires:  pkgconfig(gio-2.0)
+BuildRequires:  pkgconfig(gio-unix-2.0)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(gobject-2.0)
+BuildRequires:  pkgconfig(libxml-2.0)
+BuildRequires:  pkgconfig(telepathy-glib) >= 0.18.0
+%endif
+%if 0%{?with_tests}
+BuildRequires:  dbus-1-python3
+BuildRequires:  pkgconfig(Qt5Test)
+%endif
+%if 0%{?with_examples}
+BuildRequires:  pkgconfig(Qt5Gui)
+BuildRequires:  pkgconfig(Qt5Widgets)
 %endif
-BuildRequires:  pkgconfig(telepathy-glib)
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -72,11 +87,11 @@ Group:          Development/Tools/Other
 Telepathy-Qt5 is a high-level binding for Telepathy, similar to telepathy-glib but for Qt 5.
 
 
-%package -n %{libname}-service%{major}
+%package -n %{libname}-service%{servicemajor}
 Summary:        Qt5 bindings for the Telepathy Library
 Group:          Development/Tools/Other
 
-%description -n %{libname}-service%{major}
+%description -n %{libname}-service%{servicemajor}
 Service library for the Qt5 telepathy binding.
 
 %if 0%{?with_farstream}
@@ -93,7 +108,7 @@ Summary:        Header files, libraries
 Group:          Development/Libraries/C and C++
 Provides:       %{name}-service-devel-static = %{version}
 Requires:       %{libname}-%{major} = %{version}
-Requires:       %{libname}-service%{major} = %{version}
+Requires:       %{libname}-service%{servicemajor} = %{version}
 %if 0%{?with_farstream}
 Requires:       %{libname}-farstream%{major} = %{version}
 %endif
@@ -107,37 +122,43 @@ This package contains the header files,
 %setup -q -n telepathy-qt-%{version}
 
 %build
-if [ %{_lib} = lib64 ]; then
-  EXTRA_FLAGS="$EXTRA_FLAGS -DLIB_SUFFIX=64"
-fi
-mkdir build
-cd build
-cmake -DCMAKE_BUILD_TYPE=release \
-      -DCMAKE_INSTALL_PREFIX=/usr \
-      -DCMAKE_C_FLAGS="%{optflags}" \
-      -DCMAKE_CXX_FLAGS="%{optflags}" \
-      -DENABLE_TESTS=FALSE \
-      -DENABLE_EXAMPLES=FALSE \
-      -DENABLE_FARSIGHT=FALSE \
+%cmake \
 %if 0%{?with_farstream}
-      -DENABLE_FARSTREAM=TRUE \
+    -DENABLE_FARSTREAM:BOOL=ON \
+%else
+    -DENABLE_FARSTREAM:BOOL=OFF \
+%endif
+%if 0%{?with_tests}
+    -DENABLE_TESTS:BOOL=ON \
+    -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
+    -DCMAKE_SKIP_RPATH:BOOL=OFF \
+%else
+    -DENABLE_TESTS:BOOL=OFF \
+%endif
+%if 0%{?with_examples}
+    -DENABLE_EXAMPLES:BOOL=ON
+%else
+    -DENABLE_EXAMPLES:BOOL=OFF
 %endif
-      -DDISABLE_WERROR=TRUE \
-      -DDESIRED_QT_VERSION=5 $EXTRA_FLAGS ..
 
-make %{?_smp_mflags}
+%cmake_build
 
 %install
-%makeinstall -C build
+%cmake_install
 %fdupes %{buildroot}
 
+%if 0%{?with_tests}
+%check
+%ctest
+%endif
+
 %post -n %{libname}-%{major} -p /sbin/ldconfig
 
 %postun -n %{libname}-%{major} -p /sbin/ldconfig
 
-%post -n %{libname}-service%{major} -p /sbin/ldconfig
+%post -n %{libname}-service%{servicemajor} -p /sbin/ldconfig
 
-%postun -n %{libname}-service%{major} -p /sbin/ldconfig
+%postun -n %{libname}-service%{servicemajor} -p /sbin/ldconfig
 
 %if 0%{?with_farstream}
 %post -n %{libname}-farstream%{major} -p /sbin/ldconfig
@@ -149,7 +170,7 @@ make %{?_smp_mflags}
 %defattr(-,root,root)
 %{_libdir}/libtelepathy-qt5.so.*
 
-%files -n %{libname}-service%{major}
+%files -n %{libname}-service%{servicemajor}
 %defattr(-,root,root)
 %{_libdir}/libtelepathy-qt5-service.so.*
 
@@ -161,7 +182,8 @@ make %{?_smp_mflags}
 
 %files devel
 %defattr(-,root,root)
-%doc AUTHORS ChangeLog README COPYING HACKING NEWS
+%license COPYING
+%doc AUTHORS ChangeLog README HACKING NEWS
 %{_includedir}/telepathy-qt5/
 %{_libdir}/libtelepathy-qt5*.so
 %{_libdir}/pkgconfig/TelepathyQt5*.pc