Репозиторий Sisyphus
Последнее обновление: 16 апреля 2021 | Пакетов: 17844 | Посещений: 20731729
en ru br
Репозитории ALT
S:0.48-alt6
5.1: 0.48-alt5
4.1: 0.48-alt4
4.0: 0.48-alt4
3.0: 0.48-alt2
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: dict-gcide

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define dictname gcide
%define dictdesc GCIDE - The Collaborative International Dictionary of English
%define dictdir %_datadir/dictd

Name: dict-gcide
Version: 0.48
Release: alt6

Summary: GCIDE - The Collaborative International Dictionary of English

License: GPL
Group: Text tools
#Group: Applications/Dictionaries
Url: http://www.ibiblio.org/webster/GNU_dictionary_project.html

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: ftp://ftp.gnu.org/gnu/gcide/%name-%version.tar.bz2
Patch: %name-%version.debian.diff.gz
Patch1: %name-%version.patch

BuildArchitectures: noarch

# Please do not use buildreq

BuildPreReq: flex dict-tools stardict-tools

%description
A Comprehensive English Dictionary

This package contains the GNU version of the Collaborative
International Dictionary of English, formatted for use by the
dictionary server in the dictd package.  The GCIDE contains the
full text of the 1913 Webster's Unabridged Dictionary, supplemented by
many definitions from WordNet, the Century Dictionary, 1906, and many
additional definitions contributed by volunteers.

The definitions in the core of this dictionary are at least 85 years
old, so they can not be expected to be politically correct by
contemporary standards, and no attempt has been, or will be, made to
make them so.

%package -n stardict-%dictname
Summary: GCIDE - The Collaborative International Dictionary of English
#Group: Applications/Dictionaries
Group: Text tools
Obsoletes: stardict-%name
Provides: stardict-%name

%description -n stardict-%dictname
A Comprehensive English Dictionary for stardict

This package contains the GNU version of the Collaborative
International Dictionary of English, formatted for use by the
dictionary server in the dictd package.  The GCIDE contains the
full text of the 1913 Webster's Unabridged Dictionary, supplemented by
many definitions from WordNet, the Century Dictionary, 1906, and many
additional definitions contributed by volunteers.

The definitions in the core of this dictionary are at least 85 years
old, so they can not be expected to be politically correct by
contemporary standards, and no attempt has been, or will be, made to
make them so.

%prep
%setup -q
%patch1 -p0

%build
%configure

%make
# without zipping here
%make DICTZIP=cat db

# prepare stardict


# dictd to stardict conversion

word=`dictd2dic %dictname | grep wordcount | cut -d " " -f 2`
size=`cat dict*%dictname.idx | wc -c`
gzip dict*%dictname.idx

cat << EOF > %dictname.ifo
StarDict's dict ifo file
version=2.4.2
wordcount=$word
website=ftp://ftp.gnu.org/gnu/gcide
date=%version
idxfilesize=$size
bookname=%dictname
description=%dictdesc
sametypesequence=m
EOF

# compress dict file

dictzip %dictname.dict

%install
install -d %buildroot{%_sysconfdir/dictd,%dictdir}
%makeinstall dictdir=%buildroot%dictdir

echo "# %dictdesc
database %dictname {
data  \"%dictdir/%dictname.dict.dz\"
index \"%dictdir/%dictname.index\"
}" > %buildroot%_sysconfdir/dictd/%dictname.dictconf

# stardict

install -d %buildroot%_datadir/stardict/dic

install -m 644 dict*%dictname.dict.dz %buildroot%_datadir/stardict/dic/%dictname.dict.dz
install -m 644 dict*%dictname.idx.gz %buildroot%_datadir/stardict/dic/%dictname.idx.gz
install -m 644 %dictname.ifo %buildroot%_datadir/stardict/dic/%dictname.ifo


%files
#%_sysconfdir/dictd/%dictname.dictconf
%dictdir/%dictname.*

%files -n stardict-%dictname
%_datadir/stardict/dic/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin