Accepting request 30767 from home:xwhu:Factory

Copy from home:xwhu:Factory/stardict via accept of submit request 30767 revision 8.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/30767
OBS-URL: https://build.opensuse.org/package/show/Education/stardict?expand=0&rev=4
This commit is contained in:
andrea florio 2010-02-07 15:49:22 +00:00 committed by Git OBS Bridge
commit 4597538d37
19 changed files with 5941 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

25
LINGUAS Normal file
View File

@ -0,0 +1,25 @@
# please keep this list sorted alphabetically
#
ar
cs
de
el
fr
ga
hr
hu
ku
lt
mk
nl
pt_BR
ru
rw
sk
sv
tr
tt
uk
vi
zh_CN
zh_TW

22
configure-festival.diff Normal file
View File

@ -0,0 +1,22 @@
Index: stardict-3.0.1/configure.in
===================================================================
--- stardict-3.0.1.orig/configure.in
+++ stardict-3.0.1/configure.in
@@ -122,7 +122,7 @@ AC_ARG_ENABLE([festival],
if test "x$enable_festival" = "xyes" ; then
AC_MSG_CHECKING([festival.h])
- AC_FIND_FILE("festival/festival.h", [/usr/include], festivaldir)
+ AC_FIND_FILE("festival.h", [/usr/include], festivaldir)
if test $festivaldir = NO
then
AC_MSG_RESULT(not found)
@@ -130,7 +130,7 @@ if test "x$enable_festival" = "xyes" ; t
else
AC_MSG_RESULT(yes)
FESTIVAL_LIBS="-lFestival -lestools -lestbase -leststring"
- FESTIVAL_CFLAGS="-I/usr/include/speech-tools/EST -ffriend-injection -Wno-deprecated"
+ FESTIVAL_CFLAGS="-ffriend-injection -Wno-deprecated"
FESTIVAL_PLUGIN_DIR="stardict-festival-tts-plugin"
fi
else

20
fix_gethostbynamer.patch Normal file
View File

@ -0,0 +1,20 @@
Index: stardict-3.0.1/src/lib/sockets.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/sockets.cpp 2007-09-12 17:11:41.000000000 +0800
+++ stardict-3.0.1/src/lib/sockets.cpp 2009-01-13 16:29:18.000000000 +0800
@@ -162,9 +162,12 @@
struct hostent hostinfo;
char buf[1024];
int ret;
- if (!gethostbyname_r(query_data->host.c_str(), &hostinfo, buf,
- sizeof(buf), &phost, &ret)) {
- query_data->sa = ((in_addr*)(hostinfo.h_addr))->s_addr;
+
+ gethostbyname_r(query_data->host.c_str(), &hostinfo, buf,
+ sizeof(buf), &phost, &ret);
+
+ if (ret == 0 && phost != NULL) {
+ query_data->sa = ((in_addr*)(hostinfo.h_addr))->s_addr;
query_data->resolved = true;
} else {
query_data->resolved = false;

2291
lt.po Normal file

File diff suppressed because it is too large Load Diff

0
ready Normal file
View File

2355
ru.po Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,133 @@
diff -Nru help.orig/C/Makefile.in help/C/Makefile.in
--- help.orig/C/Makefile.in 2005-07-19 23:16:14.000000000 +0800
+++ help/C/Makefile.in 2005-07-27 00:11:45.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf
diff -Nru help.orig/mk/Makefile.in help/mk/Makefile.in
--- help.orig/mk/Makefile.in 2005-07-19 23:16:14.000000000 +0800
+++ help/mk/Makefile.in 2005-07-27 00:11:55.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf
diff -Nru help.orig/nl/Makefile.in help/nl/Makefile.in
--- help.orig/nl/Makefile.in 2005-07-19 23:16:14.000000000 +0800
+++ help/nl/Makefile.in 2005-07-27 00:12:04.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf
diff -Nru help.orig/ru/Makefile.in help/ru/Makefile.in
--- help.orig/ru/Makefile.in 2005-07-19 23:16:15.000000000 +0800
+++ help/ru/Makefile.in 2005-07-27 00:12:13.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf
diff -Nru help.orig/uk/Makefile.in help/uk/Makefile.in
--- help.orig/uk/Makefile.in 2005-07-19 23:16:15.000000000 +0800
+++ help/uk/Makefile.in 2005-07-27 00:12:21.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf
diff -Nru help.orig/zh_CN/Makefile.in help/zh_CN/Makefile.in
--- help.orig/zh_CN/Makefile.in 2005-07-19 23:16:15.000000000 +0800
+++ help/zh_CN/Makefile.in 2005-07-27 00:12:32.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf
diff -Nru help.orig/zh_TW/Makefile.in help/zh_TW/Makefile.in
--- help.orig/zh_TW/Makefile.in 2005-07-19 23:16:15.000000000 +0800
+++ help/zh_TW/Makefile.in 2005-07-27 00:12:42.000000000 +0800
@@ -469,7 +469,6 @@
for file in $(omffile); do \
$(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
done
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
uninstall-local-omf:
-for file in $(srcdir)/*.omf; do \
@@ -477,7 +476,6 @@
rm -f $(omf_dest_dir)/$$basefile; \
done
-rmdir $(omf_dest_dir)
- -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
all: omf

View File

@ -0,0 +1,22 @@
diff -ur stardict-3.0.1.orig/configure stardict-3.0.1/configure
--- stardict-3.0.1.orig/configure 2007-11-07 17:15:46.000000000 +0800
+++ stardict-3.0.1/configure 2007-12-27 05:23:37.000000000 +0800
@@ -23601,7 +23601,7 @@
festivaldir=NO
for x in /usr/include
do
- for y in "festival/festival.h"
+ for y in "festival.h"
do
if test -r "$x/$y"
then
diff -ur stardict-3.0.1.orig/stardict-plugins/stardict-festival-tts-plugin/stardict_festival.cpp stardict-3.0.1/stardict-plugins/stardict-festival-tts-plugin/stardict_festival.cpp
--- stardict-3.0.1.orig/stardict-plugins/stardict-festival-tts-plugin/stardict_festival.cpp 2007-09-19 16:28:38.000000000 +0800
+++ stardict-3.0.1/stardict-plugins/stardict-festival-tts-plugin/stardict_festival.cpp 2007-12-27 05:38:35.000000000 +0800
@@ -1,5 +1,5 @@
#include "stardict_festival.h"
-#include <festival/festival.h>
+#include <festival.h>
#include <glib/gi18n.h>
static const StarDictPluginSystemInfo *plugin_info = NULL;

View File

@ -0,0 +1,24 @@
Index: stardict-3.0.1/src/lib/data.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/data.cpp 2009-05-26 13:47:53.000000000 +0800
+++ stardict-3.0.1/src/lib/data.cpp 2009-05-26 13:52:22.000000000 +0800
@@ -28,6 +28,7 @@
#include "data.hpp"
#include "getuint32.h"
+#include <cstdio>
DictBase::DictBase()
{
Index: stardict-3.0.1/src/lib/stardict_client.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/stardict_client.cpp 2009-05-26 13:47:53.000000000 +0800
+++ stardict-3.0.1/src/lib/stardict_client.cpp 2009-05-26 14:01:52.000000000 +0800
@@ -32,6 +32,7 @@
#include "getuint32.h"
#include "stardict_client.hpp"
+#include <cstdio>
#define PROTOCOL_VERSION "0.3"

View File

@ -0,0 +1,387 @@
Index: stardict-3.0.1/src/lib/data.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/data.cpp
+++ stardict-3.0.1/src/lib/data.cpp
@@ -22,6 +22,7 @@
# include "config.h"
#endif
+#include <cstring>
#include "kmp.h"
#include "data.hpp"
Index: stardict-3.0.1/src/lib/stddict.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/stddict.cpp
+++ stardict-3.0.1/src/lib/stddict.cpp
@@ -28,6 +28,7 @@
# include "config.h"
#endif
+#include <cstring>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
Index: stardict-3.0.1/src/lib/treedict.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/treedict.cpp
+++ stardict-3.0.1/src/lib/treedict.cpp
@@ -25,6 +25,7 @@
# include "config.h"
#endif
+#include <cstring>
#include "file.hpp"
#include "getuint32.h"
Index: stardict-3.0.1/src/lib/common.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/common.cpp
+++ stardict-3.0.1/src/lib/common.cpp
@@ -24,6 +24,8 @@
# include "config.h"
#endif
+#include <cstring>
+#include <cstdlib>
#include "common.hpp"
static void parse_description(const char *p, long len, std::string &description)
Index: stardict-3.0.1/src/lib/stardict_client.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/stardict_client.cpp
+++ stardict-3.0.1/src/lib/stardict_client.cpp
@@ -22,6 +22,8 @@
# include "config.h"
#endif
+#include <cstdlib>
+#include <cstring>
#include <glib.h>
#include <glib/gi18n.h>
Index: stardict-3.0.1/src/lib/http_client.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/http_client.cpp
+++ stardict-3.0.1/src/lib/http_client.cpp
@@ -2,6 +2,7 @@
# include "config.h"
#endif
+#include <cstring>
#include "http_client.h"
#include "sockets.hpp"
Index: stardict-3.0.1/src/lib/pluginmanager.cpp
===================================================================
--- stardict-3.0.1.orig/src/lib/pluginmanager.cpp
+++ stardict-3.0.1/src/lib/pluginmanager.cpp
@@ -1,6 +1,7 @@
#include "pluginmanager.h"
#include "file.hpp"
#include <string>
+#include <cstring>
StarDictPluginBaseObject::StarDictPluginBaseObject(const char *filename, GModule *module_, plugin_configure_func_t configure_func_):
plugin_filename(filename), module(module_), configure_func(configure_func_)
Index: stardict-3.0.1/src/pangoview.cpp
===================================================================
--- stardict-3.0.1.orig/src/pangoview.cpp
+++ stardict-3.0.1/src/pangoview.cpp
@@ -22,6 +22,7 @@
# include "config.h"
#endif
+#include <cstring>
#include "gtktextviewpango.h"
#include "utils.h"
#include "skin.h"//for SkinCursor definition
Index: stardict-3.0.1/src/x11_iskeyspressed.hpp
===================================================================
--- stardict-3.0.1.orig/src/x11_iskeyspressed.hpp
+++ stardict-3.0.1/src/x11_iskeyspressed.hpp
@@ -5,6 +5,8 @@
#include <X11/keysym.h>
#include <gtk/gtk.h>
+#include <memory>
+
#include "iskeyspressed.hpp"
typedef enum { SYM, CODE, BUTTON } KeyType_t;
Index: stardict-3.0.1/stardict-plugins/stardict-advertisement-plugin/advertisement.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-advertisement-plugin/advertisement.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-advertisement-plugin/advertisement.cpp
@@ -2,7 +2,7 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
-#include <string>
+#include <cstring>
#include <map>
#include <list>
#include <vector>
Index: stardict-3.0.1/stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp
@@ -1,6 +1,6 @@
#include "stardict_dictdotcn.h"
#include <glib/gi18n.h>
-#include <string>
+#include <cstring>
#include <list>
#ifdef _WIN32
Index: stardict-3.0.1/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp
@@ -1,6 +1,7 @@
#include "stardict_espeak.h"
#include <espeak/speak_lib.h>
#include <glib/gi18n.h>
+#include <cstring>
static const StarDictPluginSystemInfo *plugin_info = NULL;
static std::string voice_engine;
Index: stardict-3.0.1/stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp
@@ -1,7 +1,8 @@
#include "stardict_gucharmap.h"
#include <glib/gi18n.h>
#include <gucharmap/gucharmap.h>
-#include <string>
+#include <stdlib.h>
+#include <cstring>
static char *build_dictdata(char type, const char *definition)
{
Index: stardict-3.0.1/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp
@@ -1,5 +1,7 @@
#include "stardict_html_parsedata.h"
#include <glib/gi18n.h>
+#include <cstring>
+#include <stdlib.h>
#ifdef _WIN32
#include <windows.h>
Index: stardict-3.0.1/stardict-plugins/stardict-man-plugin/stardict_man.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-man-plugin/stardict_man.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-man-plugin/stardict_man.cpp
@@ -1,5 +1,6 @@
#include "stardict_man.h"
#include <glib/gi18n.h>
+#include <cstring>
#include <string>
static const StarDictPluginSystemInfo *plugin_info = NULL;
Index: stardict-3.0.1/stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp
@@ -1,4 +1,5 @@
#include "stardict_powerword_parsedata.h"
+#include <cstring>
#include <glib/gi18n.h>
#ifdef _WIN32
Index: stardict-3.0.1/src/Makefile.am
===================================================================
--- stardict-3.0.1.orig/src/Makefile.am
+++ stardict-3.0.1/src/Makefile.am
@@ -14,6 +14,8 @@ SUBDIRS = $(LOCAL_SIGCPP_DIR) lib pixmap
bin_PROGRAMS = stardict
+DEFAULT_INCLUDES = -I$(top_builddir)
+
INCLUDES = \
$(STARDICT_CFLAGS) \
$(LOCAL_SIGCPP_INCLUDE) \
Index: stardict-3.0.1/src/config_file.hpp
===================================================================
--- stardict-3.0.1.orig/src/config_file.hpp
+++ stardict-3.0.1/src/config_file.hpp
@@ -5,7 +5,7 @@
#include <list>
#include <string>
-#include "sigc++/sigc++.h"
+#include <sigc++/sigc++.h>
class config_file;
Index: stardict-3.0.1/src/gconf_file.cpp
===================================================================
--- stardict-3.0.1.orig/src/gconf_file.cpp
+++ stardict-3.0.1/src/gconf_file.cpp
@@ -22,6 +22,7 @@
# include "config.h"
#endif
+#include <memory>
#include <glib/gi18n.h>
#include "gconf_file.hpp"
Index: stardict-3.0.1/src/gtk_iskeyspressed.cpp
===================================================================
--- stardict-3.0.1.orig/src/gtk_iskeyspressed.cpp
+++ stardict-3.0.1/src/gtk_iskeyspressed.cpp
@@ -96,8 +96,7 @@ bool gtk_hotkeys::is_pressed(void)
GDK_BUTTON4_MASK = 1 << 11,
GDK_BUTTON5_MASK = 1 << 12,
*/
-
- mask = GdkModifierType(guint(mask) & (1<<13)-1);
+ mask = GdkModifierType(guint(mask) & ((1<<13)-1));
mask =
GdkModifierType(guint(mask) & ~(GDK_LOCK_MASK | GDK_BUTTON1_MASK | GDK_BUTTON2_MASK |
Index: stardict-3.0.1/src/inifile.cpp
===================================================================
--- stardict-3.0.1.orig/src/inifile.cpp
+++ stardict-3.0.1/src/inifile.cpp
@@ -26,6 +26,7 @@
#include <cerrno>
#include <cstring>
#include <cstdio>
+#include <stdlib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
Index: stardict-3.0.1/stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp
@@ -1,6 +1,8 @@
#include "stardict_qqwry.h"
#include <glib/gi18n.h>
#include <glib/gstdio.h>
+#include <cstring>
+#include <stdlib.h>
#include <string>
#ifdef _WIN32
Index: stardict-3.0.1/stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp
@@ -1,5 +1,7 @@
#include "stardict_update_info.h"
#include <glib/gi18n.h>
+#include <cstring>
+#include <stdlib.h>
#ifdef _WIN32
#include <windows.h>
Index: stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp
@@ -1,5 +1,6 @@
#include "stardict_wiki2xml.h"
#include "WIKI2XML.h"
+#include <cstring>
#include <glib.h>
std::string wiki2xml(std::string &str)
Index: stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp
@@ -1,5 +1,6 @@
#include "stardict_wiki_parsedata.h"
#include "stardict_wiki2xml.h"
+#include <cstring>
#include <glib/gi18n.h>
#ifdef _WIN32
Index: stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp
@@ -1,7 +1,7 @@
#include "court_widget.h"
#include <math.h>
#include <list>
-
+#include <cstring>
wnobj::wnobj(partic_t & p, unsigned int t) : _p(p), _t(t), highlight(false)
{
Index: stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp
@@ -1,6 +1,7 @@
#include "stardict_wordnet.h"
#include "court_widget.h"
#include <glib/gi18n.h>
+#include <cstring>
#ifdef _WIN32
#include <windows.h>
Index: stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp
@@ -1,4 +1,5 @@
#include "stardict_wordnet_parsedata.h"
+#include <cstring>
#include <glib/gi18n.h>
#ifdef _WIN32
Index: stardict-3.0.1/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp
@@ -1,4 +1,5 @@
#include "stardict_xdxf_parsedata.h"
+#include <cstring>
#include <glib/gi18n.h>
#ifdef _WIN32
Index: stardict-3.0.1/tests/t_config_file.cpp
===================================================================
--- stardict-3.0.1.orig/tests/t_config_file.cpp
+++ stardict-3.0.1/tests/t_config_file.cpp
@@ -2,6 +2,7 @@
# include "config.h"
#endif
+#include <memory>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
Index: stardict-3.0.1/tests/t_xml.cpp
===================================================================
--- stardict-3.0.1.orig/tests/t_xml.cpp
+++ stardict-3.0.1/tests/t_xml.cpp
@@ -3,6 +3,7 @@
#endif
#include <glib.h>
+#include <cstring>
#include <cstdlib>
#include <string>
Index: stardict-3.0.1/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp
===================================================================
--- stardict-3.0.1.orig/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp
+++ stardict-3.0.1/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp
@@ -3,6 +3,7 @@
#include <glib/gi18n.h>
#include <enchant.h>
#include <pango/pango.h>
+#include <cstring>
#include <string>
#include <vector>

3
stardict-3.0.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:504b3a7748933b9bd998cb85f37d4fa0a8575306643ffe6a9742450e66cd556f
size 1964195

26
stardict-gucharmap.patch Normal file
View File

@ -0,0 +1,26 @@
=== modified file 'configure.in'
--- configure.in 2008-07-10 17:42:44 +0000
+++ configure.in 2008-07-10 17:43:14 +0000
@@ -76,7 +76,7 @@
[enable_gucharmap=yes])
if test "x$enable_gucharmap" = "xyes" ; then
- PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0], have_gucharmap=yes, have_gucharmap=no)
+ PKG_CHECK_MODULES(GUCHARMAP, [gucharmap-2 >= 1.4.0], have_gucharmap=yes, have_gucharmap=no)
if test "x$have_gucharmap" = "xyes"; then
GUCHARMAP_CFLAGS="${GUCHARMAP_CFLAGS}"
GUCHARMAP_LIBS="${GUCHARMAP_LIBS}"
=== modified file 'stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp'
--- stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-07-10 17:42:44 +0000
+++ stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-07-10 18:18:06 +0000
@@ -237,7 +237,7 @@
/* canonical decomposition */
gunichar *decomposition;
gsize result_len;
- decomposition = gucharmap_unicode_canonical_decomposition (uc, &result_len);
+ decomposition = g_unicode_canonical_decomposition( uc, &result_len);
if (result_len != 1) {
definition += _("Canonical decomposition:");
definition += " ";

2
stardict-rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
# looks like rpmlint gets into trouble if using macros
addFilter("install-no-mkdir-buildroot")

View File

@ -0,0 +1,171 @@
diff -ur stardict-3.0.1.orig/src/docklet.cpp stardict-3.0.1/src/docklet.cpp
--- stardict-3.0.1.orig/src/docklet.cpp 2008-02-29 11:47:23.000000000 +0800
+++ stardict-3.0.1/src/docklet.cpp 2008-02-29 11:47:57.000000000 +0800
@@ -25,15 +25,15 @@
void DockLet::create_docklet()
{
docklet_ = egg_tray_icon_new("StarDict");
- box_ = gtk_event_box_new();
+ gtk_widget_add_events (GTK_WIDGET(docklet_), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
if (is_hide_state()) {
- gtk_widget_set_tooltip_text(box_, _("StarDict"));
+ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict"));
image_ = gtk_image_new_from_pixbuf(normal_icon_);
} else if (is_scan_on()) {
- gtk_widget_set_tooltip_text(box_, _("StarDict - Scanning"));
+ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Scanning"));
image_ = gtk_image_new_from_pixbuf(scan_icon_);
} else {
- gtk_widget_set_tooltip_text(box_, _("StarDict - Stopped"));
+ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Stopped"));
image_ = gtk_image_new_from_pixbuf(stop_icon_);
}
@@ -41,11 +41,10 @@
G_CALLBACK(on_embedded), this);
g_signal_connect(G_OBJECT(docklet_), "destroy",
G_CALLBACK(on_destroyed), this);
- g_signal_connect(G_OBJECT(box_), "button-press-event",
+ g_signal_connect(G_OBJECT(docklet_), "button-press-event",
G_CALLBACK(on_btn_press), this);
- gtk_container_add(GTK_CONTAINER(box_), image_);
- gtk_container_add(GTK_CONTAINER(docklet_), box_);
+ gtk_container_add(GTK_CONTAINER(docklet_), image_);
gtk_widget_show_all(GTK_WIDGET(docklet_));
/* ref the docklet_ before we bandy it about the place */
@@ -179,13 +178,13 @@
void DockLet::scan_on()
{
- gtk_widget_set_tooltip_text(box_, _("StarDict - Scanning"));
+ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Scanning"));
gtk_image_set_from_pixbuf(GTK_IMAGE(image_), scan_icon_);
}
void DockLet::scan_off()
{
- gtk_widget_set_tooltip_text(box_, _("StarDict - Stopped"));
+ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Stopped"));
gtk_image_set_from_pixbuf(GTK_IMAGE(image_), stop_icon_);
}
@@ -193,7 +192,7 @@
{
if (!image_)
return;
- gtk_widget_set_tooltip_text(box_, _("StarDict"));
+ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict"));
gtk_image_set_from_pixbuf(GTK_IMAGE(image_), normal_icon_);
}
diff -ur stardict-3.0.1.orig/src/docklet.h stardict-3.0.1/src/docklet.h
--- stardict-3.0.1.orig/src/docklet.h 2008-02-29 11:47:23.000000000 +0800
+++ stardict-3.0.1/src/docklet.h 2008-02-29 11:47:57.000000000 +0800
@@ -16,7 +16,6 @@
void set_scan_mode(bool);
private:
EggTrayIcon *docklet_;
- GtkWidget *box_;
GtkWidget *image_; //icon image.
typedef ResourceWrapper<GtkWidget, GtkWidget, gtk_widget_destroy> GMenu;
GMenu menu_;
diff -ur stardict-3.0.1.orig/src/eggtrayicon.c stardict-3.0.1/src/eggtrayicon.c
--- stardict-3.0.1.orig/src/eggtrayicon.c 2008-02-29 11:47:23.000000000 +0800
+++ stardict-3.0.1/src/eggtrayicon.c 2008-02-29 11:47:57.000000000 +0800
@@ -66,6 +66,8 @@
static void egg_tray_icon_realize (GtkWidget *widget);
static void egg_tray_icon_unrealize (GtkWidget *widget);
+static void egg_tray_icon_add (GtkContainer *container,
+ GtkWidget *widget);
#ifdef GDK_WINDOWING_X11
static void egg_tray_icon_update_manager_window (EggTrayIcon *icon,
@@ -113,6 +115,7 @@
{
GObjectClass *gobject_class = (GObjectClass *)klass;
GtkWidgetClass *widget_class = (GtkWidgetClass *)klass;
+ GtkContainerClass *container_class = (GtkContainerClass *)klass;
parent_class = g_type_class_peek_parent (klass);
@@ -121,6 +124,8 @@
widget_class->realize = egg_tray_icon_realize;
widget_class->unrealize = egg_tray_icon_unrealize;
+ container_class->add = egg_tray_icon_add;
+
g_object_class_install_property (gobject_class,
PROP_ORIENTATION,
g_param_spec_enum ("orientation",
@@ -159,6 +164,35 @@
}
#ifdef GDK_WINDOWING_X11
+static gboolean
+transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
+{
+ gdk_window_clear_area (widget->window, event->area.x, event->area.y,
+ event->area.width, event->area.height);
+ return FALSE;
+}
+
+static void
+make_transparent_again (GtkWidget *widget, GtkStyle *previous_style,
+ gpointer user_data)
+{
+ gdk_window_set_back_pixmap(widget->window, NULL, TRUE);
+}
+
+static void
+make_transparent (GtkWidget *widget, gpointer user_data)
+{
+ if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget))
+ return;
+
+ gtk_widget_set_app_paintable (widget, TRUE);
+ gtk_widget_set_double_buffered (widget, FALSE);
+ gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
+ g_signal_connect (widget, "expose_event",
+ G_CALLBACK (transparent_expose_event), NULL);
+ g_signal_connect_after (widget, "style_set",
+ G_CALLBACK (make_transparent_again), NULL);
+}
static void
egg_tray_icon_get_orientation_property (EggTrayIcon *icon)
@@ -238,10 +272,22 @@
}
return GDK_FILTER_CONTINUE;
}
-
+#else
+static void
+make_transparent (GtkWidget *widget, gpointer user_data)
+{
+}
#endif
static void
+egg_tray_icon_add (GtkContainer *container, GtkWidget *widget)
+{
+ g_signal_connect (widget, "realize",
+ G_CALLBACK (make_transparent), NULL);
+ GTK_CONTAINER_CLASS (parent_class)->add (container, widget);
+}
+
+static void
egg_tray_icon_unrealize (GtkWidget *widget)
{
#ifdef GDK_WINDOWING_X11
@@ -381,6 +427,8 @@
if (GTK_WIDGET_CLASS (parent_class)->realize)
GTK_WIDGET_CLASS (parent_class)->realize (widget);
+ make_transparent (widget, NULL);
+
screen = gtk_widget_get_screen (widget);
display = gdk_screen_get_display (screen);
xdisplay = gdk_x11_display_get_xdisplay (display);

170
stardict.changes Normal file
View File

@ -0,0 +1,170 @@
-------------------------------------------------------------------
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

14
stardict.desktop Normal file
View File

@ -0,0 +1,14 @@
[Desktop Entry]
Encoding=UTF-8
Name=StarDict
GenericName=Dictionary
GenericName[ru]=Словарь
Comment=Lookup words
Comment[ru]=Просмотр значения слова или фразы
Exec=stardict
Terminal=false
Type=Application
Icon=stardict
StartupNotify=true
Categories=Office;Dictionary;
X-GNOME-DocPath=stardict/stardict.xml

252
stardict.spec Normal file
View File

@ -0,0 +1,252 @@
#
# spec file for package stardict (Version 3.0.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
Name: stardict
Summary: A cross-platform and internationalized dictionary
Version: 3.0.1
Release: 59
License: GPL v2 or later
Group: Productivity/Office/Dictionary
Url: http://stardict.sourceforge.net
Source0: %{name}-%{version}.tar.bz2
Source1: stardict.desktop
Source2: stardict-rpmlintrc
Source3: ru.po
Source4: lt.po
Source5: LINGUAS
Patch0: stardict-2.4.8-dont-install-omf.patch
Patch1: stardict-3.0.1-festival.h-path-fix.patch
Patch2: stardict-3.0.1-includes.patch
Patch3: stardict-transparent_trayicon.patch
Patch4: configure-festival.diff
Patch5: stardict-gucharmap.patch
Patch6: fix_gethostbynamer.patch
Patch7: stardict-3.0.1-gcc44.patch
Requires: enchant festival espeak pulseaudio
BuildRequires: gcc-c++ gnome-common intltool libgnomeui-devel perl-XML-Parser scrollkeeper sgml-skel
BuildRequires: gucharmap-devel update-desktop-files
# new in version 3.x: festival and espeak support
BuildRequires: enchant-devel festival-devel libsigc++2-devel
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%gconf_schemas_prereq
%if 0%{?suse_version} > 1100
BuildRequires: espeak-devel
%else
BuildRequires: espeak
%endif
%else
%define prefix /opt/gnome
%define sysconfdir /etc%{prefix}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
StarDict is a Cross-Platform and international dictionary written in
Gtk2.
It has powerful features such as "Glob-style pattern matching", "Scan
selection word","Fuzzy query" etc.
Authors:
--------
Maintainers:
Hu Zheng <huzheng_001@163.com> http://forlinux.yeah.net
Contributors:
Alex Murygin <murygin@aitoc.com>
%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5
%patch6 -p1
%patch7 -p1
# Remove unneeded sigc++ header files to make it sure
# that we are using system-wide libsigc++
find src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f
cp %{SOURCE3} po/
cp %{SOURCE4} po/
cp %{SOURCE5} po/
%build
autoreconf -fi
%configure \
--disable-schemas-install \
%if 0%{?suse_version} < 1110
--disable-gucharmap \
%endif
--disable-advertisement \
--disable-updateinfo
%{__make} %{?jobs:-j%jobs}
%install
%if 0%{?suse_version} < 1030
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%endif
%makeinstall
find %buildroot%{_libdir}/stardict/plugins -name "*.la" -print0 | xargs -0 rm -rf {} \;
%find_lang %{name}
%if 0%{?suse_version} > 1020
%find_gconf_schemas
cat %{name}.lang %{name}.schemas_list >%{name}.lst
%else
%{__install} -d -m755 %buildroot%{sysconfdir}/gconf/schemas/
%{__mv} %buildroot%{_sysconfdir}/gconf/schemas/stardict.schemas %buildroot%{sysconfdir}/gconf/schemas/
cat %{name}.lang >%{name}.lst
%endif
install -D -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/applications/stardict.desktop
%suse_update_desktop_file stardict Office Dictionary
# save space, create symlinks for identical files
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%clean
rm -rf %buildroot
%if 0%{?suse_version} > 1020
%pre -f %{name}.schemas_pre
# Remove orphan file created by stardict.spec in SuSE <= 10.2.
# Can be removed after openSUSE 10.3.
if [ -f var/adm/SuSEconfig/run-scrollkeeper-update ]; then
rm -f var/adm/SuSEconfig/run-scrollkeeper-update 2>/dev/null
fi
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%else
%post
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
opt/gnome/bin/gconftool-2 --makefile-install-rule %{sysconfdir}/gconf/schemas/stardict.schemas >/dev/null
touch var/adm/SuSEconfig/run-scrollkeeper-update
%endif
%files -f %{name}.lst
%defattr(-,root,root)
%doc %{_mandir}/man?/*.*
%doc doc/FAQ doc/HACKING doc/HowToCreateDictionary README AUTHORS COPYING TODO
%{_libdir}/bonobo/servers/*
%{_libdir}/stardict
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/idl
%{_datadir}/omf
%{_datadir}/pixmaps/*.png
%{_datadir}/stardict
%if 0%{?suse_version} < 1030
%dir %{_libdir}/bonobo
%dir %{_libdir}/bonobo/servers
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%config %{sysconfdir}/gconf/schemas/stardict.schemas
%endif
%changelog
* Mon Sep 29 2008 lrupp@suse.de
- fix build on distributions with old Gucharmap library
* Wed Sep 17 2008 lrupp@suse.de
- fix buildrequires
- mark stardict.schemas as %%config
* Thu Jul 10 2008 maw@suse.de
- Add stardict-gucharmap.patch and run autoreconf -fi to reenable
gucharmap functionality.
* Thu Jul 10 2008 xwhu@suse.de
- fix configure.in for festival
* Sat Jun 28 2008 xwhu@suse.de
- disable gucharmap due to API change
* Tue Jan 29 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
* Wed Oct 31 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 2007 xwhu@novell.com
- Fix header files compatibility issues with gcc 4.3
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Mon Jun 18 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 07 2007 sbrabec@suse.cz
- Removed invalid desktop Category "Application" (#254654).
* Thu Mar 15 2007 sbrabec@suse.cz
- Fixed schemas installation, spec file cleanup (#254850).
* Mon Mar 12 2007 anonymous@anonymous
- Use gconf_schemas_prereq
* Mon Jan 08 2007 ro@suse.de
- fix localstatedir
* Mon Jan 08 2007 ro@suse.de
- GNOME moved to /usr
* Sat Oct 07 2006 aj@suse.de
- Cleanup BuildRequires.
- Build with RPM_OPT_FLAGS.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 xwhu@novell.com
- Initial build of 2.4.5