]> git.pld-linux.org Git - packages/libstemmer.git/blob - libstemmer.spec
up to 20130428 (timestamp of files)
[packages/libstemmer.git] / libstemmer.spec
1 Summary:        The C version of the libstemmer library
2 Name:           libstemmer
3 Version:        20130428
4 Release:        1
5 License:        BSD
6 Group:          Libraries
7 Source0:        http://snowball.tartarus.org/dist/%{name}_c.tgz
8 # Source0-md5:  78e9d4bbb878191e3de6a7355711fa43
9 Patch0:         %{name}-makefile.patch
10 Patch1:         libtool-tag.patch
11 Patch2:         optflags.patch
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
18 stemming algorithms for use in Information Retrieval.
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:          Applications/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 -qc
59 mv %{name}_c/* .
60 %patch0 -p0
61 %patch1 -p1
62 %patch2 -p1
63
64 %build
65 %{__make} \
66         CC="%{__cc}" \
67         OPTFLAGS="%{rpmcflags}"
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
85 %attr(755,root,root) %{_libdir}/libstemmer.so.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libstemmer.so.0
87
88 %files devel
89 %defattr(644,root,root,755)
90 %{_includedir}/%{name}
91 %{_libdir}/libstemmer.so
92 %{_libdir}/libstemmer.la
93
94 %files static
95 %defattr(644,root,root,755)
96 %{_libdir}/libstemmer.a
97
98 %files utils
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_bindir}/stemwords
This page took 0.050991 seconds and 3 git commands to generate.