Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37745640
en ru br
ALT Linux repos
S:1.40-alt1
5.0: 1.35-alt2
4.1: 1.32-alt1
4.0: 1.32-alt0.M40.1
3.0: 1.0-alt1

Group :: Text tools
RPM: engcom

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: engcom
Version: 1.0
Release: alt1

Summary: The Open English-Russian Dictionary of Computer Terms
Summary(ru_RU.KOI8-R): Свободный англо-русский словарь компьютерных терминов

License: FDL
URL: http://www.etersoft.ru/engcom
Group: Text tools

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://etersoft.ru/download/%name-%version.tar.bz2
Source1: to-dict.sh
Source2: mueller2utf8
Source3: mueller2stardict

BuildArchitectures: noarch

# Please do not use buildreq

BuildPreReq: dict-tools perl-Unicode-Map8 perl-Unicode-String stardict-tools

%define dict_name engcom
%define dictdesc The Open English-Russian Dictionary of Computer Terms

%description
The %name package contains free (as speech) English-Russian
Dictionary of Computer Terms. It is not academic dictionary.

%description -l ru_RU.KOI8-R
Пакет %name содержит англо-русский словарь компьютерных
терминов, составленный по мотивам реальной жизни.

%package -n mova-%name

Summary: %dictdesc for mova
Summary(ru_RU.KOI8-R): Свободный англо-русский словарь компьютерных терминов для mova
Group: Text tools
Obsoletes: engcom engcom-mova
Provides: engcom engcom-mova
Requires: mova

%description -n mova-%name
The %name package contains free (with FDL license ) English-Russian
Dictionary of Computer Terms in mova format. It is not academic dictionary.

%description -n mova-%name -l ru_RU.KOI8-R
Пакет %name содержит свободный англо-русский словарь компьютерных
терминов в формате mova, составленный по мотивам реальной жизни,
содержанию компьютерной прессы и рассылок.

%package -n dict-%name

Summary: %dictdesc for dict dictionary
Summary(ru_RU.KOI8-R): Свободный англо-русский словарь компьютерных терминов в формате dict
Group: Text tools
Requires: dictd >= 1.7.1

%description -n dict-%name
The %name package contains free (with FDL license) English-Russian
Computer Dictionary in dict format. It is not academic dictionary.

%description -n dict-%name -l ru_RU.KOI8-R
Пакет %name содержит свободный англо-русский словарь компьютерных
терминов в формате словарей dictd, составленный по мотивам реальной жизни,
содержанию компьютерной прессы и рассылок.

%package -n stardict-%name

Summary: The Open English-Russian Dictionary of Computer Terms for stardict dictionary
Summary(ru_RU.KOI8-R): Свободный англо-русский словарь компьютерных терминов в формате stardict
Group: Text tools
Requires: stardict

%description -n stardict-%name
The %name package contains free (with FDL license) English-Russian
Computer Dictionary in stardict format. It is not academic dictionary.

%description -n stardict-%name -l ru_RU.KOI8-R
Пакет %name содержит свободный англо-русский словарь компьютерных
терминов в формате словарей stardict, составленный по мотивам реальной жизни,
содержанию компьютерной прессы и рассылок.

%prep
%setup -q

%build
export LANG=C
export TITLE="%dictdesc"
export URL="http://rulyx.narod.ru"
cd dict
make
mv EngCom.koi %dict_name.koi

# convert to dict

%SOURCE2 %dict_name.koi > %dict_name.utf8
pwd
export DICTFMT_OPT="--locale ru_RU.UTF-8"
%SOURCE1 --src-data %dict_name.utf8 %dict_name.data && rm -f %dict_name.notr
%SOURCE1 --data-dict %dict_name.data %dict_name && rm -f %dict_name.data
%SOURCE1 --expand-index %dict_name.index %dict_name.index.exp

# convert to stardict

#mova2dic %dict_name.utf8
cat %dict_name.koi | %SOURCE3 > stardict.txt
LANGUAGE=ru_RU.UTF-8 LC_CTYPE=ru_RU.UTF-8 oxford2dic stardict.txt
# correct size is very significally
size=`stat -c %s oxford.idxdata`
date=`date`
word=`cat %dict_name.koi | wc -l`
cat << EOF > oxford.ifo
StarDict's dict ifo file
version=2.4.2
wordcount=$word
author=Vitaly Lipatov
email=lav at etersoft.ru
website=http://etersoft.ru
date=$date
idxfilesize=$size
bookname=%dict_name
description=%dictdesc
sametypesequence=m
EOF

cp oxford.idxdata oxford.idx
gzip oxford.idx
dictzip oxford.dict
cd -

%install

cd doc
for i in *
do
for fd in dict mova stardict
do
install -D -m644 $i $RPM_BUILD_ROOT/%_docdir/$fd-%name-%version/$i
done
done
cd -

cd dict

# install mova files

install -p -m644 -D %dict_name.koi $RPM_BUILD_ROOT/%_datadir/dict/%dict_name.koi

# install dict files

cp -f %dict_name.index.exp %dict_name.index
for i in dict.dz index
do
install -p -m644 -D %dict_name.$i $RPM_BUILD_ROOT/%_datadir/dictd/%dict_name.$i
done

# install stardict files

for i in dict.dz idx.gz ifo
do
install -p -m644 -D oxford.$i $RPM_BUILD_ROOT%_datadir/stardict/dic/%dict_name.$i
done

%post -n dict-%name
/usr/sbin/dictdconfig -w
%_initdir/dictd condreload

%postun -n dict-%name
/usr/sbin/dictdconfig -w
%_initdir/dictd condreload

%files -n mova-%name
%docdir %_docdir/mova-%name-%version
%_docdir/mova-%name-%version
%_datadir/dict/*.koi

%files -n dict-%name
%docdir %_docdir/dict-%name-%version
%_docdir/dict-%name-%version
%_datadir/dictd/*

%files -n stardict-%name
%docdir %_docdir/stardict-%name-%version
%_docdir/stardict-%name-%version
%_datadir/stardict/dic/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin