]>
Commit | Line | Data |
---|---|---|
6b9e13ca JB |
1 | Summary: Augmented letter transducer tools for natural language processing |
2 | Summary(pl.UTF-8): Narzędzia do przetwarzania słów w językach naturalnych | |
3 | Name: lttoolbox | |
0ff18a68 | 4 | Version: 3.5.0 |
78ddaac8 | 5 | Release: 1 |
6b9e13ca JB |
6 | License: GPL v2+ |
7 | Group: Applications/Text | |
8 | Source0: http://downloads.sourceforge.net/apertium/%{name}-%{version}.tar.gz | |
0ff18a68 | 9 | # Source0-md5: a6c5f3dd9bd76fc9ab3691c2fa2fb6e9 |
6b9e13ca JB |
10 | URL: http://wiki.apertium.org/wiki/Lttoolbox |
11 | BuildRequires: autoconf >= 2.52 | |
12 | BuildRequires: automake | |
0ff18a68 JB |
13 | # -std=c++14 |
14 | BuildRequires: libstdc++-devel >= 6:5.0 | |
6b9e13ca JB |
15 | BuildRequires: libtool >= 2:1.5 |
16 | BuildRequires: libxml2-devel >= 1:2.6.17 | |
17 | BuildRequires: pkgconfig | |
18 | Requires: libxml2 >= 1:2.6.17 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | lttoolbox is a toolbox for lexical processing, morphological analysis | |
23 | and generation of words. The analysis is the process of splitting a | |
24 | word (e.g. cats) into its lemma 'cat' and the grammatical information | |
25 | <n><pl>. The generation is the opposite process. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | lttoolbox to zestaw narzędzi do przetwarzania leksykalnego, analizy | |
29 | morfologicznej i tworzenia słów. Analiza to proces podziału słowa (np. | |
30 | "koty") na rdzeń "kot" i informację gramatyczną (rzeczownik liczby | |
31 | mnogiej). Tworzenie słów to proces odwrotny. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for lttoolbox library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lttoolbox | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
0ff18a68 | 38 | Requires: libstdc++-devel >= 6:5.0 |
6b9e13ca JB |
39 | Requires: libxml2-devel >= 1:2.6.17 |
40 | ||
41 | %description devel | |
42 | Header files for lttoolbox library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki lttoolbox. | |
46 | ||
47 | %package static | |
48 | Summary: Static lttoolbox library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka lttoolbox | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static lttoolbox library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka lttoolbox. | |
58 | ||
59 | %prep | |
60 | %setup -q | |
6b9e13ca JB |
61 | |
62 | %build | |
63 | %{__libtoolize} | |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure | |
69 | ||
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
0ff18a68 JB |
78 | # obsoleted by pkg-config |
79 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblttoolbox3.la | |
80 | ||
6b9e13ca JB |
81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc AUTHORS ChangeLog NEWS README | |
90 | %attr(755,root,root) %{_bindir}/lt-comp | |
91 | %attr(755,root,root) %{_bindir}/lt-expand | |
4306e092 | 92 | %attr(755,root,root) %{_bindir}/lt-print |
6b9e13ca JB |
93 | %attr(755,root,root) %{_bindir}/lt-proc |
94 | %attr(755,root,root) %{_bindir}/lt-tmxcomp | |
95 | %attr(755,root,root) %{_bindir}/lt-tmxproc | |
78ddaac8 | 96 | %attr(755,root,root) %{_bindir}/lt-trim |
0ff18a68 JB |
97 | %attr(755,root,root) %{_libdir}/liblttoolbox3-3.5.so.*.*.* |
98 | %attr(755,root,root) %ghost %{_libdir}/liblttoolbox3-3.5.so.1 | |
6b9e13ca JB |
99 | %{_datadir}/lttoolbox |
100 | %{_mandir}/man1/lt-comp.1* | |
101 | %{_mandir}/man1/lt-expand.1* | |
4306e092 | 102 | %{_mandir}/man1/lt-print.1* |
6b9e13ca JB |
103 | %{_mandir}/man1/lt-proc.1* |
104 | %{_mandir}/man1/lt-tmxcomp.1* | |
105 | %{_mandir}/man1/lt-tmxproc.1* | |
78ddaac8 | 106 | %{_mandir}/man1/lt-trim.1* |
6b9e13ca JB |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_libdir}/liblttoolbox3.so | |
0ff18a68 | 111 | %{_includedir}/lttoolbox-3.5 |
78ddaac8 | 112 | %{_pkgconfigdir}/lttoolbox.pc |
6b9e13ca JB |
113 | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/liblttoolbox3.a |