Cześć, Jak w temacie, do testów - czekam na uwagi, szczególnie krytyczne.
Zmiany: - teraz (u mnie) wn i wnb działa...(zmiana ścieżki) - dodana ikona (128x128) - dodany plik .desktop Mam nadzieje, że nic nie pokręciłęm.. Przemysław Firszt
WordNet-browser.desktop
Description: application/desktop
--- WordNet.spec 2008-01-27 22:08:46.000000000 +0000 +++ WordNet.spec. 2008-01-27 21:49:54.000000000 +0000 @@ -3,11 +3,13 @@ Summary(pl.UTF-8): System referencji słownikowych, czyli mądry słownik Name: WordNet Version: 3.0 -Release: 1 +Release: 2 License: Free to use (see COPYING) Group: Applications/Dictionaries Source0: ftp://ftp.cogsci.princeton.edu/pub/wordnet/3.0/%{name}-%{version}.tar.bz2 # Source0-md5: 89b4db7c6840ce69a8e315a3f83d996b +Source1: %{name}-browser.png +Source2: %{name}-browser.desktop Patch0: %{name}-FHS.patch Patch1: %{name}-shared.patch URL: http://wordnet.princeton.edu/ @@ -91,8 +93,12 @@ %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} + %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir} +install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} # dunno. anyone needs this? rm -rf $RPM_BUILD_ROOT%{_prefix}/doc/{html,ps,pdf} @@ -132,6 +138,8 @@ # anyone? is this prog needed? %attr(755,root,root) %{_bindir}/wishwn %attr(755,root,root) %{_bindir}/wnb +%attr(644,root,root) %{_desktopdir}/%{name}-browser.desktop +%attr(644,root,root) %{_pixmapsdir}/%{name}-browser.png %{_mandir}/man1/wnb.1* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
<<attachment: WordNet-browser.png>>
--- WordNet-2.1/dict/Makefile.am~ 2005-05-13 21:03:17.000000000 +0300
+++ WordNet-2.1/dict/Makefile.am 2005-12-17 22:29:53.000000000 +0200
@@ -1,2 +1,2 @@
-dictdir = $(prefix)/dict
+dictdir = $(datadir)/WordNet/dict
dict_DATA = adj.exc adv.exc cntlist cntlist.rev data.adj data.adv data.noun data.verb frames.vrb index.adj index.adv index.noun index.sense index.verb log.grind.2.1 noun.exc sentidx.vrb sents.vrb verb.Framestext verb.exc
--- WordNet-2.1/src/wnb~ 2005-06-07 22:19:22.000000000 +0300
+++ WordNet-2.1/src/wnb 2005-12-17 23:06:27.000000000 +0200
@@ -103,7 +103,7 @@
if {$tcl_platform(platform) == "unix"} {
if {[lsearch -exact [array names env] WNHOME] == -1} {
- set resourcedir "/usr/local/WordNet-3.0/lib/wnres"
+ set resourcedir "/usr/share/WordNet/wnres"
} else {
set resourcedir "$env(WNHOME)/lib/wnres"
}
--- WordNet-2.1/lib/wnres/Makefile.am~ 2005-06-17 22:15:51.000000000 +0300
+++ WordNet-2.1/lib/wnres/Makefile.am 2005-12-17 23:10:36.000000000 +0200
@@ -1,3 +1,3 @@
EXTRA_DIST = license.txt wn.xbm wnb.man wngloss.man
-wnresdir = $(prefix)/lib/wnres
+wnresdir = $(datadir)/WordNet/wnres
wnres_DATA = license.txt wn.xbm wnb.man wngloss.man
--- WordNet-3.0/configure.ac. 2008-01-27 12:30:14.000000000 +0000
+++ WordNet-3.0/configure.ac 2008-01-27 12:30:25.000000000 +0000
@@ -33,7 +33,7 @@
SC_LOAD_TKCONFIG
# Set default installation prefix.
-AC_PREFIX_DEFAULT([/usr/local/WordNet-3.0])
+AC_PREFIX_DEFAULT([/usr/share/WordNet])
ac_prefix=$prefix
if test "x$ac_prefix" = "xNONE"; then
ac_prefix=$ac_default_prefix
--- WordNet-3.0/include/wn.h. 2007-01-03 21:51:35.000000000 +0000
+++ WordNet-3.0/include/wn.h 2008-01-27 16:04:30.000000000 +0000
@@ -28,9 +28,7 @@
#define CNTLISTFILE "%s\\cntlist.rev"
#else
#define DICTDIR "/dict"
-#ifndef DEFAULTPATH
-#define DEFAULTPATH "/usr/local/WordNet-3.0/dict"
-#endif
+#define DEFAULTPATH "/usr/share/WordNet/dict"
#define DATAFILE "%s/data.%s"
#define INDEXFILE "%s/index.%s"
#define SENSEIDXFILE "%s/index.sense"
_______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
