]>
Commit | Line | Data |
---|---|---|
10e73c14 | 1 | Summary: The C version of the libstemmer library |
251a7767 | 2 | Summary(pl.UTF-8): Wersja C biblioteki libstemmer |
10e73c14 | 3 | Name: libstemmer |
fd675f77 JB |
4 | Version: 20191002 |
5 | Release: 1 | |
10e73c14 AG |
6 | License: BSD |
7 | Group: Libraries | |
fd675f77 JB |
8 | #Source0Download: https://snowballstem.org/download.html |
9 | Source0: https://snowballstem.org/dist/%{name}_c.tgz | |
10 | # Source0-md5: f8288a861db7c97dc4750020c7c7aa6f | |
10e73c14 | 11 | Patch0: %{name}-makefile.patch |
709d230d | 12 | URL: http://snowballstem.org/ |
10e73c14 AG |
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 | 19 | |
931d8da8 | 20 | This package contains the C version of the libstemmer library. |
10e73c14 | 21 | |
251a7767 JB |
22 | %description -l pl.UTF-8 |
23 | Snowball to niewielki język przetwarzania łańcuchów znaków, | |
24 | zaprojektowany do tworzenia algorytmów określających tematy wyrazów, | |
25 | wykorzystywanych przy wyszukiwaniu informacji. | |
26 | ||
10e73c14 AG |
27 | %package devel |
28 | Summary: Header files for libstemmer library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libstemmer | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
34 | Header files for libstemmer library. | |
35 | ||
36 | %description devel -l pl.UTF-8 | |
37 | Pliki nagłówkowe biblioteki libstemmer. | |
38 | ||
39 | %package static | |
40 | Summary: Static libstemmer library | |
41 | Summary(pl.UTF-8): Statyczna biblioteka libstemmer | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-devel = %{version}-%{release} | |
44 | ||
45 | %description static | |
46 | Static libstemmer library. | |
47 | ||
48 | %description static -l pl.UTF-8 | |
49 | Statyczna biblioteka libstemmer. | |
50 | ||
51 | %package utils | |
52 | Summary: The stemwords utility using the libstemmer library | |
53 | Summary(pl.UTF-8): Narzędzie stemwords korzystające z biblioteki libstemmer | |
7ed873fb | 54 | Group: Applications/Text |
10e73c14 AG |
55 | |
56 | %description utils | |
57 | The stemwords utility using the libstemmer library | |
58 | ||
59 | %description utils -l pl.UTF-8 | |
60 | Narzędzie stemwords korzystające z biblioteki libstemmer. | |
61 | ||
62 | %prep | |
cc053af5 | 63 | %setup -qc |
fd675f77 JB |
64 | %{__mv} %{name}_c/* . |
65 | %patch0 -p1 | |
10e73c14 AG |
66 | |
67 | %build | |
fd675f77 JB |
68 | CFLAGS="%{rpmcflags}" \ |
69 | CPPFLAGS="%{rpmcppflags}" \ | |
70 | LDFLAGS="%{rpmldflags}" \ | |
10e73c14 | 71 | %{__make} \ |
42de7bdc | 72 | CC="%{__cc}" \ |
fd675f77 | 73 | libdir=%{_libdir} |
10e73c14 AG |
74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | libdir=%{_libdir} \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
10e73c14 AG |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
251a7767 JB |
85 | %post -p /sbin/ldconfig |
86 | %postun -p /sbin/ldconfig | |
87 | ||
10e73c14 AG |
88 | %files |
89 | %defattr(644,root,root,755) | |
fd675f77 | 90 | %doc COPYING NEWS README |
251a7767 | 91 | %attr(755,root,root) %{_libdir}/libstemmer.so.*.*.* |
e85db5da | 92 | %attr(755,root,root) %ghost %{_libdir}/libstemmer.so.0 |
10e73c14 AG |
93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
251a7767 | 96 | %attr(755,root,root) %{_libdir}/libstemmer.so |
e85db5da | 97 | %{_libdir}/libstemmer.la |
fd675f77 | 98 | %{_includedir}/libstemmer |
10e73c14 AG |
99 | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
e85db5da | 102 | %{_libdir}/libstemmer.a |
10e73c14 AG |
103 | |
104 | %files utils | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_bindir}/stemwords |