Sisyphus repository
Last update: 22 october 2020 | SRPMs: 17699 | Visits: 19462072
en ru br
ALT Linux repos
S:1.0-alt8
5.0: 1.0-alt6
4.1: 1.0-alt5
4.0: 1.0-alt5
3.0: 1.0-alt5

Group :: Text tools
RPM: stardict-mueller7

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define dict_name mueller7
%define dict_file       Mueller7GPL

Name: stardict-%dict_name
Version: 1.0
Release: alt5

Summary: V.K. Mueller English-Russian Dictionary, 7 Edition: stardict format
Summary(ru_RU.KOI8-R): Англо-русский словарь Мюллера, редакция 7: формат stardict
License: GPL
Group: Text tools
Requires: stardict >= 2.4.2
BuildPreReq: stardict-tools
Url: http://www.chat.ru/~muller_dic/
BuildArchitectures: noarch

Source: %dict_file.tgz
Source1: mueller2stardict

# Automatically added by buildreq on Wed Oct 15 2003

BuildRequires: XFree86-libs XFree86-locales dict-tools esound fontconfig freetype2 glib2 gnome-vfs2 libGConf2 libIDL libORBit2 libart_lgpl libatk libaudiofile libbonobo2 libbonoboui libexpat libgnome libgnomecanvas libgnomeui libgtk+2 libjpeg libltdl libpango libssl libxml2 perl-Unicode-Map8 perl-Unicode-String stardict-tools

%description
Electronic version of V.K. Mueller English-Russian Dictionary, 7 Edition
in stardict format. You can use it with stardict client.

%description -l ru_RU.KOI8-R
Электронная версия англо-русского словаря Мюллера 7-ой редакции
в формате stardict. Вы можете использовать его со stardict клиентом.

%prep
%setup -q -c
install -p -m755 -D %SOURCE1 usr/local/share/dict/mueller2stardict

%build
cd usr/local/share/dict
cat Mueller7GPL.koi |./mueller2stardict>stardict.txt
LANGUAGE=ru_RU.UTF-8 LC_CTYPE=ru_RU.UTF-8 oxford2dic stardict.txt
size=`stat -c %s oxford.idxdata`
cat << EOF > oxford.ifo
StarDict's dict ifo file
version=2.4.2
wordcount=46231
idxfilesize=$size
bookname=mueller
description=V.K.Mueller English-Russian Dictionary, 7 Edition
sametypesequence=m
EOF
cp oxford.idxdata oxford.idx
gzip oxford.idx
dictzip oxford.dict
cd ../../../..

%install
install -p -m644 -D usr/local/share/dict/oxford.dict.dz $RPM_BUILD_ROOT%_datadir/stardict/dic/%dict_name.dict.dz
install -p -m644 -D usr/local/share/dict/oxford.idx.gz $RPM_BUILD_ROOT%_datadir/stardict/dic/%dict_name.idx.gz
install -p -m644 -D usr/local/share/dict/oxford.ifo $RPM_BUILD_ROOT%_datadir/stardict/dic/%dict_name.ifo

%files
%_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