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