2024-01-05 19:28:55 +01:00
|
|
|
%define srcver 3.0
|
2024-01-05 19:28:54 +01:00
|
|
|
Name: wordnet
|
2024-01-05 19:28:55 +01:00
|
|
|
Version: 3.1
|
|
|
|
Release: 1mamba
|
2024-01-05 19:28:54 +01:00
|
|
|
Summary: A lexical database for the English language
|
|
|
|
Group: Applications/Text
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 19:28:55 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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
|
2024-01-05 19:28:54 +01:00
|
|
|
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
|
2024-01-05 19:28:55 +01:00
|
|
|
Patch9: wordnet-3.1-tcl-8.6.12.patch
|
2024-01-05 19:28:54 +01:00
|
|
|
License: GPL, MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libX11-devel
|
2024-01-05 19:28:55 +01:00
|
|
|
BuildRequires: libXScrnSaver-devel
|
2024-01-05 19:28:54 +01:00
|
|
|
BuildRequires: libXau-devel
|
|
|
|
BuildRequires: libXdmcp-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
BuildRequires: libXft-devel
|
|
|
|
BuildRequires: libXrender-devel
|
2024-01-05 19:28:55 +01:00
|
|
|
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
|
2024-01-05 19:28:54 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 19:28:55 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2024-01-05 19:28:54 +01:00
|
|
|
Requires: libwordnet = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
2024-01-05 19:28:55 +01:00
|
|
|
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.
|
2024-01-05 19:28:54 +01:00
|
|
|
|
|
|
|
%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.
|
2024-01-05 19:28:55 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-05 19:28:54 +01:00
|
|
|
|
2024-01-05 19:28:55 +01:00
|
|
|
%debug_package
|
2024-01-05 19:28:54 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-05 19:28:55 +01:00
|
|
|
%setup -q -c -a0 -a1
|
|
|
|
cd WordNet-%{srcver}
|
2024-01-05 19:28:54 +01:00
|
|
|
%patch0 -p1 -b .cve-2008-2149
|
|
|
|
%patch1 -p1 -b .cve-2008-3908
|
|
|
|
%patch2 -p1 -b .fix_man
|
2024-01-05 19:28:55 +01:00
|
|
|
#%patch3 -p1 -b .fix_resourcedir_path
|
2024-01-05 19:28:54 +01:00
|
|
|
%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
|
2024-01-05 19:28:55 +01:00
|
|
|
%patch9 -p1 -b .tcl_8.6.12
|
2024-01-05 19:28:54 +01:00
|
|
|
|
2024-01-05 19:28:55 +01:00
|
|
|
sed 's:"/usr/local/WordNet-3.0/lib/wnres":"/usr/share/wordnet/wnres":' -i src/wnb
|
2024-01-05 19:28:54 +01:00
|
|
|
rm -rf include/tk
|
|
|
|
|
|
|
|
libtoolize && aclocal
|
|
|
|
autoupdate
|
|
|
|
autoreconf -i
|
|
|
|
|
2024-01-05 19:28:55 +01:00
|
|
|
%build
|
|
|
|
cd WordNet-%{srcver}
|
2024-01-05 19:28:54 +01:00
|
|
|
%configure \
|
2024-01-05 19:28:55 +01:00
|
|
|
--prefix=%{_datadir}/wordnet \
|
2024-01-05 19:28:54 +01:00
|
|
|
--enable-static=no \
|
2024-01-05 19:28:55 +01:00
|
|
|
--with-tcl=%{_prefix}/lib/tcl8.6
|
|
|
|
|
|
|
|
sed 's:#define DEFAULTPATH "/usr/dict":#define DEFAULTPATH "/usr/share/wordnet/dict":' -i config.h
|
|
|
|
|
2024-01-05 19:28:54 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 19:28:55 +01:00
|
|
|
%makeinstall -C WordNet-%{srcver}
|
2024-01-05 19:28:54 +01:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/libWN.la
|
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/doc
|
|
|
|
rm -rf doc/{html,ps,pdf}/Makefile*
|
|
|
|
|
2024-01-05 19:28:55 +01:00
|
|
|
# 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
|
|
|
|
|
2024-01-05 19:28:54 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 19:28:55 +01:00
|
|
|
%post -n libwordnet -p /sbin/ldconfig
|
|
|
|
%postun -n libwordnet -p /sbin/ldconfig
|
|
|
|
|
2024-01-05 19:28:54 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/wishwn
|
|
|
|
%{_bindir}/wn
|
|
|
|
%{_bindir}/wnb
|
2024-01-05 19:28:55 +01:00
|
|
|
%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
|
2024-01-05 19:28:54 +01:00
|
|
|
|
|
|
|
%files -n libwordnet
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libWN.so.*
|
|
|
|
|
|
|
|
%files -n libwordnet-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/wn.h
|
|
|
|
%{_libdir}/libWN.so
|
2024-01-05 19:28:55 +01:00
|
|
|
%{_mandir}/man3/binsrch.3*
|
|
|
|
%{_mandir}/man3/morph.3*
|
|
|
|
%{_mandir}/man3/wn*.3*
|
2024-01-05 19:28:54 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 19:28:55 +01:00
|
|
|
* Sun Dec 12 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-1mamba
|
|
|
|
- update to 3.1
|
|
|
|
|
2024-01-05 19:28:54 +01:00
|
|
|
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 3.0-2mamba
|
|
|
|
- rebuilt
|
|
|
|
* Sat Jan 22 2011 gil <puntogil@libero.it> 3.0-1mamba
|
|
|
|
- package created by autospec
|