Package dict-eng-deu: Specfile

%define dict_name_en eng-deu
%define dict_name_de deu-eng

Name: dict-%dict_name_en
Version: 0.2
Release: alt3

Summary: English-German Dictionary: dictd format
Summary(ru_RU.KOI8-R): \xe1\xce\xc7\xcc\xcf-\xce\xc5\xcd\xc5\xc3\xcb\xc9\xca \xd3\xcc\xcf\xd7\xc1\xd2\xd8: \xc6\xcf\xd2\xcd\xc1\xd4 dictd
License: GPL
Group: Text tools
PreReq: dictd
Url: http://www.freedict.org/ru/
Packager: Alexey Dyachenko <alexd@altlinux.ru>

Source: %dict_name_en.tar.gz
Source1: %dict_name_de.tar.gz

BuildArch: noarch

%description
Electronic version of English-German Dictionary, in dictd format.
You can use it with your favourite dict client.

%description -l ru_RU.KOI8-R
\xfc\xcc\xc5\xcb\xd4\xd2\xcf\xce\xce\xc1\xd1 \xd7\xc5\xd2\xd3\xc9\xd1 \xc1\xce\xc7\xcc\xcf-\xce\xc5\xcd\xc5\xc3\xcb\xcf\xc7\xcf \xd3\xcc\xcf\xd7\xc1\xd2\xd1 \xd7 \xc6\xcf\xd2\xcd\xc1\xd4\xc5 dictd.
\xf7\xd9 \xcd\xcf\xd6\xc5\xd4\xc5 \xc9\xd3\xd0\xcf\xcc\xd8\xda\xcf\xd7\xc1\xd4\xd8 \xc5\xc7\xcf \xd3\xcf \xd3\xd7\xcf\xc9\xcd \xcc\xc0\xc2\xc9\xcd\xd9\xcd dict \xcb\xcc\xc9\xc5\xce\xd4\xcf\xcd.

%package -n dict-%dict_name_de
Summary: German-English Dictionary: dictd format
Summary(ru_RU.KOI8-R): \xee\xc5\xcd\xc5\xc3\xcb\xcf-\xc1\xce\xc7\xcc\xc9\xca\xd3\xcb\xc9\xca \xd3\xcc\xcf\xd7\xc1\xd2\xd8: \xc6\xcf\xd2\xcd\xc1\xd4 dictd
License: GPL
Group: Text tools
PreReq: dictd

%description -n dict-%dict_name_de
Electronic version of German-English Dictionary, in dictd format.
You can use it with your favourite dict client.

%description -n dict-%dict_name_de -l ru_RU.KOI8-R
\xfc\xcc\xc5\xcb\xd4\xd2\xcf\xce\xce\xc1\xd1 \xd7\xc5\xd2\xd3\xc9\xd1 \xce\xc5\xcd\xc5\xc3\xcb\xcf\xc7\xcf-\xc1\xce\xc7\xcc\xc9\xca\xd3\xcb\xcf\xc7\xcf \xd3\xcc\xcf\xd7\xc1\xd2\xd1 \xd7 \xc6\xcf\xd2\xcd\xc1\xd4\xc5 dictd.
\xf7\xd9 \xcd\xcf\xd6\xc5\xd4\xc5 \xc9\xd3\xd0\xcf\xcc\xd8\xda\xcf\xd7\xc1\xd4\xd8 \xc5\xc7\xcf \xd3\xcf \xd3\xd7\xcf\xc9\xcd \xcc\xc0\xc2\xc9\xcd\xd9\xcd dict \xcb\xcc\xc9\xc5\xce\xd4\xcf\xcd.

%prep
%setup -c -a1

%install
install -pD -m 644 %dict_name_en.dict.dz %buildroot%_datadir/dictd/%dict_name_en.dict.dz
install -pD -m 644 %dict_name_en.index %buildroot%_datadir/dictd/%dict_name_en.index
install -pD -m 644 %dict_name_de.dict.dz %buildroot%_datadir/dictd/%dict_name_de.dict.dz
install -pD -m 644 %dict_name_de.index %buildroot%_datadir/dictd/%dict_name_de.index


%files
%_datadir/dictd/%{dict_name_en}*

%files -n dict-%dict_name_de
%_datadir/dictd/%{dict_name_de}*

%changelog
* Wed Feb 04 2015 Igor Vlasenko <viy@altlinux.ru> 0.2-alt3
- removed post/un in favor of filetrigger

* Thu Sep 27 2007 Slava Semushin <php-coder@altlinux.ru> 0.2-alt2.1.1
- NMU
- Fixed incomplete locale specification in Summary tag for
  dict-deu-eng package (finally fixed #11843)
- Removed unneeded dict-tools from BuildRequires

* Wed Jun 13 2007 Slava Semushin <php-coder@altlinux.ru> 0.2-alt2.1
- NMU
- Fixed incomplete locale specification in Summary tag (#11843)
- Set packager tag to previous maintainer
- Spec cleanup:
  + Updated Url tag
  + s/BuildArchitectures/BuildArch/
  + s/%%setup -q/%%setup/
  + s/$RPM_BUILD_ROOT/%%buildroot/
  + Replace some tabs to spaces
  + Remove one trailing space in %%description of dict-deu-eng package
  + Use %%_sbindir macros instead of appropriate path

* Thu Jan 30 2003 Alexey Dyachenko <alexd@altlinux.ru> 0.2-alt2
- fix bug #0001705:    1st installation doesn't check the new dictionary
	in at a running dictd
-	fix bug #0001700: preuninstall script turns dictd off
-	fix bug #0001701: preuninstall script turns dictd off
- fix install scripts

* Mon Oct 14 2002 Alexey Dyachenko <alexd@altlinux.ru> 0.2-alt1
- add missing PreReq: dictd

* Thu Sep 26 2002 Alexey Dyachenko <alexd@altlinux.ru> 0.1-alt1
- initial build for Alt Linux