Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37498938
en ru br
ALT Linux repositórios
S:3.0.6-alt1
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
URL: http://stardict-4.sourceforge.net

# http://stardict-3.googlecode.com/files/%name-%version.tar.bz2

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

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

%description
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 dict.cn via network.
Warning: this package is insecure. Use at your own risk.

%add_optflags -std=gnu++11

%prep
%setup
# remove bundled sigc++ header files
rm -r dict/src/sigc++*
sed -i '/src\/sigc++/d' dict/configure.ac
sed -i 's/ sigc++ sigc++config//' dict/src/Makefile.am
# 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/configure.ac

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

%build
%autoreconf
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} \
#
%make_build

%install
%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 \
%buildroot%_bindir/
install -pm755 mova %buildroot%_bindir/mova2dic
cd - >/dev/null

install -pm755 %_sourcedir/{slovnyktodict.awk,mueller2stardict.sh} \
%buildroot%_bindir/

%find_lang --with-gnome %name

hardlink -cv %buildroot%_datadir

%set_verify_elf_method strict,lint=relaxed

%files -f %name.lang
%_bindir/%name
%_datadir/%name
%_pixmapsdir/*
%_desktopdir/%name.desktop
%dir %_libdir/%name
%dir %_libdir/%name/plugins
%_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.*
%_man1dir/*
%doc dict/AUTHORS dict/ChangeLog
%doc dict/doc/{StarDictFileFormat,FAQ,HACKING,HowToCreateDictionary}

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

%files plugin-espeak
%_libdir/%name/plugins/stardict_espeak.*

%files plugin-gucharmap
%_libdir/%name/plugins/stardict_gucharmap.*

%files plugin-spell
%_libdir/%name/plugins/stardict_spell.*

%if_enabled dictdotcn
%files plugin-dictdotcn
%_libdir/%name/plugins/stardict_dictdotcn.*
%endif

%changelog

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