[wordnet] Move Tk browser to sub-package wordnet-browser

Petr Pisar ppisar at fedoraproject.org
Thu Sep 6 16:01:20 UTC 2012


commit 6f31c82e67040d1b9cf2e7ac4e14182ad70dabed
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Sep 6 17:00:40 2012 +0200

    Move Tk browser to sub-package wordnet-browser

 wordnet.spec |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/wordnet.spec b/wordnet.spec
index 6c72385..730b79e 100644
--- a/wordnet.spec
+++ b/wordnet.spec
@@ -18,8 +18,6 @@ Patch6:         wordnet-3.0-use_system_tk_headers.patch
 Patch7:         wordnet-3.0-libtool.patch
 # Bug #585206
 Patch8:         wordnet-3.0-error_message.patch
-Requires:       font(:lang=en)
-Requires:       tcl, tk
 BuildRequires:  automake >= 1.8
 BuildRequires:  libtool
 BuildRequires:  tcl-devel
@@ -36,16 +34,27 @@ 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 browser
+Summary:    Tk browser for WordNet
+Group:      Applications/Text
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+Requires:   font(:lang=en)
+
+%description browser
+This package contains graphical browser for WordNet database.
+
+
 %package devel
 Summary:    The development libraries and header files for WordNet
 Group:      Development/Libraries
 Requires:   %{name} = %{version}-%{release}
-Requires:   tcl-devel, tk-devel
 
 %description devel
 This package contains the libraries and header files required to create
 applications based on WordNet.
 
+
 %prep
 %setup -q -n WordNet-3.0
 %patch0 -p1 -b .cve-2008-2149
@@ -91,15 +100,24 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING INSTALL ChangeLog README doc/{html,ps,pdf}
-%{_bindir}/wishwn
 %{_bindir}/wn
-%{_bindir}/wnb
-%{_mandir}/man1/*.1.gz
+%{_mandir}/man1/grind.1.gz
+%{_mandir}/man1/wn.1.gz
+%{_mandir}/man1/wnintro.1.gz
 %{_mandir}/man5/*.5.gz
 %{_mandir}/man7/*.7.gz
 %{_datadir}/%{name}-%{version}/
+%exclude %{_datadir}/%{name}-%{version}/lib/wnres/
 %{_libdir}/libWN.so.*
 
+%files browser
+%defattr(-,root,root,-)
+%{_bindir}/wishwn
+%{_bindir}/wnb
+%{_mandir}/man1/wishwn.1.gz
+%{_mandir}/man1/wnb.1.gz
+%{_datadir}/%{name}-%{version}/lib/wnres/
+
 %files devel
 %defattr(-,root,root,-)
 %{_mandir}/man3/*.3.gz
@@ -110,6 +128,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Thu Sep 06 2012 Petr Pisar <ppisar at redhat.com> - 3.0-18
 - wnb requires a font to start
+- Move Tk browser to sub-package wordnet-browser
 
 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list