%define dictname wn
-Summary: WordNet lexical reference system formatted as dictionary for dictd
+Summary: WordNet lexical reference system for dictd
Summary(pl): System referencji s³ownikowych WordNet dla dictd
Name: dict-%{dictname}
-Version: 1.5
-Release: 3
+Version: 1.7a
+Release: 1
License: Free to use, but see http://www.cogsci.princeton.edu/~wn/
Group: Applications/Dictionaries
-Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
+Source0: ftp://ftp.dict.org/pub/dict/pre/%{name}_%{version}.tar.gz
URL: http://www.dict.org/
-BuildRequires: autoconf
-BuildRequires: dictzip
Requires: dictd
Requires: %{_sysconfdir}/dictd
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This package contains WordNet (r) 1.6 Lexical Database formatted for
+This package contains WordNet (r) %version Lexical Database formatted for
use by the dictionary server in the dictd package.
%description -l pl
-Ten pakiet zawiera leksykaln± bazê danych WordNet sformatowan± do
-u¿ywania z serwerem s³ownika dictd.
+Ten pakiet zawiera leksykaln± bazê danych WordNet (r) %version sformatowan±
+do u¿ywania z serwerem s³ownika dictd.
%prep
-%setup -q
-
-%build
-%{__autoconf}
-%configure
-%{__make} db
+%setup -c -q
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
-%{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
+install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
-dictprefix=%{_datadir}/dictd/wn
-echo "# WordNet 1.6 Lexical Database dictionary
+dictprefix=%{_datadir}/dictd/%{dictname}
+echo "# WordNet %version Lexical Database dictionary
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