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+git2016
Changes:
--- /work/SRC/openSUSE:Factory/litetran/litetran.changes2015-01-08
23:03:13.0 +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 - sor.ale...@meowr.ru
+
+- Update to version 1.3+git2016.
+ * 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+git2016.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+git2016
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 ++
git
https://bitbucket.org/gfarniev/litetran.git
litetran
1.3+git%cd
2ef60915be147625c50234a800960fc2d050b93f
*.tar
xz
++ 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 @@