%define srcver 3.0 Name: wordnet Version: 3.1 Release: 1mamba Summary: A lexical database for the English language Group: Applications/Text Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://wordnet.princeton.edu/ Source: https://wordnetcode.princeton.edu/%{srcver}/WordNet-%{srcver}.tar.bz2 Source1: https://wordnetcode.princeton.edu/wn%{version}.dict.tar.gz Patch0: wordnet-3.0-CVE-2008-2149.patch Patch1: wordnet-3.0-CVE-2008-3908.patch Patch2: wordnet-3.0-fix_man.patch Patch3: wordnet-3.0-fix_resourcedir_path.patch Patch4: wordnet-3.0-src_stubs_c.patch Patch5: wordnet-3.0-wishwn_manpage.patch Patch6: wordnet-3.0-use_system_tk_headers.patch Patch7: wordnet-3.0-libtool.patch Patch8: wordnet-3.0-error_message.patch Patch9: wordnet-3.1-tcl-8.6.12.patch License: GPL, MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libX11-devel BuildRequires: libXScrnSaver-devel BuildRequires: libXau-devel BuildRequires: libXdmcp-devel BuildRequires: libXext-devel BuildRequires: libXft-devel BuildRequires: libXrender-devel BuildRequires: libbrotli-devel BuildRequires: libbzip2-devel BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libglib-devel BuildRequires: libgraphite2-devel BuildRequires: libharfbuzz-devel BuildRequires: libpng-devel BuildRequires: libtcl-devel BuildRequires: libtk-devel BuildRequires: libxcb-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: automake BuildRequires: libtool Requires: libwordnet = %{?epoch:%epoch:}%{version}-%{release} %description WordNet is a large lexical database of English, developed under the direction of George A. Miller. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations. The resulting network of meaningfully related words and concepts can be navigated with the browser. WordNet is also freely and publicly available for download. WordNet's structure makes it a useful tool for computational linguistics and natural language processing. %package -n libwordnet Summary: WordNet libraries Group: System/Libraries %description -n libwordnet A lexical database for the English language. This package contains the WordNet libraries. %package -n libwordnet-devel Summary: Devel package for libwordnet Group: Development/Libraries Requires: libwordnet = %{?epoch:%epoch:}%{version}-%{release} %description -n libwordnet-devel A lexical database for the English language. This package contains static libraries and header files needed for development. %debug_package %prep %setup -q -c -a0 -a1 cd WordNet-%{srcver} %patch0 -p1 -b .cve-2008-2149 %patch1 -p1 -b .cve-2008-3908 %patch2 -p1 -b .fix_man #%patch3 -p1 -b .fix_resourcedir_path %patch4 -p1 -b .src_stubs_c %patch5 -p1 -b .wishwn_manpage sed -e '/man_MANS/ s/$/ wishwn.1/' -i doc/man/Makefile.am %patch6 -p1 -b .use_system_tk_headers %patch7 -p1 -b .libtool %patch8 -p1 -b .error_message %patch9 -p1 -b .tcl_8.6.12 sed 's:"/usr/local/WordNet-3.0/lib/wnres":"/usr/share/wordnet/wnres":' -i src/wnb rm -rf include/tk libtoolize && aclocal autoupdate autoreconf -i %build cd WordNet-%{srcver} %configure \ --prefix=%{_datadir}/wordnet \ --enable-static=no \ --with-tcl=%{_prefix}/lib/tcl8.6 sed 's:#define DEFAULTPATH "/usr/dict":#define DEFAULTPATH "/usr/share/wordnet/dict":' -i config.h %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C WordNet-%{srcver} rm -f %{buildroot}%{_libdir}/libWN.la rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/doc rm -rf doc/{html,ps,pdf}/Makefile* # Replace dictionary files rm -fr %{buildroot}%{_datadir}/wordnet/dict cp -a dict %{buildroot}%{_datadir}/wordnet/dict chmod -R u=rwX,go=rX %{buildroot}%{_datadir}/wordnet/dict %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n libwordnet -p /sbin/ldconfig %postun -n libwordnet -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/wishwn %{_bindir}/wn %{_bindir}/wnb %dir %{_datadir}/wordnet %dir %{_datadir}/wordnet/dict %{_datadir}/wordnet/dict/* %dir %{_datadir}/wordnet/lib %dir %{_datadir}/wordnet/lib/wnres %{_datadir}/wordnet/lib/wnres/* %dir %{_datadir}/wordnet/doc %dir %{_datadir}/wordnet/doc/html %{_datadir}/wordnet/doc/html/* %dir %{_datadir}/wordnet/doc/pdf %{_datadir}/wordnet/doc/pdf/* %dir %{_datadir}/wordnet/doc/ps %{_datadir}/wordnet/doc/ps/* %{_mandir}/man1/grind.1* %{_mandir}/man1/wishwn.1* %{_mandir}/man1/wn*.1* %{_mandir}/man5/cntlist.5* %{_mandir}/man5/lexnames.5* %{_mandir}/man5/senseidx.5* %{_mandir}/man5/wn*.5* %{_mandir}/man7/morphy.7* %{_mandir}/man7/uniqbeg.7* %{_mandir}/man7/wn*.7* %doc WordNet-%{srcver}/AUTHORS WordNet-%{srcver}/COPYING WordNet-%{srcver}/LICENSE %files -n libwordnet %defattr(-,root,root) %{_libdir}/libWN.so.* %files -n libwordnet-devel %defattr(-,root,root) %{_includedir}/wn.h %{_libdir}/libWN.so %{_mandir}/man3/binsrch.3* %{_mandir}/man3/morph.3* %{_mandir}/man3/wn*.3* %changelog * Sun Dec 12 2021 Silvan Calarco 3.1-1mamba - update to 3.1 * Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 3.0-2mamba - rebuilt * Sat Jan 22 2011 gil 3.0-1mamba - package created by autospec