- Update to version 3.0.7:
- Rebase patches to apply cleanly and with -p1: * stardict-3.0.3-fix-path-for-sounds.patch * stardict-3.0.3-improve-desktop-file.patch - Drop stardict-3.0.5-enable-gtk3.patch incorporated upstream. - Add stardict-drop-autotools-gconf.patch: Drop an obsolete gconf2 macro from autotools scripts. - Miscellaneous specfile cleanups (spec-cleaner). - Hack: Build with `-fpermissive` CFLAGS to avoid innumerable `const char *` to `char *` casts due to ongoing transition to gtk3. OBS-URL: https://build.opensuse.org/package/show/Education/stardict?expand=0&rev=52
This commit is contained in:
commit
20ae3d93bf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
15
stardict-3.0.3-fix-path-for-sounds.patch
Normal file
15
stardict-3.0.3-fix-path-for-sounds.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Index: stardict-3.0.7/dict/src/conf.cpp
|
||||
===================================================================
|
||||
--- stardict-3.0.7.orig/dict/src/conf.cpp
|
||||
+++ stardict-3.0.7/dict/src/conf.cpp
|
||||
@@ -224,8 +224,8 @@ AppConf::AppConf() :
|
||||
// stores absolute and relative paths
|
||||
add_entry("/apps/stardict/preferences/dictionary/tts_path", pathlist);
|
||||
#else
|
||||
- pathlist.push_back("/usr/share/WyabdcRealPeopleTTS");
|
||||
- pathlist.push_back("/usr/share/OtdRealPeopleTTS");
|
||||
+ pathlist.push_back("/usr/share/stardict/WyabdcRealPeopleTTS");
|
||||
+ pathlist.push_back("/usr/share/stardict/OtdRealPeopleTTS");
|
||||
add_entry("/apps/stardict/preferences/dictionary/tts_path", pathlist);
|
||||
#endif
|
||||
}
|
12
stardict-3.0.3-improve-desktop-file.patch
Normal file
12
stardict-3.0.3-improve-desktop-file.patch
Normal file
@ -0,0 +1,12 @@
|
||||
Index: a/dict/data/stardict.desktop.in
|
||||
===================================================================
|
||||
--- a/dict/data/stardict.desktop.in.orig
|
||||
+++ b/dict/data/stardict.desktop.in
|
||||
@@ -1,6 +1,6 @@
|
||||
[Desktop Entry]
|
||||
_Name=StarDict
|
||||
-_GenericName=Lookup words
|
||||
+_GenericName=Dictionary
|
||||
_Comment=StarDict is an international dictionary for GNOME.
|
||||
Exec=stardict
|
||||
Terminal=false
|
51
stardict-3.0.5-enable-gtk3.patch
Normal file
51
stardict-3.0.5-enable-gtk3.patch
Normal file
@ -0,0 +1,51 @@
|
||||
Index: dict/configure
|
||||
===================================================================
|
||||
--- dict/configure.orig
|
||||
+++ dict/configure
|
||||
@@ -18553,15 +18553,15 @@ fi
|
||||
|
||||
|
||||
if test "x${enable_gpe_support}" = "xyes" ; then
|
||||
- DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 libgpewidget >= 0.109"
|
||||
+ DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 libgpewidget >= 0.109"
|
||||
elif test "x${enable_maemo_support}" = "xyes" ; then
|
||||
- DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 gconf-2.0 >= 2.6 hildon-libs >= 0.12"
|
||||
+ DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 gconf-2.0 >= 2.6 hildon-libs >= 0.12"
|
||||
elif test "x${enable_darwin_support}" = "xyes" ; then
|
||||
- DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0"
|
||||
+ DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0"
|
||||
elif test "x${enable_gnome_support}" = "xno" ; then
|
||||
- DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0"
|
||||
+ DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0"
|
||||
else
|
||||
- DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 libgnome-2.0 libbonobo-2.0 gconf-2.0"
|
||||
+ DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 libgnome-2.0 libbonobo-2.0 gconf-2.0"
|
||||
fi
|
||||
|
||||
|
||||
Index: lib/configure
|
||||
===================================================================
|
||||
--- lib/configure.orig
|
||||
+++ lib/configure
|
||||
@@ -16008,7 +16008,7 @@ done
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
# Checks for library functions.
|
||||
-DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.8 gmodule-2.0 zlib libxml-2.0 >= 2.5"
|
||||
+DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.8 gmodule-2.0 zlib libxml-2.0 >= 2.5"
|
||||
|
||||
|
||||
|
||||
Index: tools/configure
|
||||
===================================================================
|
||||
--- tools/configure.orig
|
||||
+++ tools/configure
|
||||
@@ -16043,7 +16043,7 @@ done
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
# Checks for library functions.
|
||||
-DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.8 zlib gio-2.0"
|
||||
+DEP_MODULES="gtk+-3.0 glib-2.0 >= 2.8 zlib gio-2.0"
|
||||
|
||||
|
||||
|
3
stardict-3.0.6.tar.bz2
Normal file
3
stardict-3.0.6.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a0a695a8977604e0509a3db1bc6a67e53599b14f29494ba942f21d2c26b82e7
|
||||
size 9341740
|
3
stardict-3.0.7.7z
Normal file
3
stardict-3.0.7.7z
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d766f4efb1ae868855a47f39b2def66dd7a3232ca54c651c9cb3327b1bec50ea
|
||||
size 3744286
|
24
stardict-drop-autotools-gconf.patch
Normal file
24
stardict-drop-autotools-gconf.patch
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
dict/configure.ac | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
Index: stardict-3.0.7/dict/configure.ac
|
||||
===================================================================
|
||||
--- stardict-3.0.7.orig/dict/configure.ac
|
||||
+++ stardict-3.0.7/dict/configure.ac
|
||||
@@ -488,7 +488,6 @@ elif test "x${enable_maemo_support}" = "
|
||||
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
|
||||
fi
|
||||
AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test "x${enable_maemo_support}" != "xno")
|
||||
- AM_GCONF_SOURCE_2
|
||||
elif test "x${enable_darwin_support}" = "xyes" ; then
|
||||
echo "Enable darwin suppport";
|
||||
AC_DEFINE([CONFIG_DARWIN],[], [Compile with darwin support])
|
||||
@@ -510,7 +509,6 @@ dnl ************************************
|
||||
if test x"$GCONFTOOL" = xno; then
|
||||
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
|
||||
fi
|
||||
- AM_GCONF_SOURCE_2
|
||||
|
||||
dnl ==========================================================================
|
||||
dnl stuff for the CORBA interface
|
313
stardict.changes
Normal file
313
stardict.changes
Normal file
@ -0,0 +1,313 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 23:31:16 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 3.0.7:
|
||||
* Port to gtk3.
|
||||
* Add some babylon dictionaries.
|
||||
* Add some BigDict dictionaries.
|
||||
* Add some PowerWord dictionaries.
|
||||
* Stardict_client add md5 salt feature and RSA encrypt feature.
|
||||
* Add fortune and cal plugins.
|
||||
* Add info plugin.
|
||||
* Add flite TTS plugin.
|
||||
* Add YouDao.com netdict plugin.
|
||||
* Add multi-cmd plugin.
|
||||
* Many small changes.
|
||||
* Updated translations.
|
||||
- Rebase patches to apply cleanly and with -p1:
|
||||
* stardict-3.0.3-fix-path-for-sounds.patch
|
||||
* stardict-3.0.3-improve-desktop-file.patch
|
||||
- Drop stardict-3.0.5-enable-gtk3.patch incorporated upstream.
|
||||
- Add stardict-drop-autotools-gconf.patch: Drop an obsolete gconf2
|
||||
macro from autotools scripts.
|
||||
- Miscellaneous specfile cleanups (spec-cleaner).
|
||||
- Hack: Build with `-fpermissive` CFLAGS to avoid innumerable
|
||||
`const char *` to `char *` casts due to ongoing transition to
|
||||
gtk3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 26 13:30:23 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Use %autosetup macro. Allows to eliminate the usage of deprecated
|
||||
PatchN.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 12 00:26:48 UTC 2020 - andy great <andythe_great@pm.me>
|
||||
|
||||
- Update to version 3.0.6.
|
||||
* Update stardict_powerword_parsedata.cpp
|
||||
* Small text changes.
|
||||
- Clean up spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 22 18:44:53 UTC 2018 - jengelh@inai.de
|
||||
|
||||
- Remove filler wording from description.
|
||||
- Don't bother with xargs, use find delete directly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 21 08:29:03 UTC 2018 - aloisio@gmx.com
|
||||
|
||||
- Use espeak-ng when available
|
||||
|
||||
- Remove espeak and enchant runtime dependencies (rpm will require
|
||||
each library automatically)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 18 21:24:06 UTC 2014 - kkirill@opensuse.org
|
||||
|
||||
- update to 3.0.5
|
||||
+ update Kazakh and Russian translations
|
||||
+ stardict-advertisement-plugin comes back
|
||||
+ 'P' dictionary content type identifier comes back
|
||||
+ add don't load bad dict option
|
||||
+ add show_ads checkbox for update-info-plugin
|
||||
- compile with --disable-gnome-support since GNOME 2 is obsoleted
|
||||
- drop upstreamed patches:
|
||||
+ stardict-3.0.3-wrong-memset.patch
|
||||
+ stardict-3.0.3-zlib-update.patch
|
||||
- add patch to enable gtk3 build:
|
||||
+ stardict-3.0.5-enable-gtk3.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 7 19:02:10 UTC 2013 - kkirill@opensuse.org
|
||||
|
||||
- updated Russian translation (from rev. 58222e24e201)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 2 18:35:08 UTC 2013 - crrodriguez@opensuse.org
|
||||
|
||||
- fix build with new automake
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 16 06:56:12 UTC 2013 - bili@suse.com
|
||||
|
||||
- updated to 3.0.4.
|
||||
- Update default main window size.
|
||||
- Add go back and go forward button.
|
||||
- Configure.ac mysql-config fix and other small fixes.
|
||||
- Delete the patches which are fixed in upstream.
|
||||
- stardict-3.0.3-gcc46.patch
|
||||
- stardict-3.0.3-NetDictRequest.patch
|
||||
- stardict-3.0.3-fix-glib_h-include.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 14 14:15:40 UTC 2012 - coolo@suse.com
|
||||
|
||||
- compile with latest zlib
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 24 19:43:03 UTC 2012 - kkirill@opensuse.org
|
||||
|
||||
- added stardict-3.0.3-fix-glib_h-include.patch to include only
|
||||
glib.h
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 27 15:26:16 UTC 2011 - idonmez@suse.com
|
||||
|
||||
- added stardict-3.0.3-wrong-memset.patch to fix wrong size
|
||||
parameter in memset call
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 29 01:09:55 UTC 2011 - swyear@gmail.com
|
||||
|
||||
- added stardict-3.0.3-NetDictRequest.patch to fix crash with
|
||||
ERROR:compositelookup.cpp:53. Fixed bnc#736368
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 6 01:09:08 UTC 2011 - kirill.kirillov@gmail.com
|
||||
|
||||
- added stardict-3.0.3-improve-desktop-file.patch
|
||||
- added ru.po (fixed mistakes in Russian translation)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 5 16:55:30 UTC 2011 - kirill.kirillov@gmail.com
|
||||
|
||||
- added stardict-3.0.3-gcc46.patch
|
||||
- removed gucharmap dependency
|
||||
- fixed license tag
|
||||
- fixed spurious-executable-perm RPMLINT warning
|
||||
- cleaned spec using spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 23:00:21 UTC 2011 - kirill.kirillov@gmail.com
|
||||
|
||||
- updated to 3.0.3
|
||||
- dropped festival
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 12 22:18:26 UTC 2011 - kirill.kirillov@gmail.com
|
||||
|
||||
- Adjust default path for sound files:
|
||||
Needed by stardict-sounds-wyabdcrealpeopletts package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 26 14:03:38 CST 2010 - embar@users.berlios.de
|
||||
|
||||
- Fix to avoid hang if pulseaudio not installed
|
||||
- Include Lithuanian translation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 14:03:38 CST 2009 - xwhu@suse.de
|
||||
|
||||
- Fix to avoid compile errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 24 15:50:36 CST 2009 - xwhu@suse.de
|
||||
|
||||
- Update po file for Russian
|
||||
- Disable netupdatee advertisement by default
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 20 20:11:07 CET 2009 - crrodriguez@suse.de
|
||||
|
||||
- fix build with GCC 4.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 14 10:08:51 CST 2009 - xwhu@suse.de
|
||||
|
||||
- bnc#465161, stardict crashes when gethostbyname_r failes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 29 12:33:59 CEST 2008 - lrupp@suse.de
|
||||
|
||||
- fix build on distributions with old Gucharmap library
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 17 10:32:47 CEST 2008 - lrupp@suse.de
|
||||
|
||||
- fix buildrequires
|
||||
- mark stardict.schemas as %config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 10 19:38:21 CEST 2008 - maw@suse.de
|
||||
|
||||
- Add stardict-gucharmap.patch and run autoreconf -fi to reenable
|
||||
gucharmap functionality.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 10 08:56:13 CEST 2008 - xwhu@suse.de
|
||||
|
||||
- fix configure.in for festival
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 28 04:12:06 CEST 2008 - xwhu@suse.de
|
||||
|
||||
- disable gucharmap due to API change
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 29 15:06:55 CET 2008 - lrupp@suse.de
|
||||
|
||||
- fix some compiler issues with gcc4.3:
|
||||
stardict-3.0.1-includes.patch
|
||||
- remove unneeded sigc++ header
|
||||
- added stardict-transparent_trayicon.patch from Fedora
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 22 23:58:45 MSK 2008 kirill.kirillov@gmail.com
|
||||
|
||||
- removed annoying adware
|
||||
(--disable-advertisement)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
||||
Sat Jan 12 23:00:00 MSK 2008 kirill.kirillov@gmail.com
|
||||
- update to 3.0.1
|
||||
+ dictdotcn plugin was added
|
||||
+ wordnet plugin was added
|
||||
+ regex query support was added
|
||||
+ QQWry plugin was added
|
||||
+ many other changes were made
|
||||
- added stardict-3.0.1-festival.h-path-fix.patch
|
||||
- added separate stardict.desktop source
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 31 11:36:16 CEST 2007 - lrupp@suse.de
|
||||
|
||||
- update to 3.0.0
|
||||
+ Network dictionaries support.
|
||||
+ Plugin system.
|
||||
+ Full-text translation.
|
||||
+ Pronounce word by TTS engine.
|
||||
+ Preliminary WikiPedia dictionary support.
|
||||
+ More powerful dictionary management.
|
||||
+ Babylon dictionaries convertion.
|
||||
+ Many other changes.
|
||||
- removed upstreamed stardict-2.4.8-private_function.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 06:25:05 CET 2007 - xwhu@novell.com
|
||||
|
||||
- Fix header files compatibility issues with gcc 4.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 11 16:39:38 CEST 2007 - sbrabec@suse.cz
|
||||
|
||||
- Removed bogus dependency on mDNSResponder.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 18 16:26:04 CEST 2007 - lrupp@suse.de
|
||||
|
||||
- update to 2.4.8
|
||||
+ KingSoft PowerWord support
|
||||
+ Synonym support
|
||||
+ Sort word list by collate function support
|
||||
+ dictionaries from XDXF project available for stardict, too
|
||||
+ cfdict dictionary support
|
||||
+ Full-text search
|
||||
+ Evgeniy's patches for special character search and other changes
|
||||
+ Export word or text to file, thanks Mao-Yuan Kao
|
||||
+ Pango text markup language support
|
||||
+ Sparse wordoffset index: This make StarDict's memory usage
|
||||
become very low
|
||||
+ Add new tools: stardict_verify, treedict2dir, tabfile
|
||||
+ added many dictionaries and translations
|
||||
- adapt patches
|
||||
- added stardict-2.4.8-private_function.patch
|
||||
- remove provides %{name} = 2.4
|
||||
- use fdupes to save space
|
||||
- fixed desktop file: works now on other windowmanagers, too
|
||||
- use more macros in specfile and allow builds on older distris
|
||||
- added documentation files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 7 16:04:49 CEST 2007 - sbrabec@suse.cz
|
||||
|
||||
- Removed invalid desktop Category "Application" (#254654).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 15 13:06:06 CET 2007 - sbrabec@suse.cz
|
||||
|
||||
- Fixed schemas installation, spec file cleanup (#254850).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 12 14:07:09 CET 2007 - anonymous@anonymous
|
||||
|
||||
- Use gconf_schemas_prereq
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 8 01:40:26 CET 2007 - ro@suse.de
|
||||
|
||||
- fix localstatedir
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 8 00:23:43 CET 2007 - ro@suse.de
|
||||
|
||||
- GNOME moved to /usr
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 11:05:35 CEST 2006 - aj@suse.de
|
||||
|
||||
- Cleanup BuildRequires.
|
||||
- Build with RPM_OPT_FLAGS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:41:49 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 12:00:00 CET 2006 - xwhu@novell.com
|
||||
|
||||
- Initial build of 2.4.5
|
||||
|
115
stardict.spec
Normal file
115
stardict.spec
Normal file
@ -0,0 +1,115 @@
|
||||
#
|
||||
# spec file for package stardict
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%define espeakdev espeak-ng-compat-devel
|
||||
%else
|
||||
%define espeakdev espeak-devel
|
||||
%endif
|
||||
Name: stardict
|
||||
Version: 3.0.7
|
||||
Release: 0
|
||||
Summary: A powerful cross-platform dictionary written in GTK+3
|
||||
License: GPL-3.0-only
|
||||
Group: Productivity/Office/Dictionary
|
||||
URL: https://stardict-4.sourceforge.net/
|
||||
Source0: http://download.sourceforge.net/stardict-4/%{name}-%{version}-2-src.7z#/%{name}-%{version}.7z
|
||||
# PATCH-FIX-OPENSUSE stardict-3.0.3-fix-path-for-sounds.patch -- adjust default path for sound files
|
||||
Patch0: stardict-3.0.3-fix-path-for-sounds.patch
|
||||
# PATCH-FIX-OPENSUSE stardict-3.0.3-improve-desktop-file.patch -- add GenericName entry
|
||||
Patch1: stardict-3.0.3-improve-desktop-file.patch
|
||||
# PATCH-FIX-UPSTREAM stardict-drop-autotools-gconf.patch badshah400@gmail.com -- Drop unnecessary and no longer supported autotools gconf macro
|
||||
Patch2: stardict-drop-autotools-gconf.patch
|
||||
BuildRequires: %{espeakdev}
|
||||
BuildRequires: 7zip
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flite-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gnome-common
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libtool
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: sgml-skel
|
||||
BuildRequires: yelp-tools
|
||||
BuildRequires: pkgconfig(enchant)
|
||||
BuildRequires: pkgconfig(gnome-doc-utils)
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
BuildRequires: pkgconfig(json-glib-1.0)
|
||||
BuildRequires: pkgconfig(libcanberra)
|
||||
BuildRequires: pkgconfig(libcanberra-gtk3)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(sigc++-2.0)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
%description
|
||||
StarDict is a cross-platform and international dictionary written in GTK+3.
|
||||
|
||||
It has features such as "Glob-style pattern matching", "Scan
|
||||
selection word" and "Fuzzy query".
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
# Remove unneeded sigc++ header files to make it sure
|
||||
# that we are using system-wide libsigc++
|
||||
find dict/src/sigc++* -name "*.h" -or -name "*.cc" -delete
|
||||
|
||||
%build
|
||||
# Hack: There are innumerable `const char *` to `char *` conversions
|
||||
export CFLAGS="%{optflags} -fpermissive"
|
||||
export CXXFLAGS="%{optflags} -fpermissive"
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
%configure \
|
||||
--disable-dictdotcn \
|
||||
--disable-festival \
|
||||
--disable-gnome-support \
|
||||
--disable-gucharmap \
|
||||
--disable-schemas-install \
|
||||
--disable-scrollkeeper \
|
||||
--disable-tools
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%find_lang %{name}
|
||||
|
||||
# Move metadata file to correct dir
|
||||
mkdir -p %{buildroot}%{_datadir}/metainfo
|
||||
mv %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml \
|
||||
%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
|
||||
|
||||
# save space, create symlinks for identical files
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license COPYING
|
||||
%doc dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation dict/AUTHORS dict/ChangeLog dict/README
|
||||
%{_libdir}/stardict
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/stardict-editor.1%{?ext_man}
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/pixmaps/*.png
|
||||
%{_datadir}/stardict/
|
||||
%{_datadir}/metainfo/*.appdata.xml
|
||||
%{_mandir}/man1/stardict.1%{?ext_man}
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user