Sisyphus repositório
Última atualização: 25 maio 2022 | SRPMs: 17610 | Visitas: 23691314
en ru br
ALT Linux repositórios
5.0: 3.0.1-alt3
4.1: 3.0.0-alt1
4.0: 2.4.8-alt1
3.0: 2.4.5-alt1

Group :: Sistema/Internacionalização
RPM: stardict

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: stardict
Version: 3.0.6
Release: alt1

Summary: StarDict dictionary
# The entire source code is GPLv3+ except
# dict/src/lib/ctype-{uca,utf8}.cpp which is GPLv2+
# dict/src/lib/ctype-uca.cpp which is GPLv2+
# dict/src/eggaccelerators.{h,cpp which is GPLv2+
# dict/stardict-plugins/stardict-wordnet-plugin/tenis.h is CPL
# refer to README
License: GPLv3+ and GPLv2+ and CPL
Group: System/Internationalization


Source: %name-%version.tar
Source3: docklet_normal.png
Source4: docklet_scan.png
Source5: docklet_stop.png
Source6: slovnyktodict.awk

Patch1: stardict-3.0.3-alt-dsl2dict.patch
Patch2: stardict-3.0.3-alt-linkage.patch
Patch3: stardict-3.0.4-alt-desktop.patch
Patch4: stardict-3.0.5-alt-tabfile.patch

Provides: %name-common = %version
Obsoletes: %name-common < %version
Provides: %name-gtk = %version
Obsoletes: %name-gtk < %version
Provides: %name-gnome = %version
Obsoletes: %name-gnome < %version

%def_disable dictdotcn

# Automatically added by buildreq on Mon May 28 2012

# optimized out: docbook-dtds fontconfig fontconfig-devel glib2-devel gnome-doc-utils-xslt libICE-devel libX11-devel libatk-devel libcairo-devel libfreetype-devel libgdk-pixbuf libgdk-pixbuf-devel libgio-devel libgpg-error libgtk+2-devel libpango-devel libstdc++-devel libwayland-client libwayland-server perl-Encode perl-XML-Parser pkg-config python-base python-module-libxml2 python-modules python-modules-encodings xml-common xml-utils xorg-xproto-devel xsltproc zlib-devel
BuildRequires: gcc-c++ gnome-doc-utils hardlink imake intltool libSM-devel libenchant-devel libespeak-devel libgucharmap7-devel libmysqlclient-devel libsigc++2-devel libxml2-devel xorg-cf-files

StarDict is a Cross-Platform and international dictionary written in
Gtk2.  It has powerful features such as glob-style pattern matching,
scan selection, and fuzzy matching.

%package tools
Summary: Tools for making dictionary files for stardict
Group: Development/Other

%description tools
This package contains various tools for converting dictionaries in
stardict format.

%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 netdict plugin for stardict,
querying via network.
Warning: this package is insecure. Use at your own risk.

%add_optflags -std=gnu++11

# remove bundled sigc++ header files
rm -r dict/src/sigc++*
sed -i '/src\/sigc++/d' dict/
sed -i 's/ sigc++ sigc++config//' dict/src/
# remove bundled libtool files
rm */m4/{lt*,libtool}.m4 dict/m4/{gnome-doc-utils,intltool}.m4
# remove use of gconf macros
sed -i '/AM_GCONF_SOURCE_2/d' dict/

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
install -pm644 %_sourcedir/docklet_*.png dict/src/pixmaps/

export CPPFLAGS="$(getconf LFS_CFLAGS)"
%configure \
--enable-spell \
--enable-gucharmap \
--enable-espeak \
--disable-gnome-support \
--disable-festival \
--disable-man \
--disable-updateinfo \
--disable-advertisement \
--disable-gpe-support \
--disable-maemo-support \
%{subst_enable dictdotcn} \

%makeinstall_std scrollkeeper_localstate_dir=%buildroot%_var/lib/scrollkeeper
find %buildroot%_libdir -name '*.la' -delete

cd tools/src
install -pm755 *2dic stardict-dict-update stardict-verify \
      stardict-repair stardict2txt tabfile \
install -pm755 mova %buildroot%_bindir/mova2dic
cd - >/dev/null

install -pm755 %_sourcedir/{slovnyktodict.awk,} \

%find_lang --with-gnome %name

hardlink -cv %buildroot%_datadir

%set_verify_elf_method strict,lint=relaxed

%files -f %name.lang
%dir %_libdir/%name
%dir %_libdir/%name/plugins
%doc dict/AUTHORS dict/ChangeLog
%doc dict/doc/{StarDictFileFormat,FAQ,HACKING,HowToCreateDictionary}

%files tools
%exclude %_bindir/%name
%doc tools/AUTHORS tools/ChangeLog tools/README tools/src/example.ifo

%files plugin-espeak

%files plugin-gucharmap

%files plugin-spell

%if_enabled dictdotcn
%files plugin-dictdotcn


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009