From d56e5af5593108c635ad09d9887bb43504fb2ed36afb50336fcf1056755b4379 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 19 May 2023 13:18:09 +0000 Subject: [PATCH] Accepting request 1087764 from home:slbtongying one last minor change OBS-URL: https://build.opensuse.org/request/show/1087764 OBS-URL: https://build.opensuse.org/package/show/Education/goldendict-ng?expand=0&rev=1 --- .gitattributes | 23 +++++++++ _service | 17 +++++++ goldendict-ng-23.05.03.tar.xz | 3 ++ goldendict-ng.changes | 4 ++ goldendict-ng.spec | 95 +++++++++++++++++++++++++++++++++++ 5 files changed, 142 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 goldendict-ng-23.05.03.tar.xz create mode 100644 goldendict-ng.changes create mode 100644 goldendict-ng.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..176634d --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + + goldendict-ng + git + git@github.com:xiaoyifang/goldendict-ng.git + 23.05.03 + 136d1cb03b3c2ed98d9be095ca39de845efdaefc + winlibs/* + disable + + + *.tar + xz + + + diff --git a/goldendict-ng-23.05.03.tar.xz b/goldendict-ng-23.05.03.tar.xz new file mode 100644 index 0000000..7a9e9d2 --- /dev/null +++ b/goldendict-ng-23.05.03.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f087483584951b40cea708e843a737c80682c14434ca9354738a53f11996bb9 +size 3824508 diff --git a/goldendict-ng.changes b/goldendict-ng.changes new file mode 100644 index 0000000..9b85d49 --- /dev/null +++ b/goldendict-ng.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat May 13 12:00:00 UTC 2023 - shenlebantongying + +- Initial package diff --git a/goldendict-ng.spec b/goldendict-ng.spec new file mode 100644 index 0000000..8b990d9 --- /dev/null +++ b/goldendict-ng.spec @@ -0,0 +1,95 @@ +# +# spec file for package goldendict-ng +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: goldendict-ng +Version: 23.05.03 +Release: 0 +Summary: Dictionary Lookup Program +License: GPL-3.0-or-later +Group: Productivity/Office/Dictionary +URL: https://xiaoyifang.github.io/goldendict-ng/ +Source0: goldendict-ng-%{version}.tar.xz +BuildRequires: desktop-file-utils +BuildRequires: gcc-c++ +BuildRequires: git +BuildRequires: pkgconfig +BuildRequires: unzip +BuildRequires: update-desktop-files +# /Section dependencies +BuildRequires: eb-devel +BuildRequires: hunspell-devel >= 1.2.4 +BuildRequires: pkgconfig(opencc) +BuildRequires: pkgconfig(vorbis) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xapian-core) +BuildRequires: pkgconfig(xtst) +# /Section Qt 6 +BuildRequires: pkgconfig(Qt6Concurrent) +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Core5Compat) +BuildRequires: pkgconfig(Qt6Gui) +BuildRequires: pkgconfig(Qt6Multimedia) +BuildRequires: pkgconfig(Qt6Svg) +BuildRequires: pkgconfig(Qt6TextToSpeech) +BuildRequires: pkgconfig(Qt6WebEngineWidgets) +BuildRequires: pkgconfig(Qt6Widgets) +BuildRequires: pkgconfig(Qt6Xml) +BuildRequires: qt6-tools-linguist +# /Section compresion libraries +BuildRequires: pkgconfig(liblzma) +BuildRequires: pkgconfig(libzip) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(lzo2) +BuildRequires: pkgconfig(bzip2) +BuildRequires: pkgconfig(zlib) +# /Section ffmpeg 6 +BuildRequires: pkgconfig(libavformat) +BuildRequires: pkgconfig(libavutil) +Provides: goldendict = %{version} +Obsoletes: goldendict < 1.5.1 + +%description +The Next Generation GoldenDict: A feature-rich dictionaries lookup program, supporting many dictionary formats. + +%lang_package + +%prep +%autosetup -p1 + +%build +%{qmake6} PREFIX=%{_prefix} "CONFIG+=use_xapian" "CONFIG+=zim_support" "CONFIG+=chinese_conversion_support" goldendict.pro +%{qmake6_build} + +%install +%{qmake6_install} +%suse_update_desktop_file -r org.goldendict.GoldenDict Office Dictionary + +%files +%license LICENSE.txt +%{_bindir}/goldendict +%{_datadir}/goldendict +%{_datadir}/applications/org.goldendict.GoldenDict.desktop +%{_datadir}/metainfo/org.goldendict.GoldenDict.metainfo.xml +%{_datadir}/pixmaps/goldendict.png +%exclude %{_datadir}/goldendict/locale/ + +%files lang +%{_datadir}/goldendict/locale/ +%exclude %{_datadir}/goldendict/locale/crowdin.qm + +%changelog