Summary(pl.UTF-8): Słownik angielsko-rosyjski dla dictd
Name: dict-%{dictname}
Version: 1.2
-Release: 6
+Release: 7
License: GPL
Group: Applications/Dictionaries
Source0: http://mueller-dic.chat.ru/Mueller7GPL.tgz
Source1: http://www.math.sunysb.edu/~comech/tools/to-dict
# Source1-md5: 3c1b69c290fb4c06bf3456baf5bf8b97
URL: http://mueller-dic.chat.ru/
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: dictfmt
BuildRequires: dictzip
%if "%(locale -a | grep '^ru_RU.koi8r$')" == ""
%prep
%setup -q -c
-
cp %{SOURCE1} .
sed -i -e 's/dictfmt -p/dictfmt --locale ru_RU.koi8r -p/' to-dict
+chmod +x ./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
./to-dict --data-dict mueller7.data mueller7 && rm -f mueller7.data
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2
-fi
+%service -q dictd restart
%postun
-if [ -f /var/lock/subsys/dictd ]; then
- /etc/rc.d/init.d/dictd restart 1>&2 || true
+if [ "$1" = 0 ]; then
+ %service -q dictd restart
fi
%files