]>
Commit | Line | Data |
---|---|---|
10e73c14 AG |
1 | Summary: The C version of the libstemmer library |
2 | Name: libstemmer | |
e8cc17cf | 3 | Version: 20090915 |
d17634d6 | 4 | Release: 2 |
10e73c14 AG |
5 | License: BSD |
6 | Group: Libraries | |
7 | Source0: http://snowball.tartarus.org/dist/%{name}_c.tgz | |
e8cc17cf | 8 | # Source0-md5: 530e491060442013e2c39d34275e4bfd |
10e73c14 | 9 | Patch0: %{name}-makefile.patch |
42de7bdc ER |
10 | Patch1: libtool-tag.patch |
11 | Patch2: optflags.patch | |
10e73c14 AG |
12 | URL: http://snowball.tartarus.org/ |
13 | BuildRequires: libtool | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Snowball is a small string processing language designed for creating | |
d17634d6 | 18 | stemming algorithms for use in Information Retrieval. |
10e73c14 AG |
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 | |
cc053af5 ER |
58 | %setup -qc |
59 | mv %{name}_c/* . | |
10e73c14 | 60 | %patch0 -p0 |
42de7bdc ER |
61 | %patch1 -p1 |
62 | %patch2 -p1 | |
10e73c14 AG |
63 | |
64 | %build | |
65 | %{__make} \ | |
42de7bdc ER |
66 | CC="%{__cc}" \ |
67 | OPTFLAGS="%{rpmcflags}" | |
10e73c14 AG |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | libdir=%{_libdir} \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc README | |
e85db5da | 85 | %attr(755,root,root) %{_libdir}/libstemmer.so.*.* |
86 | %attr(755,root,root) %ghost %{_libdir}/libstemmer.so.0 | |
10e73c14 AG |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %{_includedir}/%{name} | |
e85db5da | 91 | %{_libdir}/libstemmer.so |
92 | %{_libdir}/libstemmer.la | |
10e73c14 AG |
93 | |
94 | %files static | |
95 | %defattr(644,root,root,755) | |
e85db5da | 96 | %{_libdir}/libstemmer.a |
10e73c14 AG |
97 | |
98 | %files utils | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_bindir}/stemwords |