Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF
goldendict-git
goldendict-master.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File goldendict-master.spec of Package goldendict-git
# # spec file for package goldendict # # Copyright (c) 2012-2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright 2013 Tvangeste <i.4m.l33t@yandex.ru> # Copyright 2011-2019 <opensuse.lietuviu.kalba@gmail.com> # 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 %define realname goldendict Name: %{realname}-git Summary: Dictionary Lookup Program License: GPL-3.0-or-later Group: Productivity/Office/Dictionary Url: http://goldendict.org/ Version: 20240117T160214.e45a69d3 Release: 0 Source0: goldendict-%{version}.tar.gz #Patch: goldendict_MR1400.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Conflicts: %{realname} %if 0%{?suse_version} BuildRequires: update-desktop-files %endif 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 %if 0%{?suse_version} BuildRequires: libbz2-devel %else BuildRequires: bzip2-devel %endif # AV %if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} ) BuildRequires: libao-devel BuildRequires: pkgconfig(libavformat) #BuildRequires: libavutil-devel BuildRequires: ffmpeg-devel %endif # eb-devel / libeb-dev for epwing. Otherwise use "CONFIG+=no_epwing_support" %if 0%{?is_opensuse} || 0%{?suse_version} || 0%{?fedora_version} || 0%{?mageia} BuildRequires: eb-devel %endif # Zstd compression required for optional ZIM format support. It can be enabled by "CONFIG+=zim_support" %if 0%{?suse_version} > 1320 BuildRequires: pkgconfig(libzstd) %endif %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. * Full-text search. * And much more... This is xiaoyifang fork which often breaks features without care. %if 0%{?suse_version} %lang_package %else %package lang Summary: Translations for package %{name} License: GPL-3.0-or-later %description lang This subpackage provides translations for Goldendict. %endif %prep %setup -n goldendict-%{version} -q #patch -p1 -F3 git init %build # "CONFIG+=no_ffmpeg_player" "CONFIG+=no_qtmultimedia_player" ? %if 0%{?suse_version} %if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} ) || (0%{?suse_version} == 1315 && 0%{?sle_version} >= 120200) %if 0%{?is_opensuse} %if %{qt_major_version} >= 6 qmake%{qt_major_version} \ %else qmake-qt%{qt_major_version} \ %endif PREFIX=%{_prefix} \ %if 0%{?sle_version} < 150000 "CONFIG+=old_hunspell" \ %endif %if 0%{?suse_version} > 1320 "CONFIG+=zim_support" \ %endif goldendict.pro %cmake_build %else qmake%{qt_major_version} \ PREFIX=%{_prefix} "CONFIG+=no_ffmpeg_player" \ %if 0%{?sle_version} < 150000 "CONFIG+=old_hunspell" \ %endif %if 0%{?suse_version} > 1320 "CONFIG+=zim_support" \ %endif goldendict.pro %cmake_build %endif %else qmake PREFIX=/usr "CONFIG+=no_ffmpeg_player" "CONFIG+=no_qtmultimedia_player" "CONFIG+=old_hunspell" goldendict.pro && \ make clean && make %{?jobs:-j %jobs} %endif %endif # Workaround for error: Empty %files file debugsourcefiles.list %if 0%{?fedora_version} || 0%{?mageia} %global debug_package %{nil} %endif %if 0%{?mageia} qmake-qt%{qt_major_version} PREFIX=/usr "CONFIG+=no_ffmpeg_player" "CONFIG+=old_hunspell" goldendict.pro && make clean && make %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} qmake-qt4 PREFIX=%{_prefix} "CONFIG+=no_ffmpeg_player" "CONFIG+=old_hunspell" \ %if 0%{?rhel_version} || 0%{?centos_version} "CONFIG+=no_epwing_support" \ %endif goldendict.pro make clean && make %{?jobs:-j %jobs} %endif %install %if 0%{?suse_version} %if %{qt_major_version} >= 6 %qmake6_install %else %qmake5_install %endif #INSTALL_ROOT=%{buildroot} %makeinstall %suse_update_desktop_file -r org.goldendict.GoldenDict Office Dictionary %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mageia} rm -rf %{buildroot} make install DESTDIR=%buildroot INSTALL_ROOT=%{buildroot} INSTALL="install -p" %endif %if 0%{?suse_version} <= 1320 mv %{buildroot}%_datadir/metainfo %{buildroot}%_datadir/appdata %endif # fix another retardation if [ -d "%{buildroot}/locale" ]; then mkdir -p %{buildroot}%{_datadir}/%{realname} mv -v %{buildroot}/locale %{buildroot}%{_datadir}/%{realname}/ fi %find_lang %{realname} --with-qt || echo "no translations found but whatever !" %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %if 0%{?suse_version} >= 1500 %license LICENSE.txt %else %doc LICENSE.txt %endif %defattr(755,root,root,755) %_bindir/%{realname} %defattr(644,root,root,755) %_datadir/%{realname} %_datadir/applications/org.goldendict.GoldenDict.desktop %if 0%{?suse_version} <= 1310 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} <= 120100) %dir %_datadir/appdata %endif %if 0%{?suse_version} <= 1320 %_datadir/appdata/org.goldendict.GoldenDict.metainfo.xml %else %_datadir/metainfo/org.goldendict.GoldenDict.metainfo.xml %endif %_datadir/pixmaps/%{realname}.png %exclude %{_datadir}/%{realname}/help %exclude %{_datadir}/%{realname}/locale/ %files lang -f %{realname}.lang %{_datadir}/%{realname}/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