Summary(pl.UTF-8): Słownik angielsko-rosyjski z akcentami dla dictd
Name: dict-%{dictname}
Version: 1.2
-Release: 4
+Release: 5
License: GPL
Group: Applications/Dictionaries
Source0: http://mueller-dic.chat.ru/Mueller7accentGPL.tgz
URL: http://mueller-dic.chat.ru/
BuildRequires: dictfmt
BuildRequires: dictzip
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: %{_sysconfdir}/dictd
Requires: dictd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -c
-
-%build
cp %{SOURCE1} .
chmod +x ./to-dict
+
+%build
./to-dict --no-trans usr/local/share/dict/Mueller7accentGPL.koi mueller7acc.notr
./to-dict --src-data mueller7acc.notr mueller7acc.data && rm -f mueller7acc.notr
./to-dict --data-dict mueller7acc.data mueller7acc && rm -f mueller7acc.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