]> git.pld-linux.org Git - packages/WordNet.git/blobdiff - WordNet.spec
- rel 4; fix build with tcl/tk 8.6
[packages/WordNet.git] / WordNet.spec
index 9d6793c19d35ca4dedc067a9b6dfe7b12be09336..0beff50478b53fb68714d58d3362038763a551b2 100644 (file)
@@ -1,21 +1,23 @@
 Summary:       Online lexical reference system, ie. smart dictionary
 Summary(pl.UTF-8):     System referencji słownikowych, czyli mądry słownik
 Name:          WordNet
-Version:       2.1
-Release:       0.11
+Version:       3.0
+Release:       4
 License:       Free to use (see COPYING)
 Group:         Applications/Dictionaries
-Source0:       ftp://ftp.cogsci.princeton.edu/pub/wordnet/2.1/%{name}-%{version}.tar.gz
-# Source0-md5: 081aa25baaccac602cebb61f6cb949e7
+Source0:       ftp://ftp.cogsci.princeton.edu/pub/wordnet/3.0/%{name}-%{version}.tar.bz2
+# Source0-md5: 89b4db7c6840ce69a8e315a3f83d996b
 Patch0:                %{name}-FHS.patch
 Patch1:                %{name}-shared.patch
-Patch2:                %{name}-typo.patch
+Patch2:                %{name}-dictdir.patch
+Patch3:                %{name}-build.patch
 URL:           http://wordnet.princeton.edu/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.59
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: tcl-devel >= 8.4
 BuildRequires: tk-devel >= 8.4
+BuildRequires: xorg-lib-libXScrnSaver-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,10 +28,6 @@ that are interchangeable in some context. Two kinds of relations are
 recognized: lexical and semantic. Lexical relations hold between word
 forms; semantic relations hold between word meanings.
 
-Information about WordNet, an online interface, and the various
-WordNet packages are available from our Web site at
-<%URL>.
-
 %description -l pl.UTF-8
 WordNet to system referencji słownikowych. Formy słów w WordNet są
 reprezentowane w ich pisowni; znaczenia słów są reprezentowane przez
@@ -79,6 +77,7 @@ Graficzny interfejs do sieciowej bazy danych słownika WordNet.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
@@ -86,7 +85,8 @@ Graficzny interfejs do sieciowej bazy danych słownika WordNet.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       CPPFLAGS="-DUSE_INTERP_RESULT %{rpmcppflags}"
 %{__make}
 
 %install
@@ -94,8 +94,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-# dunno. anyone needs this?
-rm -rf $RPM_BUILD_ROOT%{_prefix}/doc/{html,ps,pdf}
+%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/{html,ps,pdf}
+# just a copy of tk headers
+%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/tk
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -107,7 +108,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog README
 %attr(755,root,root) %{_bindir}/wn
-%attr(755,root,root) %{_libdir}/*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libWN.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libWN.so.0
 %{_mandir}/man1/wn.1*
 %{_mandir}/man1/wnintro.1*
 %dir %{_datadir}/%{name}
@@ -115,21 +117,29 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/*.so
-%{_libdir}/*.la
-%{_includedir}/*
-# funny. manual is there but no such program. rm -f it?
-%{_mandir}/man1/grind.1*
-%{_mandir}/man[357]/*
+%attr(755,root,root) %{_libdir}/libWN.so
+%{_libdir}/libWN.la
+%{_includedir}/wn.h
+# program not included
+#%{_mandir}/man1/grind.1*
+%{_mandir}/man3/binsrch.3*
+%{_mandir}/man3/morph.3*
+%{_mandir}/man3/wn*.3*
+%{_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*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/libWN.a
 
 %files browser
 %defattr(644,root,root,755)
-%{_datadir}/%{name}/wnres
-# anyone? is this prog needed?
 %attr(755,root,root) %{_bindir}/wishwn
 %attr(755,root,root) %{_bindir}/wnb
+%{_datadir}/%{name}/wnres
 %{_mandir}/man1/wnb.1*
This page took 0.074322 seconds and 4 git commands to generate.