From b68dd78922df4accea726575c33e33bd6a8bf4c1 Mon Sep 17 00:00:00 2001 From: Tomasz Pala Date: Sat, 28 Dec 2002 11:46:09 +0000 Subject: [PATCH] - forced my version of 1.7a: - more unified with other dicts, - removed BR: autoconf, dictzip, - standard %buildsubdir, - other cosmetics. Changed files: dict-wn.spec -> 1.15 --- dict-wn.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/dict-wn.spec b/dict-wn.spec index a6feba8..60ab466 100644 --- a/dict-wn.spec +++ b/dict-wn.spec @@ -1,5 +1,5 @@ %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.7a @@ -8,34 +8,32 @@ License: Free to use, but see http://www.cogsci.princeton.edu/~wn/ Group: Applications/Dictionaries 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) %{version} 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 w wersji %{version} -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 -c 0 -n wordnet +%setup -c -q %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd} -install wn* $RPM_BUILD_ROOT%{_datadir}/dictd/ +install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd} -dictprefix=%{_datadir}/dictd/wn -echo "# WordNet %{version} 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 -- 2.43.0