]>
Commit | Line | Data |
---|---|---|
10e73c14 AG |
1 | Summary: The C version of the libstemmer library |
2 | Name: libstemmer | |
e85db5da | 3 | Version: 20081124 |
10e73c14 AG |
4 | Release: 1 |
5 | License: BSD | |
6 | Group: Libraries | |
7 | Source0: http://snowball.tartarus.org/dist/%{name}_c.tgz | |
e85db5da | 8 | # Source0-md5: 190bca7fea9460a2213201fd875155ef |
10e73c14 AG |
9 | Patch0: %{name}-makefile.patch |
10 | URL: http://snowball.tartarus.org/ | |
11 | BuildRequires: libtool | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Snowball is a small string processing language designed for creating | |
16 | stemming algorithms for use in Information Retrieval. This site | |
17 | describes Snowball, and presents several useful stemmers which have | |
18 | been implemented using it. | |
19 | ||
20 | This package containst the C version of the libstemmer library. | |
21 | ||
22 | %package devel | |
23 | Summary: Header files for libstemmer library | |
24 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libstemmer | |
25 | Group: Development/Libraries | |
26 | Requires: %{name} = %{version}-%{release} | |
27 | ||
28 | %description devel | |
29 | Header files for libstemmer library. | |
30 | ||
31 | %description devel -l pl.UTF-8 | |
32 | Pliki nagłówkowe biblioteki libstemmer. | |
33 | ||
34 | %package static | |
35 | Summary: Static libstemmer library | |
36 | Summary(pl.UTF-8): Statyczna biblioteka libstemmer | |
37 | Group: Development/Libraries | |
38 | Requires: %{name}-devel = %{version}-%{release} | |
39 | ||
40 | %description static | |
41 | Static libstemmer library. | |
42 | ||
43 | %description static -l pl.UTF-8 | |
44 | Statyczna biblioteka libstemmer. | |
45 | ||
46 | %package utils | |
47 | Summary: The stemwords utility using the libstemmer library | |
48 | Summary(pl.UTF-8): Narzędzie stemwords korzystające z biblioteki libstemmer | |
49 | Group: Application/Text | |
50 | ||
51 | %description utils | |
52 | The stemwords utility using the libstemmer library | |
53 | ||
54 | %description utils -l pl.UTF-8 | |
55 | Narzędzie stemwords korzystające z biblioteki libstemmer. | |
56 | ||
57 | %prep | |
58 | %setup -q -n %{name}_c | |
59 | %patch0 -p0 | |
60 | ||
61 | %build | |
62 | %{__make} \ | |
63 | CFLAGS="%{rpmcflags} -Iinclude -fPIC" \ | |
64 | CC="%{__cc}" | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
70 | libdir=%{_libdir} \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README | |
e85db5da | 82 | %attr(755,root,root) %{_libdir}/libstemmer.so.*.* |
83 | %attr(755,root,root) %ghost %{_libdir}/libstemmer.so.0 | |
10e73c14 AG |
84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %{_includedir}/%{name} | |
e85db5da | 88 | %{_libdir}/libstemmer.so |
89 | %{_libdir}/libstemmer.la | |
10e73c14 AG |
90 | |
91 | %files static | |
92 | %defattr(644,root,root,755) | |
e85db5da | 93 | %{_libdir}/libstemmer.a |
10e73c14 AG |
94 | |
95 | %files utils | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_bindir}/stemwords |