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

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

diff --git a/dict-mueller24.spec b/dict-mueller24.spec
new file mode 100644 (file)
index 0000000..2c4db51
--- /dev/null
@@ -0,0 +1,67 @@
+%define                dictname mueller24
+Summary:       English-Russian dictionary for dictd
+Summary(pl):   S³ownik angielsko-rosyjski dla dictd
+Name:          dict-%{dictname}
+Version:       1.6
+Release:       1
+License:       unknown
+Group:         Applications/Dictionaries
+Source0:       http://mueller-dic.chat.ru/Mueller24.tgz
+# This one is compressed with szip: http://www.compressconsult.com/szip
+#Source0:      http://www.geocities.com/mueller_dic/Mueller24.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 24th edition of English-Russian dictionary by V.
+K. Mueller.
+
+%description -l pl
+Elektroniczna wersja 24. wydania s³ownika angielsko rosyjskiego V. K.
+Muellera.
+
+%prep
+%setup -q -c
+
+%build
+cp %{SOURCE1} .
+chmod +x ./to-dict
+./to-dict --src-data usr/local/share/dict/Mueller24.koi mueller24.data
+./to-dict --data-dict mueller24.data mueller24 && rm -f mueller24.data
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
+
+dictprefix=%{_datadir}/dictd/%{dictname}
+echo "# Mueller English-Russian dictionary, 24-th edition (%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/Mueller24.txt
+%lang(ru) %doc usr/local/share/mova/Mueller24_koi.txt
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
+%{_datadir}/dictd/%{dictname}.*
This page took 0.066467 seconds and 4 git commands to generate.