%def_enable stardictgtk
%if_enabled stardictgtk
%define stardictgtkinstalldir %_builddir/%name-%version/gtkinstalldir/
%endif
Name: stardict
Version: 3.0.1
Release: alt3
Summary: StarDict dictionary
Summary(ru_RU.CP1251): StarDict \xf1\xeb\xee\xe2\xe0\xf0\xfc
License: GPL
Group: System/Internationalization
Url: http://%name.sourceforge.net
Requires: %{name}-common = %version
Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.bz2
Source1: stardict-gtk.desktop
Source2: ru.po
Patch0: stardict-3.0.1-alt-netdict.patch
Patch1: stardict-3.0.1-alt-gucharmap.patch
Patch2: 05_g++-4.3.dpatch
BuildPreReq: menu-devel
# Automatically added by buildreq on Mon Apr 21 2008
BuildRequires: gcc-c++ GConf imake libavahi-glib libdbus-glib libenchant-devel libespeak-devel libgnome-keyring libgucharmap-devel libsigc++2.0-devel libSM-devel linux-libc-headers perl-XML-Parser xorg-cf-files libGConf-devel libgnomeui-devel librarian
%description
StarDict is an international dictionary written for the GNOME environment.
It has evolved from Motif/Lesstif based Chinese dictionary, into a full
featured international dictionary written in GTK+. Here are some of its
features:
- Instantly popup word definition when word is selected on screen
- Wildcard search ( e.g. "wo?d*" )
- Fuzzy query
- Dock into notification area
- Find text in word definition
- Many dictionaries available, including freedict, *quick, xdict,
dict.org dictionaries
%description -l ru_RU.CP1251
StarDict \xfd\xf2\xee \xe8\xed\xf2\xe5\xf0\xed\xe0\xf6\xe8\xee\xed\xe0\xeb\xfc\xed\xfb\xe9 \xf1\xeb\xee\xe2\xe0\xf0\xfc \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xfb\xe9 \xe4\xeb\xff GNOME \xee\xea\xf0\xf3\xe6\xe5\xed\xe8\xff.
\xce\xed \xf0\xe0\xe7\xe2\xe8\xeb\xf1\xff \xe8\xe7 \xee\xf1\xed\xee\xe2\xe0\xed\xed\xee\xe3\xee \xed\xe0 Motif/Lesstif \xea\xe8\xf2\xe0\xe9\xf1\xea\xee\xec \xf1\xeb\xee\xe2\xe0\xf0\xe5, \xe2 \xef\xee\xeb\xed\xee\xf6\xe5\xed\xed\xfb\xe9
\xec\xe5\xe6\xe4\xf3\xed\xe0\xf0\xee\xe4\xed\xfb\xe9 \xf1\xeb\xee\xe2\xe0\xf0\xfc \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xfb\xe9 \xed\xe0 GTK+. \xd1\xef\xe8\xf1\xee\xea \xed\xe5\xea\xee\xf2\xee\xf0\xfb\xf5 \xee\xf1\xee\xe1\xe5\xed\xed\xee\xf1\xf2\xe5\xe9:
- \xc2\xf1\xef\xeb\xfb\xe2\xe0\xfe\xf9\xe5\xe5 \xee\xea\xed\xee \xf1 \xef\xe5\xf0\xe5\xe2\xee\xe4\xee\xec \xef\xf0\xe8 \xe2\xfb\xe4\xe5\xeb\xe5\xed\xe8\xe5 \xf1\xeb\xee\xe2\xe0 \xe3\xe4\xe5-\xeb\xe8\xe1\xee.
- \xcf\xee\xe8\xf1\xea \xef\xee \xf8\xe0\xe1\xeb\xee\xed\xf3 ( \xed\xe0\xef\xf0\xe8\xec\xe5\xf0 "wo?d*" )
- \xcd\xe5\xf7\xe5\xf2\xea\xe8\xe9 \xe7\xe0\xef\xf0\xee\xf1
- Dock \xe2 \xee\xe1\xeb\xe0\xf1\xf2\xfc \xf3\xe2\xe5\xe4\xee\xec\xeb\xe5\xed\xe8\xff
- \xcf\xee\xe8\xf1\xea \xf2\xe5\xea\xf1\xf2\xe0 \xe2 \xef\xe5\xf0\xe5\xe2\xee\xe4\xe5 \xf1\xeb\xee\xe2\xe0
- \xd1\xf3\xf9\xe5\xf1\xf2\xe2\xee\xe2\xe0\xed\xe8\xe5 \xe1\xee\xeb\xfc\xf8\xee\xe3\xee \xea\xee\xeb\xe8\xf7\xe5\xf1\xf2\xe2\xe0 \xf1\xeb\xee\xe2\xe0\xf0\xe5\xe9, \xe2\xea\xeb\xfe\xf7\xe0\xff freedict, *quick, xdict,
dict.org \xf1\xeb\xee\xe2\xe0\xf0\xe8
%package gnome
Summary: StarDict dictionary
Summary(ru_RU.CP1251): StarDict \xf1\xeb\xee\xe2\xe0\xf0\xfc
Group: System/Internationalization
Requires: %{name}-common = %version
Provides: %name = %version-%release
%description gnome
StarDict is an international dictionary written for the GNOME environment.
It has evolved from Motif/Lesstif based Chinese dictionary, into a full
featured international dictionary written in GTK+. Here are some of its
features:
- Instantly popup word definition when word is selected on screen
- Wildcard search ( e.g. "wo?d*" )
- Fuzzy query
- Dock into notification area
- Find text in word definition
- Many dictionaries available, including freedict, *quick, xdict,
dict.org dictionaries
%description -l ru_RU.CP1251 gnome
StarDict \xfd\xf2\xee \xe8\xed\xf2\xe5\xf0\xed\xe0\xf6\xe8\xee\xed\xe0\xeb\xfc\xed\xfb\xe9 \xf1\xeb\xee\xe2\xe0\xf0\xfc \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xfb\xe9 \xe4\xeb\xff GNOME \xee\xea\xf0\xf3\xe6\xe5\xed\xe8\xff.
\xce\xed \xf0\xe0\xe7\xe2\xe8\xeb\xf1\xff \xe8\xe7 \xee\xf1\xed\xee\xe2\xe0\xed\xed\xee\xe3\xee \xed\xe0 Motif/Lesstif \xea\xe8\xf2\xe0\xe9\xf1\xea\xee\xec \xf1\xeb\xee\xe2\xe0\xf0\xe5, \xe2 \xef\xee\xeb\xed\xee\xf6\xe5\xed\xed\xfb\xe9
\xec\xe5\xe6\xe4\xf3\xed\xe0\xf0\xee\xe4\xed\xfb\xe9 \xf1\xeb\xee\xe2\xe0\xf0\xfc \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xfb\xe9 \xed\xe0 GTK+. \xd1\xef\xe8\xf1\xee\xea \xed\xe5\xea\xee\xf2\xee\xf0\xfb\xf5 \xee\xf1\xee\xe1\xe5\xed\xed\xee\xf1\xf2\xe5\xe9:
- \xc2\xf1\xef\xeb\xfb\xe2\xe0\xfe\xf9\xe5\xe5 \xee\xea\xed\xee \xf1 \xef\xe5\xf0\xe5\xe2\xee\xe4\xee\xec \xef\xf0\xe8 \xe2\xfb\xe4\xe5\xeb\xe5\xed\xe8\xe5 \xf1\xeb\xee\xe2\xe0 \xe3\xe4\xe5-\xeb\xe8\xe1\xee.
- \xcf\xee\xe8\xf1\xea \xef\xee \xf8\xe0\xe1\xeb\xee\xed\xf3 ( \xed\xe0\xef\xf0\xe8\xec\xe5\xf0 "wo?d*" )
- \xcd\xe5\xf7\xe5\xf2\xea\xe8\xe9 \xe7\xe0\xef\xf0\xee\xf1
- Dock \xe2 \xee\xe1\xeb\xe0\xf1\xf2\xfc \xf3\xe2\xe5\xe4\xee\xec\xeb\xe5\xed\xe8\xff
- \xcf\xee\xe8\xf1\xea \xf2\xe5\xea\xf1\xf2\xe0 \xe2 \xef\xe5\xf0\xe5\xe2\xee\xe4\xe5 \xf1\xeb\xee\xe2\xe0
- \xd1\xf3\xf9\xe5\xf1\xf2\xe2\xee\xe2\xe0\xed\xe8\xe5 \xe1\xee\xeb\xfc\xf8\xee\xe3\xee \xea\xee\xeb\xe8\xf7\xe5\xf1\xf2\xe2\xe0 \xf1\xeb\xee\xe2\xe0\xf0\xe5\xe9, \xe2\xea\xeb\xfe\xf7\xe0\xff freedict, *quick, xdict,
dict.org \xf1\xeb\xee\xe2\xe0\xf0\xe8
%package gtk
Summary: StarDict dictionary gtk version
Summary(ru_RU.CP1251): StarDict \xf1\xeb\xee\xe2\xe0\xf0\xfc gtk \xe2\xe5\xf0\xf1\xe8\xff
Group: System/Internationalization
Requires: %{name}-common = %version
Provides: %name = %version-%release
%description gtk
StarDict is an international dictionary written for the GNOME environment.
It has evolved from Motif/Lesstif based Chinese dictionary, into a full
featured international dictionary written in GTK+. Here are some of its
features:
- Instantly popup word definition when word is selected on screen
- Wildcard search ( e.g. "wo?d*" )
- Fuzzy query
- Dock into notification area
- Find text in word definition
- Many dictionaries available, including freedict, *quick, xdict,
dict.org dictionaries
This package contains version built without GNOME support.
%description -l ru_RU.CP1251 gtk
StarDict \xfd\xf2\xee \xe8\xed\xf2\xe5\xf0\xed\xe0\xf6\xe8\xee\xed\xe0\xeb\xfc\xed\xfb\xe9 \xf1\xeb\xee\xe2\xe0\xf0\xfc \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xfb\xe9 \xe4\xeb\xff GNOME \xee\xea\xf0\xf3\xe6\xe5\xed\xe8\xff.
\xce\xed \xf0\xe0\xe7\xe2\xe8\xeb\xf1\xff \xe8\xe7 \xee\xf1\xed\xee\xe2\xe0\xed\xed\xee\xe3\xee \xed\xe0 Motif/Lesstif \xea\xe8\xf2\xe0\xe9\xf1\xea\xee\xec \xf1\xeb\xee\xe2\xe0\xf0\xe5, \xe2 \xef\xee\xeb\xed\xee\xf6\xe5\xed\xed\xfb\xe9
\xec\xe5\xe6\xe4\xf3\xed\xe0\xf0\xee\xe4\xed\xfb\xe9 \xf1\xeb\xee\xe2\xe0\xf0\xfc \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xfb\xe9 \xed\xe0 GTK+. \xd1\xef\xe8\xf1\xee\xea \xed\xe5\xea\xee\xf2\xee\xf0\xfb\xf5 \xee\xf1\xee\xe1\xe5\xed\xed\xee\xf1\xf2\xe5\xe9:
- \xc2\xf1\xef\xeb\xfb\xe2\xe0\xfe\xf9\xe5\xe5 \xee\xea\xed\xee \xf1 \xef\xe5\xf0\xe5\xe2\xee\xe4\xee\xec \xef\xf0\xe8 \xe2\xfb\xe4\xe5\xeb\xe5\xed\xe8\xe5 \xf1\xeb\xee\xe2\xe0 \xe3\xe4\xe5-\xeb\xe8\xe1\xee.
- \xcf\xee\xe8\xf1\xea \xef\xee \xf8\xe0\xe1\xeb\xee\xed\xf3 ( \xed\xe0\xef\xf0\xe8\xec\xe5\xf0 "wo?d*" )
- \xcd\xe5\xf7\xe5\xf2\xea\xe8\xe9 \xe7\xe0\xef\xf0\xee\xf1
- Dock \xe2 \xee\xe1\xeb\xe0\xf1\xf2\xfc \xf3\xe2\xe5\xe4\xee\xec\xeb\xe5\xed\xe8\xff
- \xcf\xee\xe8\xf1\xea \xf2\xe5\xea\xf1\xf2\xe0 \xe2 \xef\xe5\xf0\xe5\xe2\xee\xe4\xe5 \xf1\xeb\xee\xe2\xe0
- \xd1\xf3\xf9\xe5\xf1\xf2\xe2\xee\xe2\xe0\xed\xe8\xe5 \xe1\xee\xeb\xfc\xf8\xee\xe3\xee \xea\xee\xeb\xe8\xf7\xe5\xf1\xf2\xe2\xe0 \xf1\xeb\xee\xe2\xe0\xf0\xe5\xe9, \xe2\xea\xeb\xfe\xf7\xe0\xff freedict, *quick, xdict,
dict.org \xf1\xeb\xee\xe2\xe0\xf0\xe8
\xc4\xe0\xed\xed\xfb\xe9 \xef\xe0\xea\xe5\xf2 \xf1\xee\xe4\xe5\xf0\xe6\xe8\xf2 \xe2\xe5\xf0\xf1\xe8\xfe, \xf1\xee\xe1\xf0\xe0\xed\xed\xf3\xfe \xe1\xe5\xe7 \xef\xee\xe4\xe4\xe5\xf0\xe6\xea\xe8 GNOME.
%package common
Summary: Common files for both stardict and stardict-gtk
Summary(ru_RU.CP1251): \xce\xe1\xf9\xe8\xe5 \xf4\xe0\xe9\xeb\xfb \xe4\xeb\xff stardict \xe8 stardict-gtk
Group: Development/Other
Conflicts: %name < 2.4.5
%description common
This package contains common files for both stardict and stardict-gtk
Also contains some plugins:
* html_parsedata
* powerword_parsedata
* wiki_parsedata
* xdxf_parsedata
%description -l ru_RU.CP1251 common
\xdd\xf2\xee\xf2 \xef\xe0\xea\xe5\xf2 \xf1\xee\xe4\xe5\xf0\xe6\xe8\xf2 \xee\xe1\xf9\xe8\xe5 \xf4\xe0\xe9\xeb\xfb \xe4\xeb\xff stardict \xe8 stardict-gtk
\xd2\xe0\xea\xe6\xe5 \xf1\xee\xe4\xe5\xf0\xe6\xe8\xf2 \xf0\xff\xe4 \xef\xeb\xe0\xe3\xe8\xed\xee\xe2:
* html_parsedata
* powerword_parsedata
* wiki_parsedata
* xdxf_parsedata
%package plugin-espeak
Summary: Espeak plugin
Group: System/Internationalization
Requires: %{name} = %version-%release
%description plugin-espeak
This package contains espeak plugin for stardict
%package plugin-gucharmap
Summary: Gucharmap plugin
Group: System/Internationalization
Requires: %{name} = %version-%release
%description plugin-gucharmap
This package contains gucharmap plugin for stardict
%package plugin-spell
Summary: Spell plugin
Group: System/Internationalization
Requires: %{name} = %version-%release
%description plugin-spell
This package contains spell plugin for stardict
%package plugin-dictdotcn
Summary: dictdotcn plugin
Group: System/Internationalization
Requires: %{name} = %version-%release
%description plugin-dictdotcn
This package contains dictdotcn plugin for stardict
%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1
%__install -p -m644 %SOURCE2 po/ru.po
%build
%__aclocal -I m4
%__autoheader
%__automake --add-missing --copy
%__autoconf
%if_enabled stardictgtk
export LIBS=-lgthread-2.0
%configure \
--disable-gnome-support \
--enable-spell \
--enable-gucharmap \
--enable-espeak \
--disable-festival \
--disable-man \
--disable-updateinfo \
--disable-advertisement \
--disable-gpe-support \
--disable-maemo-support
# libFestival still not packaged so don't add this feature
%make_build
%make_install install DESTDIR=%stardictgtkinstalldir
%endif
make clean
%configure \
--disable-schemas-install \
--enable-spell \
--enable-gucharmap \
--enable-espeak \
--disable-man \
--disable-updateinfo \
--disable-advertisement \
--disable-festival \
--disable-gpe-support \
--disable-maemo-support
%make_build
%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %make_install DESTDIR=%buildroot \
scrollkeeper_localstate_dir=%buildroot%_var/lib/scrollkeeper \
install
%if_enabled stardictgtk
%__install -p gtkinstalldir/usr/bin/stardict %buildroot%_bindir/stardict-gtk
%__install -p -m644 %SOURCE1 %buildroot%_datadir/applications/
%endif
%find_lang --with-gnome %name
%postun -n stardict-gtk
%clean_menus
%post -n stardict-gtk
%update_menus
%post gnome
%update_scrollkeeper
%gconf2_install %name
%update_menus
%postun gnome
%clean_scrollkeeper
%clean_menus
%files -f %name.lang common
%_datadir/%name
%_datadir/pixmaps/*
%_man1dir/*
%_libdir/%name/plugins/stardict_html_parsedata.*
%_libdir/%name/plugins/stardict_powerword_parsedata.*
%_libdir/%name/plugins/stardict_wiki_parsedata.*
%_libdir/%name/plugins/stardict_xdxf_parsedata.*
%_libdir/%name/plugins/stardict_qqwry.*
%_libdir/%name/plugins/stardict_wordnet.*
%_libdir/%name/plugins/stardict_wordnet_parsedata.*
%doc AUTHORS ChangeLog INSTALL NEWS README TODO
%doc doc/{StarDictFileFormat,FAQ,HACKING,HowToCreateDictionary}
%files gnome
%_bindir/%name
%_datadir/applications/%name.desktop
%_datadir/idl/*
%_libdir/bonobo/servers/*
%config %_sysconfdir/gconf/schemas/*.schemas
%if_enabled stardictgtk
%files gtk
%_bindir/%{name}-gtk
%_datadir/applications/%{name}-gtk.desktop
%endif
%files plugin-espeak
%_libdir/%name/plugins/stardict_espeak.*
%files plugin-gucharmap
%_libdir/%name/plugins/stardict_gucharmap.*
%files plugin-spell
%_libdir/%name/plugins/stardict_spell.*
%files plugin-dictdotcn
%_libdir/%name/plugins/stardict_dictdotcn.*
%changelog
* Fri Nov 14 2008 Alex Murygin <murygin@altlinux.ru> 3.0.1-alt3
- added stardict-3.0.1-alt-gucharmap.patch
- added 05_g++-4.3.dpatch (from debian)
- deactivated man plugin due to locale problem [17918]
- deactivated updateinfo and advertisement plugin
* Thu Aug 14 2008 Alex Murygin <murygin@altlinux.ru> 3.0.1-alt2
- disabled network dictionaries be default [16436]
- packed plugin-dictdotcn and plugin-update_info as separate package [16436]
* Mon Apr 21 2008 Alex Murygin <murygin@altlinux.ru> 3.0.1-alt1
- new vesrion [13847]
- added patch for menu macros
- removed advertisement plugin [13542]
- added libGConf-devel to buildreq (gconf2_install macros)
- added librarian to buildreq (scrollkeeper-preinstall)
- enabled espeak plugins
- added new plugins to common
dictdotcn
qqwry
wordnet
wordnet_parsedata
- removed patches
stardict-3.0.0-alt-gtk.patch
stardict-3.0.0-espeak.patch
stardict-3.0.0-floatwin.patch
* Tue Nov 06 2007 Alex Murygin <murygin@altlinux.ru> 3.0.0-alt1
- new version
- added new translation
- spec cleaning
- fixed 12871 (wrong category for gtk version)
- fixed 12282 (menu file generation)
- added stardict-3.0.0-alt-gtk.patch
- added stardict-3.0.0-espeak.patch (from src.rpm of Hu Zheng)
- added stardict-3.0.0-floatwin.patch (from src.rpm of Hu Zheng)
- added new ru translation
- added plugins (new functionality)
most of them are in common package
advertisement
html_parsedata
man
powerword_parsedata
update_info
wiki_parsedata
xdxf_parsedata
and some are in separate packages
plugin-espeak (disabled by default due to libespeak-devel wrong packaging)
plugin-gucharmap
plugin-spell
* Thu Jul 13 2006 Alex Murygin <murygin@altlinux.ru> 2.4.8-alt1
- new version
- corrected name and exec for gtk version in menu [9755]
- tools package moved to separate package (upstream)
- new docs added
* Thu Jan 19 2006 Alex Murygin <murygin@altlinux.ru> 2.4.6-alt1
- new version
- added make clean between making gtk and gnome versions
- added following files into tools package and updated description
stardict_verify - check installed dictionaries for errors
hanzim2dict.py - as an example for making stardict dictionaries with python help
- I didn't add the following tools because I didn't know if anybody asked for them
21tech
buddhist
directory2treedic
ec50
jdictionary
jm2stardict.py
kdic
olddic2newdic
powerword
soothill
tabfile
xmlinout
* Mon Aug 08 2005 Alex Murygin <murygin@altlinux.ru> 2.4.5-alt2
- added conflict to stardict < 2.4.5 for stardict-common
* Mon Aug 01 2005 Alex Murygin <murygin@altlinux.ru> 2.4.5-alt1
- new version
- added stardict-gtk package
- renamed main package to stardict-gnome
- moved common files to stardict-common package
* Sat Jun 18 2005 Alex Murygin <murygin@altlinux.ru> 2.4.4-alt1
- new version
* Thu Nov 11 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt4
- changed menu group to "Applications/Text tools"
* Thu Jul 29 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt3
- fixed menu
- changed summary (thanks Abel Cheung - Mandrake)
- added russian summary/description
* Thu Apr 29 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt2
- removed -DGTK_DISABLE_DEPRECATED
* Tue Mar 16 2004 Alex Murygin <murygin@altlinux.ru> 2.4.3-alt1
- new version
- added mova2dic to tools
* Thu Nov 20 2003 Alex Murygin <murygin@altlinux.ru> 2.4.2-alt1
- new version
- added stardict_dict_update to %{name}-tools
- deleted example.idxhead and added example.ifo
* Fri Aug 29 2003 Alex Murygin <murygin@altlinux.ru> 2.4.0-alt1
- new version
- regenerated buildreq
* Sun Jul 06 2003 Alex Murygin <murygin@altlinux.ru> 2.2.1-alt1
- 2.2.1
* Mon Jun 09 2003 Alex Murygin <murygin@altlinux.ru> 2.2.0-alt2
- new version without version incrementation
* Sun Jun 01 2003 Alex Murygin <murygin@altlinux.ru> 2.2.0-alt1
- new version
* Wed May 28 2003 Alex Murygin <murygin@altlinux.ru> 2.1.0-alt2
- fixed clean_scrollkeeper postun script
* Wed May 21 2003 Alex Murygin <murygin@altlinux.ru> 2.1.0-alt1
- new version
- added package startdict-tools
* Sun May 04 2003 Alex Murygin <murygin@altlinux.ru> 2.0.0-alt1
- Initial revision.