]> git.pld-linux.org Git - packages/dict-mueller7acc.git/commitdiff
- initial PLD release
authorTomasz Pala <gotar@pld-linux.org>
Sat, 8 Feb 2003 16:53:54 +0000 (16:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dict-mueller7acc.spec -> 1.1

dict-mueller7acc.spec [new file with mode: 0644]

diff --git a/dict-mueller7acc.spec b/dict-mueller7acc.spec
new file mode 100644 (file)
index 0000000..b0ef601
--- /dev/null
@@ -0,0 +1,70 @@
+%define                dictname mueller7acc
+Summary:       English-Russian dictionary with accents for dictd
+Summary(pl):   S³ownik angielsko-rosyjski z akcentami dla dictd
+Name:          dict-%{dictname}
+Version:       1.2
+Release:       1
+License:       GPL
+Group:         Applications/Dictionaries
+Source0:       http://mueller-dic.chat.ru/Mueller7accentGPL.tgz
+# This one is compressed with bzip2 (do not trust tgz!)
+#Source0:      http://www.geocities.com/mueller_dic/Mueller7accentGPL.tgz
+Source1:       http://www.math.sunysb.edu/~comech/tools/to-dict
+URL:           http://mueller-dic.chat.ru/
+BuildRequires: dictfmt
+BuildRequires: dictzip
+Requires:      dictd
+Requires:      %{_sysconfdir}/dictd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Electronic version of 7th edition of English-Russian dictionary with
+accents by V. K. Mueller.
+
+%description -l pl
+Elektroniczna wersja 7. wydania s³ownika angielsko rosyjskiego z
+akcentami V. K. Muellera.
+
+%prep
+%setup -q -c
+
+%build
+cp %{SOURCE1} .
+chmod +x ./to-dict
+./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
+./to-dict --expand-index mueller7acc.index mueller7acc.index.exp
+mv -f mueller7acc.index.exp mueller7acc.index
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
+
+dictprefix=%{_datadir}/dictd/%{dictname}
+echo "# Mueller English-Russian dictionary, 7-th edition with accents (%version)
+database %{dictname} {
+       data  \"$dictprefix.dict.dz\"
+       index \"$dictprefix.index\"
+}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
+mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/dictd ]; then
+       /etc/rc.d/init.d/dictd restart 1>&2
+fi
+
+%postun
+if [ -f /var/lock/subsys/dictd ]; then
+       /etc/rc.d/init.d/dictd restart 1>&2 || true
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc usr/local/share/mova/Mueller7.txt
+%lang(ru) %doc usr/local/share/mova/Mueller7_koi.txt
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
+%{_datadir}/dictd/%{dictname}.*
This page took 0.080172 seconds and 4 git commands to generate.