Group :: Text tools
RPM: dict-vera
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define dictname vera
%define dictdesc V.E.R.A. -- Virtual Entity of Relevant Acronyms
%define dictdir %_datadir/dictd
Name: dict-%dictname
Version: 1.15
Release: alt2
Summary: %dictdesc
License: FDL
Group: Text tools
#Group: Applications/Dictionaries
Url: http://home.snafu.de/ohei/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://home.snafu.de/ohei/FTP/vera-%version.tar.bz2
Source1: %name-%version.sedfile
#Patch: %name-%version.patch
BuildArchitectures: noarch
# Please do not use buildreq
BuildPreReq: flex dict-tools stardict-tools
%description
This is a special GNU edition of V.E.R.A., a list dealing with
computational acronyms.
Copyright (C) 1993/2003 Oliver Heidelbach <ohei [at] snafu . de>
Please send corrections to Oliver Heidelbach <ohei [at] snafu . de>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
FDL".
%package -n stardict-%dictname
Summary: %dictdesc
#Group: Applications/Dictionaries
Group: Text tools
Obsoletes: stardict-%name
Provides: stardict-%name
%description -n stardict-%dictname
This is a special GNU edition of V.E.R.A., a list dealing with
computational acronyms.
Copyright (C) 1993/2003 Oliver Heidelbach <ohei [at] snafu . de>
Please send corrections to Oliver Heidelbach <ohei [at] snafu . de>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
FDL".
%prep
%setup -q -n vera-%version
#%%patch -p0
%build
cat <<EOF >vera
This is a special GNU edition of V.E.R.A., a list dealing with
computational acronyms.
Copyright (C) 1993/2003 Oliver Heidelbach <ohei [at] snafu . de>
Please send corrections to Oliver Heidelbach <ohei [at] snafu . de>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
FDL".
Within the above restrictions the distribution of this document is
explicitly encouraged and I hope you'll find it of some value.
This dictionary has nothing to do with Systems Science Inc. or its
products.
EOF
sed -f %SOURCE1 vera.? >>vera
/usr/bin/dictfmt -f -u %Url -s "%dictdesc" %dictname <vera
rm -f vera1 vera.tmp vera
# prepare stardict
# dictd to stardict conversion
word=`dictd2dic %dictname | grep wordcount | cut -d " " -f 2`
size=`zcat dict*%dictname.idx.gz | wc -c`
cat << EOF > %dictname.ifo
StarDict's dict ifo file
version=2.4.2
wordcount=$word
website=http://home.snafu.de/ohei
date=%version
idxfilesize=$size
bookname=%dictname
description=%dictdesc
sametypesequence=m
EOF
# compress dict file
/usr/bin/dictzip -v %dictname.dict
%install
%__install -D -m 644 %dictname.dict.dz $RPM_BUILD_ROOT/%dictdir/%dictname.dict.dz
%__install -D -m 644 %dictname.index $RPM_BUILD_ROOT/%dictdir/%dictname.index
# stardict
%__install -d $RPM_BUILD_ROOT/%_datadir/stardict/dic
%__install -m 644 dict*%dictname.dict.dz $RPM_BUILD_ROOT/%_datadir/stardict/dic/%dictname.dict.dz
%__install -m 644 dict*%dictname.idx.gz $RPM_BUILD_ROOT/%_datadir/stardict/dic/%dictname.idx.gz
%__install -m 644 %dictname.ifo $RPM_BUILD_ROOT/%_datadir/stardict/dic/%dictname.ifo
%post
/usr/sbin/dictdconfig -w
%_initdir/dictd condreload
%postun
/usr/sbin/dictdconfig -w
%_initdir/dictd condreload
%files
%dictdir/%dictname.*
%files -n stardict-%dictname
%_datadir/stardict/dic/*
%changelog
…
Full changelog you can see here
%define dictdesc V.E.R.A. -- Virtual Entity of Relevant Acronyms
%define dictdir %_datadir/dictd
Name: dict-%dictname
Version: 1.15
Release: alt2
Summary: %dictdesc
License: FDL
Group: Text tools
#Group: Applications/Dictionaries
Url: http://home.snafu.de/ohei/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://home.snafu.de/ohei/FTP/vera-%version.tar.bz2
Source1: %name-%version.sedfile
#Patch: %name-%version.patch
BuildArchitectures: noarch
# Please do not use buildreq
BuildPreReq: flex dict-tools stardict-tools
%description
This is a special GNU edition of V.E.R.A., a list dealing with
computational acronyms.
Copyright (C) 1993/2003 Oliver Heidelbach <ohei [at] snafu . de>
Please send corrections to Oliver Heidelbach <ohei [at] snafu . de>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
FDL".
%package -n stardict-%dictname
Summary: %dictdesc
#Group: Applications/Dictionaries
Group: Text tools
Obsoletes: stardict-%name
Provides: stardict-%name
%description -n stardict-%dictname
This is a special GNU edition of V.E.R.A., a list dealing with
computational acronyms.
Copyright (C) 1993/2003 Oliver Heidelbach <ohei [at] snafu . de>
Please send corrections to Oliver Heidelbach <ohei [at] snafu . de>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
FDL".
%prep
%setup -q -n vera-%version
#%%patch -p0
%build
cat <<EOF >vera
This is a special GNU edition of V.E.R.A., a list dealing with
computational acronyms.
Copyright (C) 1993/2003 Oliver Heidelbach <ohei [at] snafu . de>
Please send corrections to Oliver Heidelbach <ohei [at] snafu . de>.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU
FDL".
Within the above restrictions the distribution of this document is
explicitly encouraged and I hope you'll find it of some value.
This dictionary has nothing to do with Systems Science Inc. or its
products.
EOF
sed -f %SOURCE1 vera.? >>vera
/usr/bin/dictfmt -f -u %Url -s "%dictdesc" %dictname <vera
rm -f vera1 vera.tmp vera
# prepare stardict
# dictd to stardict conversion
word=`dictd2dic %dictname | grep wordcount | cut -d " " -f 2`
size=`zcat dict*%dictname.idx.gz | wc -c`
cat << EOF > %dictname.ifo
StarDict's dict ifo file
version=2.4.2
wordcount=$word
website=http://home.snafu.de/ohei
date=%version
idxfilesize=$size
bookname=%dictname
description=%dictdesc
sametypesequence=m
EOF
# compress dict file
/usr/bin/dictzip -v %dictname.dict
%install
%__install -D -m 644 %dictname.dict.dz $RPM_BUILD_ROOT/%dictdir/%dictname.dict.dz
%__install -D -m 644 %dictname.index $RPM_BUILD_ROOT/%dictdir/%dictname.index
# stardict
%__install -d $RPM_BUILD_ROOT/%_datadir/stardict/dic
%__install -m 644 dict*%dictname.dict.dz $RPM_BUILD_ROOT/%_datadir/stardict/dic/%dictname.dict.dz
%__install -m 644 dict*%dictname.idx.gz $RPM_BUILD_ROOT/%_datadir/stardict/dic/%dictname.idx.gz
%__install -m 644 %dictname.ifo $RPM_BUILD_ROOT/%_datadir/stardict/dic/%dictname.ifo
%post
/usr/sbin/dictdconfig -w
%_initdir/dictd condreload
%postun
/usr/sbin/dictdconfig -w
%_initdir/dictd condreload
%files
%dictdir/%dictname.*
%files -n stardict-%dictname
%_datadir/stardict/dic/*
%changelog
…
Full changelog you can see here