From: undefine Date: Sat, 17 Mar 2001 16:33:57 +0000 (+0000) Subject: - Initital version X-Git-Tag: dict-web1913-1_4-2~8 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdict-web1913.git;a=commitdiff_plain;h=ca47bec411a0da0f27adc238fdbb3920135c3814 - Initital version Changed files: dict-web1913.spec -> 1.1 --- ca47bec411a0da0f27adc238fdbb3920135c3814 diff --git a/dict-web1913.spec b/dict-web1913.spec new file mode 100644 index 0000000..cf67100 --- /dev/null +++ b/dict-web1913.spec @@ -0,0 +1,58 @@ +%define dictname web1913 +%define dictversion 0.46-a +Summary: Webster's Revised Unabridged Dictionary +Name: dict-%{dictname} +Version: 1.4 +Release: 1 +License: Free to use, but see http://www.cogsci.princeton.edu/~wn/ +Group: Applications/Dictionary +URL: http://www.dict.org/ +Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz +Source1: ftp://ftp.dict.org/pub/dict/%{dictname}-%{dictversion}.tar.gz +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRequires: dictzip +Requires: dictd +Requires: %{_sysconfdir}/dictd +BuildArch: noarch + +%description + +%prep +%setup -q + +%build +%configure --with-local-libmaa --with-datapath=%{dictname}-%{dictversion} +%{__make} +tar xfz %{SOURCE1} +%{__make} db + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd} +#make install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/" +install %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd/ + +dictprefix=%{_datadir}/dictd/%{dictname} +echo "# Webster's Revised Unabridged Dictionary +database %{dictname} { + data \"$dictprefix.dict.dz\" + index \"$dictprefix.index\" +}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf + +%clean +rm -rf $RPM_BUILD_ROOT + +%postun +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 || true +fi + +%post +if [ -f /var/lock/subsys/dictd ]; then + /etc/rc.d/init.d/dictd restart 1>&2 +fi + +%files +%defattr(644,root,root,755) +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf +%{_datadir}/dictd/%{dictname}*