Hello community,

here is the log from the commit of package litetran for openSUSE:Factory 
checked in at 2018-06-19 11:57:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/litetran (Old)
 and      /work/SRC/openSUSE:Factory/.litetran.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "litetran"

Tue Jun 19 11:57:08 2018 rev:3 rq:616346 version:1.3+git20161111

Changes:
--------
--- /work/SRC/openSUSE:Factory/litetran/litetran.changes        2015-01-08 
23:03:13.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.litetran.new/litetran.changes   2018-06-19 
11:57:12.296420210 +0200
@@ -1,0 +2,8 @@
+Tue Jun 12 11:12:00 UTC 2018 - [email protected]
+
+- Update to version 1.3+git20161111.
+  * No changelog available.
+- Add litetran-fix-qt-5.11.patch: Fix Qt 5.11+ compatibility.
+- Change the RPM group to Productivity/Networking/Web/Frontends.
+
+-------------------------------------------------------------------

Old:
----
  1.3.tar.gz

New:
----
  _service
  litetran-1.3+git20161111.tar.xz
  litetran-fix-qt-5.11.patch

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

Other differences:
------------------
++++++ litetran.spec ++++++
--- /var/tmp/diff_new_pack.VeQvUX/_old  2018-06-19 11:57:12.924396890 +0200
+++ /var/tmp/diff_new_pack.VeQvUX/_new  2018-06-19 11:57:12.932396593 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package litetran
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -17,15 +17,18 @@
 
 
 Name:           litetran
-Version:        1.3
+Version:        1.3+git20161111
 Release:        0
 Summary:        The powerful translator on Qt
-License:        GPL-3.0+
-Group:          Productivity/Graphics/Other
-Url:            http://flareguner.github.io/litetran
-Source:         https://github.com/flareguner/%{name}/archive/%{version}.tar.gz
+License:        GPL-3.0-or-later
+Group:          Productivity/Networking/Web/Frontends
+URL:            https://bitbucket.org/gfarniev/litetran
+Source:         %{name}-%{version}.tar.xz
+# PATCH-FIX-OPENSUSE litetran-fix-qt-5.11.patch -- Fix Qt 5.11+ compatibility.
+Patch0:         %{name}-fix-qt-5.11.patch
 BuildRequires:  cmake
-BuildRequires:  libqt5-qttools-devel
+BuildRequires:  libqt5-linguist-devel
+BuildRequires:  pkgconfig
 BuildRequires:  update-desktop-files
 BuildRequires:  pkgconfig(Qt5Gui) >= 5.2
 BuildRequires:  pkgconfig(Qt5Multimedia) >= 5.2
@@ -35,36 +38,42 @@
 
 %description
 LiteTran is a very simple GUI for text translation
- (like Google Translate).
+(like Yandex.Translate).
 
- * very simple user interface
- * translate by text selection: just select text, press
-   key combination (Ctrl+Shift+T by default) get
-   translation result in popup. You don't need to open
-   your web browser with everytime you want to translate
-   something;
- * text speech (up to 100 characters);
+ * Very simple user interface.
+ * Translate by text selection: just select text, press the key
+   combination (Ctrl+Shift+T by default) get translation result in
+   a pop-up. You won't need to open your web browser every time you
+   want to translate something.
+ * Text speech (up to 100 characters).
  * 37 supported languages.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %cmake
-make %{?_smp_mflags}
+make %{?_smp_mflags} V=1
 
 %install
 %cmake_install
 
+%if 0%{?suse_version} < 1500
 %post
 %desktop_database_post
 
 %postun
 %desktop_database_postun
+%endif
 
 %files
-%defattr(-,root,root)
-%doc LICENSE.txt README.md RELNOTES.txt
+%if 0%{?suse_version} >= 1500
+%license LICENSE.txt
+%else
+%doc LICENSE.txt
+%endif
+%doc README.md RELNOTES.txt
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
 %{_datadir}/applications/%{name}.desktop

++++++ _service ++++++
<services>
  <service mode="disabled" name="tar_scm">
    <param name="scm">git</param>
    <param name="url">https://bitbucket.org/gfarniev/litetran.git</param>
    <param name="filename">litetran</param>
    <param name="versionformat">1.3+git%cd</param>
    <param name="revision">2ef60915be147625c50234a800960fc2d050b93f</param>
  </service>
  <service mode="disabled" name="recompress">
    <param name="file">*.tar</param>
    <param name="compression">xz</param>
  </service>
  <service mode="disabled" name="set_version" />
</services>
++++++ litetran-fix-qt-5.11.patch ++++++
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,9 +90,7 @@ qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
 qt5_wrap_ui(FORM_HEADERS ${FORMS})
 
 add_executable(${APP_EXECUTABLE_NAME} ${APP_GUI_TYPE} ${RC_SOURCES} ${SOURCES} 
${MOC_SOURCES} ${FORM_HEADERS} ${QM_FILES} )
-qt5_use_modules(${APP_EXECUTABLE_NAME} Widgets Core Network)
-
-target_link_libraries(${APP_EXECUTABLE_NAME} qxtshortcut)
+target_link_libraries(${APP_EXECUTABLE_NAME} Qt5::Core Qt5::Widgets 
Qt5::Network qxtshortcut)
 
 install(TARGETS ${APP_EXECUTABLE_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
 install(FILES ${QM_FILES} DESTINATION 
${CMAKE_INSTALL_PREFIX}/share/litetran/i18n)
--- a/src/3rdparty/qxtshortcut/CMakeLists.txt
+++ b/src/3rdparty/qxtshortcut/CMakeLists.txt
@@ -1,6 +1,7 @@
 set(SOURCES qxtglobal.cpp qxtglobalshortcut.cpp)
 set(HEADERS qxtglobalshortcut.h)
 
+find_package(Qt5 5.2 REQUIRED COMPONENTS Core Widgets)
 if(WIN32)
     set(SOURCES ${SOURCES} qxtglobalshortcut_win.cpp)
 elseif(APPLE)
@@ -13,12 +14,11 @@ endif()
 
 qt5_wrap_cpp(SOURCES-MOC ${HEADERS})
 add_library(qxtshortcut STATIC ${SOURCES} ${SOURCES-MOC})
-qt5_use_modules(qxtshortcut Widgets Core)
+target_link_libraries(qxtshortcut Qt5::Core Qt5::Widgets)
 
 if(UNIX AND NOT APPLE)
-    find_package(Qt5X11Extras 5.2 REQUIRED)
-    qt5_use_modules(qxtshortcut X11Extras)
-    target_link_libraries(qxtshortcut ${XLIB})
+    find_package(Qt5 5.2 REQUIRED COMPONENTS X11Extras)
+    target_link_libraries(qxtshortcut Qt5::X11Extras ${XLIB})
 endif()
 
 if(APPLE)

Reply via email to