145 lines
4.3 KiB
RPMSpec
145 lines
4.3 KiB
RPMSpec
|
Name: wordnet
|
||
|
Version: 3.0
|
||
|
Release: 2mamba
|
||
|
Summary: A lexical database for the English language
|
||
|
Group: Applications/Text
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: gil <puntogil@libero.it>
|
||
|
URL: http://wordnet.princeton.edu/
|
||
|
Source: http://wordnetcode.princeton.edu/%{version}/WordNet-%{version}.tar.bz2
|
||
|
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
|
||
|
License: GPL, MIT
|
||
|
BuildRequires: automake
|
||
|
BuildRequires: libtool
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libexpat-devel
|
||
|
BuildRequires: libfontconfig-devel
|
||
|
BuildRequires: libfreetype-devel
|
||
|
BuildRequires: libpthread-stubs-devel
|
||
|
BuildRequires: libtcl-devel
|
||
|
BuildRequires: libtk-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXau-devel
|
||
|
BuildRequires: libxcb-devel
|
||
|
BuildRequires: libXdmcp-devel
|
||
|
BuildRequires: libXext-devel
|
||
|
BuildRequires: libXft-devel
|
||
|
BuildRequires: libXrender-devel
|
||
|
BuildRequires: libXScrnSaver-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: libwordnet = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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 need for development.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n WordNet-%{version}
|
||
|
%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
|
||
|
|
||
|
rm -rf include/tk
|
||
|
|
||
|
%build
|
||
|
libtoolize && aclocal
|
||
|
autoupdate
|
||
|
autoreconf -i
|
||
|
|
||
|
%configure \
|
||
|
--enable-static=no \
|
||
|
--prefix=%{_datadir}/wordnet-%{version}/
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
rm -f %{buildroot}%{_libdir}/libWN.la
|
||
|
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/doc
|
||
|
rm -rf doc/{html,ps,pdf}/Makefile*
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/wishwn
|
||
|
%{_bindir}/wn
|
||
|
%{_bindir}/wnb
|
||
|
%dir %{_datadir}/wordnet-%{version}
|
||
|
%dir %{_datadir}/wordnet-%{version}/dict
|
||
|
%dir %{_datadir}/wordnet-%{version}/dict/*
|
||
|
%dir %{_datadir}/wordnet-%{version}/lib
|
||
|
%dir %{_datadir}/wordnet-%{version}/lib/wnres
|
||
|
%dir %{_datadir}/wordnet-%{version}/lib/wnres/*
|
||
|
%{_mandir}/man1/*.1.gz
|
||
|
%{_mandir}/man5/*.5.gz
|
||
|
%{_mandir}/man7/*.7.gz
|
||
|
%doc AUTHORS COPYING ChangeLog INSTALL
|
||
|
%doc LICENSE README doc/{html,ps,pdf}
|
||
|
|
||
|
%post -n libwordnet -p /sbin/ldconfig
|
||
|
|
||
|
%postun -n libwordnet -p /sbin/ldconfig
|
||
|
|
||
|
%files -n libwordnet
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libWN.so.*
|
||
|
|
||
|
%files -n libwordnet-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/wn.h
|
||
|
%{_libdir}/libWN.so
|
||
|
%{_mandir}/man3/*.3.gz
|
||
|
|
||
|
%changelog
|
||
|
* 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
|