Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF
goldendict
goldendict.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File goldendict.spec of Package goldendict
# # spec file for package goldendict # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright 2008-2009 Buschmann <buschmann23@opensuse.org> # # 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 http://bugs.opensuse.org/ # %define qt_major_version 5 %if 0%{?suse_version} >= 1550 %define qt_major_version 5 %endif Name: goldendict Summary: Dictionary Lookup Program License: GPL-3.0+ Group: Productivity/Office/Dictionary Version: 20230520T134406.548c005 Release: 0 Source0: %{name}-%{version}.tar.xz URL: http://goldendict.org BuildRequires: update-desktop-files BuildRequires: desktop-file-utils BuildRequires: eb-devel BuildRequires: gcc-c++ BuildRequires: git BuildRequires: hunspell-devel >= 1.2.4 BuildRequires: libtiff-devel BuildRequires: libvorbis-devel BuildRequires: zlib-devel BuildRequires: libbz2-devel BuildRequires: lzo-devel BuildRequires: pkgconfig(libzip) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(zlib) BuildRequires: unzip BuildRequires: xz-devel BuildRequires: libzstd-devel # Qt BuildRequires: cmake BuildRequires: cmake(Qt%{qt_major_version}LinguistTools) BuildRequires: pkgconfig(Qt%{qt_major_version}Core) BuildRequires: pkgconfig(Qt%{qt_major_version}Concurrent) BuildRequires: pkgconfig(Qt%{qt_major_version}Gui) BuildRequires: pkgconfig(Qt%{qt_major_version}Help) BuildRequires: pkgconfig(Qt%{qt_major_version}Multimedia) BuildRequires: pkgconfig(Qt%{qt_major_version}Network) BuildRequires: pkgconfig(Qt%{qt_major_version}PrintSupport) BuildRequires: pkgconfig(Qt%{qt_major_version}Sql) BuildRequires: pkgconfig(Qt%{qt_major_version}Svg) BuildRequires: pkgconfig(Qt%{qt_major_version}Widgets) BuildRequires: pkgconfig(Qt%{qt_major_version}Xml) %if %{qt_major_version} >= 6 BuildRequires: pkgconfig(Qt%{qt_major_version}Core5Compat) %else BuildRequires: pkgconfig(Qt%{qt_major_version}X11Extras) BuildRequires: libqt%{qt_major_version}-qtmultimedia-private-headers-devel %endif # obsoleted #BuildRequires: pkgconfig(Qt%{qt_major_version}WebKitWidgets) # port unfinished BuildRequires: pkgconfig(Qt%{qt_major_version}WebEngineWidgets) #BuildRequires: qtsingleapplication-devel # bzip2/bz2 BuildRequires: libbz2-devel # AV BuildRequires: libao-devel BuildRequires: pkgconfig(libavformat) #BuildRequires: libavutil-devel BuildRequires: ffmpeg-devel # eb-devel / libeb-dev for epwing. Otherwise use "CONFIG+=no_epwing_support" BuildRequires: eb-devel # needed for "CONFIG+=chinese_conversion_support" BuildRequires: pkgconfig(opencc) # Zstd compression required for optional ZIM format support. It can be enabled by "CONFIG+=zim_support" BuildRequires: pkgconfig(libzstd) %description Feature-rich dictionary lookup program. * Use of WebKit for an accurate articles' representation, complete with all formatting, colors, images and links. * Support of multiple dictionary file formats: * Babylon .BGL files * StarDict .ifo/.dict/.idx/.syn dictionaries * Dictd .index/.dict(.dz) dictionary files * ABBYY Lingvo .dsl source files * ABBYY Lingvo .lsa/.dat audio archives * Support for Wikipedia, Wiktionary or any other MediaWiki-based sites * Scan popup functionality. A small window pops up with translation of a word chosen from antoher application. * And much more... Author: ------- Konstantin Isakov %lang_package %prep %setup -n %{name}-%{version} -q git init %build %if %{qt_major_version} >= 6 qmake%{qt_major_version} \ %else qmake-qt%{qt_major_version} \ %endif PREFIX=%{_prefix} \ "CONFIG+=use_qtwebengine" \ "CONFIG+=chinese_conversion_support" \ "CONFIG+=zim_support" \ goldendict.pro %cmake_build %install %if %{qt_major_version} >= 6 %qmake6_install %else %qmake5_install %endif %suse_update_desktop_file -r org.goldendict.GoldenDict Office Dictionary %find_lang %{name} --with-qt || echo "no translations found but whatever !" %files %defattr(644,root,root,755) %license LICENSE.txt %defattr(755,root,root,755) %_bindir/%{name} %defattr(644,root,root,755) %_datadir/applications/*.desktop %_datadir/metainfo/*.metainfo.xml %_datadir/pixmaps/%{name}.png %_datadir/%{name} %exclude %{_datadir}/%{name}/help %exclude %{_datadir}/%{name}/locale/ %files lang -f %{name}.lang %{_datadir}/%{name}/help %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor