Blame SPECS/wordnet.spec

24ffec
Name:           wordnet
24ffec
Version:        3.0
24ffec
Release:        21%{?dist}
24ffec
Summary:        A lexical database for the English language
24ffec
24ffec
Group:          Applications/Text
24ffec
License:        MIT and GPLv2+
24ffec
URL:            http://wordnet.princeton.edu/
24ffec
Source0:        http://wordnetcode.princeton.edu/%{version}/WordNet-%{version}.tar.bz2
24ffec
Patch0:         wordnet-3.0-CVE-2008-2149.patch
24ffec
Patch1:         wordnet-3.0-CVE-2008-3908.patch
24ffec
Patch2:         wordnet-3.0-fix_man.patch
24ffec
Patch3:         wordnet-3.0-fix_resourcedir_path.patch
24ffec
Patch4:         wordnet-3.0-src_stubs_c.patch
24ffec
# wordnet-3.0-wishwn_manpage.patch is GPLv2+
24ffec
Patch5:         wordnet-3.0-wishwn_manpage.patch
24ffec
Patch6:         wordnet-3.0-use_system_tk_headers.patch
24ffec
Patch7:         wordnet-3.0-libtool.patch
24ffec
# Bug #585206
24ffec
Patch8:         wordnet-3.0-error_message.patch
24ffec
BuildRequires:  automake >= 1.8
24ffec
BuildRequires:  libtool
24ffec
BuildRequires:  tcl-devel
24ffec
BuildRequires:  tk-devel
24ffec
24ffec
%description
24ffec
WordNet is a large lexical database of English, developed under the direction
24ffec
of George A. Miller. Nouns, verbs, adjectives and adverbs are grouped into sets
24ffec
of cognitive synonyms (synsets), each expressing a distinct concept. Synsets
24ffec
are interlinked by means of conceptual-semantic and lexical relations. The
24ffec
resulting network of meaningfully related words and concepts can be navigated
24ffec
with the browser. WordNet is also freely and publicly available for download.
24ffec
WordNet's structure makes it a useful tool for computational linguistics and
24ffec
natural language processing.
24ffec
24ffec
24ffec
%package browser
24ffec
Summary:    Tk browser for WordNet
24ffec
Group:      Applications/Text
24ffec
Requires:   %{name}%{?_isa} = %{version}-%{release}
24ffec
Requires:   font(:lang=en)
24ffec
24ffec
%description browser
24ffec
This package contains graphical browser for WordNet database.
24ffec
24ffec
24ffec
%package devel
24ffec
Summary:    The development libraries and header files for WordNet
24ffec
Group:      Development/Libraries
24ffec
Requires:   %{name} = %{version}-%{release}
24ffec
24ffec
%description devel
24ffec
This package contains the libraries and header files required to create
24ffec
applications based on WordNet.
24ffec
24ffec
24ffec
%package doc
24ffec
Summary:    Manual pages for WordNet in alternative formats
24ffec
Group:      Documentation
24ffec
BuildArch:  noarch
24ffec
24ffec
%description doc
24ffec
This package contains manual pages for WordNet package in HTML, PDF,
24ffec
and PostScript format.
24ffec
24ffec
24ffec
%prep
24ffec
%setup -q -n WordNet-3.0
24ffec
%patch0 -p1 -b .cve-2008-2149
24ffec
%patch1 -p1 -b .cve-2008-3908
24ffec
%patch2 -p1 -b .fix_man
24ffec
%patch3 -p1 -b .fix_resourcedir_path
24ffec
%patch4 -p1 -b .src_stubs_c
24ffec
%patch5 -p1 -b .wishwn_manpage
24ffec
sed -e '/man_MANS/ s/$/ wishwn.1/' -i doc/man/Makefile.am
24ffec
%patch6 -p1 -b .use_system_tk_headers
24ffec
%patch7 -p1 -b .libtool
24ffec
%patch8 -p1 -b .error_message
24ffec
# delete the include/tk dir, since we do not use the included tk headers
24ffec
rm -rf include/tk
24ffec
24ffec
24ffec
%build
24ffec
libtoolize && aclocal
24ffec
autoupdate
24ffec
autoreconf -i
24ffec
%configure --enable-static=no --prefix=%{_datadir}/wordnet-%{version}/
24ffec
make %{?_smp_mflags}
24ffec
24ffec
24ffec
%install
24ffec
make install DESTDIR=$RPM_BUILD_ROOT
24ffec
# delete the libWN.la files (reasoning in the packaging guidelines)
24ffec
rm -f  $RPM_BUILD_ROOT%{_libdir}/libWN.la
24ffec
# Remove duplicate copies of docs installed by make install
24ffec
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/doc
24ffec
# Remove useless Makefiles installed by %%doc
24ffec
rm -rf doc/{html,ps,pdf}/Makefile*
24ffec
24ffec
24ffec
%post -p /sbin/ldconfig
24ffec
24ffec
%postun -p /sbin/ldconfig
24ffec
24ffec
%files
24ffec
%doc AUTHORS COPYING ChangeLog README
24ffec
%{_bindir}/wn
24ffec
%{_mandir}/man1/grind.1.gz
24ffec
%{_mandir}/man1/wn.1.gz
24ffec
%{_mandir}/man1/wnintro.1.gz
24ffec
%{_mandir}/man5/*.5.gz
24ffec
%{_mandir}/man7/*.7.gz
24ffec
%{_datadir}/%{name}-%{version}/
24ffec
%exclude %{_datadir}/%{name}-%{version}/lib/wnres/
24ffec
%{_libdir}/libWN.so.*
24ffec
24ffec
%files browser
24ffec
%{_bindir}/wishwn
24ffec
%{_bindir}/wnb
24ffec
%{_mandir}/man1/wishwn.1.gz
24ffec
%{_mandir}/man1/wnb.1.gz
24ffec
%{_datadir}/%{name}-%{version}/lib/wnres/
24ffec
24ffec
%files devel
24ffec
%{_mandir}/man3/*.3.gz
24ffec
%{_includedir}/wn.h
24ffec
%{_libdir}/libWN.so
24ffec
24ffec
%files doc
24ffec
%doc COPYING doc/{html,ps,pdf}
24ffec
24ffec
24ffec
%changelog
24ffec
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.0-21
24ffec
- Mass rebuild 2014-01-24
24ffec
24ffec
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.0-20
24ffec
- Mass rebuild 2013-12-27
24ffec
24ffec
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-19
24ffec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
24ffec
24ffec
* Thu Sep 06 2012 Petr Pisar <ppisar@redhat.com> - 3.0-18
24ffec
- wnb requires a font to start
24ffec
- Move Tk browser to sub-package wordnet-browser
24ffec
- Move alternative manual pages to wordnet-doc package
24ffec
- Do not package INSTALL instructions and correct URL
24ffec
- Modernize spec file
24ffec
24ffec
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-17
24ffec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
24ffec
24ffec
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-16
24ffec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
24ffec
24ffec
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-15
24ffec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
24ffec
24ffec
* Mon Nov 29 2010 Petr Pisar <ppisar@redhat.com> - 3.0-14
24ffec
- Remove Makefiles from documentation clashing in multiarch installation
24ffec
  (#658118).
24ffec
24ffec
* Fri Apr 30 2010 Petr Pisar <ppisar@redhat.com> - 3.0-13
24ffec
- Add GPLv2+ license tag because wishwn(1) manual page is GPLv2+-licensed.
24ffec
24ffec
* Wed Apr 28 2010 Petr Pisar <ppisar@redhat.com> - 3.0-12
24ffec
- Devel subpackages requires tcl-devel and tk-devel.
24ffec
- Install wishwn(1) manual page
24ffec
24ffec
* Thu Apr 26 2010 Petr Pisar <ppisar@redhat.com> - 3.0-11
24ffec
- Fix error message printing (#585206)
24ffec
- Fix Source0 URL and Summary typo
24ffec
- Remove libX11-devel and libXft-devel BuildRequires as they are inherited
24ffec
  from tk-devel. Keep tcl-devel as tcl.h is included directly.
24ffec
24ffec
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-10
24ffec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
24ffec
24ffec
* Wed Jun 10 2009 Caolan McNamara <caolanm@redhat.com> - 3.0-9
24ffec
- Fixed fedora BZ 504957 - references to non-existing dirs in wnb
24ffec
24ffec
* Wed May 27 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-8
24ffec
- Fixed issues with the doc files duplication and ownership
24ffec
24ffec
* Wed May 27 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-7
24ffec
- Modified the %%files sections for both packages to only include the link in
24ffec
  the devel package and the .so in the main package.
24ffec
- Added %%pre and %%post sections
24ffec
24ffec
* Wed May 27 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-6
24ffec
- Added commands to build only shared libs and remove libtool's .la files
24ffec
  before packaging
24ffec
24ffec
* Tue May 19 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-5
24ffec
- Added the libtool patch to build libWN.so dynamic lib
24ffec
24ffec
* Wed Feb 18 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-4
24ffec
- Added Tom 'spot' Callaway's patch to not include the tk.h and tkDecls.h from
24ffec
  the upstream source, but instead rely on system tk headers
24ffec
24ffec
* Sun Jan 18 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-3
24ffec
- renamed rpm from WordNet to wordnet to be more consistent with other distos
24ffec
- split the devel package
24ffec
- borrowed more patches from the debian package
24ffec
24ffec
* Tue Jan 13 2009 Steven Fernandez <steve@lonetwin.net> - 3.0-2
24ffec
- patch to fix CVE-2008-3908
24ffec
- Added the wishwn man page from the debian wordnet package
24ffec
24ffec
* Sat Nov 29 2008 Steven Fernandez <steve@lonetwin.net> - 3.0-1
24ffec
- First build for Fedora 10
24ffec