]> git.pld-linux.org Git - packages/WordNet.git/blob - WordNet.spec
- release 2
[packages/WordNet.git] / WordNet.spec
1 Summary:        Online lexical reference system, ie. smart dictionary
2 Summary(pl):    System referencji s³ownikowych, czyli m±dry s³ownik
3 Name:           WordNet
4 Version:        1.7.1
5 Release:        2
6 License:        Free to use (see LICENSE)
7 Group:          Applications/Dictionaries
8 Source0:        ftp://ftp.cogsci.princeton.edu/pub/wordnet/%{version}/WordNet-%{version}.tar.gz
9 # Source0-md5:  5c8e569339cf7d8e727d884234365508
10 Patch0:         %{name}-includes.patch
11 Patch1:         %{name}-shared.patch
12 Patch2:         %{name}-tcltk.patch
13 URL:            http://www.cogsci.princeton.edu/~wn/
14 BuildRequires:  tcl-devel >= 8.4
15 BuildRequires:  tk-devel >= 8.4
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 WordNet is an online lexical reference system. Word forms in WordNet
20 are represented in their familiar orthography; word meanings are
21 represented by synonym sets (synset) - lists of synonymous word forms
22 that are interchangeable in some context. Two kinds of relations are
23 recognized: lexical and semantic. Lexical relations hold between word
24 forms; semantic relations hold between word meanings.
25
26 Information about WordNet, an online interface, and the various
27 WordNet packages are available from our Web site at
28 %URL
29
30 %description -l pl
31 WordNet to system referencji s³ownikowych. Formy s³ów w WordNet s±
32 reprezentowane w ich pisowni; znaczenia s³ów s± reprezentowane przez
33 zestawy synonimów (synset) - listy form synonimów, które s± zamienne w
34 pewnym kontek¶cie. S± rozpoznawane dwa rodzaje relacji: leksykalna i
35 semantyczna. Leksykalne zachodz± miêdzy formami s³ów; semantyczne
36 miêdzy ich znaczeniami.
37
38 %package devel
39 Summary:        Header files, library, and development documentation for WordNet
40 Summary(pl):    Pliki nag³ówkowe, biblioteka i dokumentacja do WordNet
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}
43
44 %description devel
45 Header files and development documentation for WordNet.
46
47 %description devel -l pl
48 Pliki nag³ówkowe, biblioteka i dokumentacja do WordNet.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53 %patch1 -p1
54 %patch2 -p1
55
56 %build
57 %define wnopts "PLATFORM=linux WN_ROOT=%{_prefix} %WN_DICT=%{_datadir}/%{name}"
58
59 ff=src/include/wnconsts.h
60 sed 's|/usr/local/%{name}-%{version}/dict|%{_datadir}/%{name}|' < $ff > $ff.fix
61 mv -f $ff.fix $ff
62
63 %{__make} %{wnopts} clean
64 %{__make} %{wnopts} -C src/lib
65 %{__make} %{wnopts} LOCAL_LDFLAGS=-dynamic -C src/wn
66 %{__make} %{wnopts} LOCAL_LDFLAGS=-dynamic -C src/wnb
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}} \
71         $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/man{1,3,5,7}}
72
73 install src/wn/wn $RPM_BUILD_ROOT%{_bindir}
74 install src/wnb/{wnb,wishwn} $RPM_BUILD_ROOT%{_bindir}
75
76 %{__make} -C dict WN_INSTALLDIR=$RPM_BUILD_ROOT%{_datadir}/%{name} install
77 %{__make} -C man  WN_INSTALLDIR=$RPM_BUILD_ROOT%{_mandir} install
78
79 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/wnb*
80
81 install src/lib/libwn.{a,so} $RPM_BUILD_ROOT%{_libdir}
82 install src/include/wn*.h $RPM_BUILD_ROOT%{_includedir}
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/*
93 %{_datadir}/%{name}
94 %attr(755,root,root) %{_libdir}/*.so
95 %{_mandir}/man1/*
96 %doc CHANGES INSTALL LICENSE README.doc README.list README.tcltk UNBUNDLE
97
98 %files devel
99 %defattr(644,root,root,755)
100 %{_includedir}/*
101 %{_libdir}/*.a
102 %{_mandir}/man[357]/*
This page took 0.067381 seconds and 4 git commands to generate.