Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37842026
en ru br
ALT Linux repos
S:3.0-alt9
5.0: 3.0-alt4
4.1: 3.0-alt2
4.0: 2.1-alt2
3.0: 2.0-alt1

Group :: Text tools
RPM: wordnet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: wordnet
Version: 3.0
Release: alt4

Summary: WordNet English lexical reference system

License: Distributable
Group: Text tools
Url: http://wordnet.princeton.edu/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://wordnet.princeton.edu/%version/WordNet-%version.tar.bz2
Source1: WordNet.png
Patch: WordNet-3.0.patch

# Patches from Debian unstable

Patch10: wordnet-3.0-CVE-2008-2149.patch
Patch11: wordnet-3.0-CVE-2008-3908.patch
Patch12: wordnet-3.0-CVE-2008-3908-1.patch

# it is tcl not bash really

%add_findreq_skiplist %_bindir/wnb

BuildPreReq: libXft-devel

# Automatically added by buildreq on Wed Oct 22 2008

BuildRequires: tk-devel

%description
WordNet is an online lexical reference system whose design is
inspired by current psycholinguistic theories of human lexical
memory. English nouns, verbs, adjectives and adverbs are organized
into synonym sets, each representing one underlying lexical concept.
Different relations link the synonym sets.

WordNet was developed by the Cognitive Science Laboratory at
Princeton University under the direction of Professor George A.
Miller (Principal Investigator). Over the years, many people have
contributed to the success of WordNet.

%package tk
Summary: Tcl/tk frontend WordNet English lexical reference system
Group: Text tools
Requires: %name
Requires: tcl tk

%description tk
wnb is a GUI frontend for WordNet developed with Tcl/Tk


%package -n lib%name-devel
Summary: Includes for WordNet English lexical reference system
Group: System/Libraries
Provides: lib%name
Obsoletes: lib%name

%description -n lib%name-devel
Files for developing with WordNet

%prep
%setup -q -n WordNet-%version
# TODO: send correct patch to upstream
%patch
%patch10 -p1
%patch11 -p1
%patch12 -p1
%__subst "s|/usr/local/WordNet-3.0/lib/wnres|%_datadir/%name|g" src/wnb

%build
%autoreconf
%configure
%make_build

%install
%makeinstall_std htmldir=%_docdir/%name-%version

rm -rf %buildroot%prefix/doc
install -D -m 0644 %SOURCE1 %buildroot%_iconsdir/%name.png

mkdir -p %buildroot%_desktopdir
cat <<EOF >%buildroot%_desktopdir/%name.desktop
[Desktop Entry]
Name=WordNet
Comment=WordNet English lexical reference system
Exec=%_bindir/wnb
Icon=%name.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Office;Dictionary;Applications
EOF

%files
%_bindir/wn
%_datadir/%name/
%_man1dir/*
%_man3dir/*
%_man5dir/*
%_man7dir/*
%_docdir/%name-%version/

%files tk
%_bindir/wnb
%_bindir/wishwn
%_iconsdir/%name.png
%_desktopdir/*

%files -n lib%name-devel
%_libdir/*.a
%_includedir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin