From 10d63367f0916fbbb8642a716f7bedaa58cd00ae Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 23 Aug 2004 21:59:18 +0000 Subject: [PATCH 1/1] - dictionary is in ru_RU.koi8r locale - let's test new locale BR idea Changed files: dict-mueller7.spec -> 1.8 --- dict-mueller7.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dict-mueller7.spec b/dict-mueller7.spec index 9279781..4909d92 100644 --- a/dict-mueller7.spec +++ b/dict-mueller7.spec @@ -15,6 +15,10 @@ Source1: http://www.math.sunysb.edu/~comech/tools/to-dict URL: http://mueller-dic.chat.ru/ BuildRequires: dictfmt BuildRequires: dictzip +%if "%(locale -a | grep '^ru_RU.koi8r$')" == "" +BuildRequires: glibc-localedb-all +%endif +BuildRequires: sed >= 4.0 Requires: dictd Requires: %{_sysconfdir}/dictd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -30,8 +34,10 @@ Muellera. %prep %setup -q -c -%build cp %{SOURCE1} . +sed -i -e 's/dictfmt -p/dictfmt --locale ru_RU.koi8r/' to-dict + +%build chmod +x ./to-dict ./to-dict --no-trans usr/local/share/dict/Mueller7GPL.koi mueller7.notr ./to-dict --src-data mueller7.notr mueller7.data && rm -f mueller7.notr -- 2.44.0