3 %bcond_without static_libs # don't build static libraries
5 Summary: Suffix array library
6 Summary(pl.UTF-8): Biblioteka tablic sufiksowych
12 Source0: http://sary.sourceforge.net/%{name}-%{version}.tar.gz
13 # Source0-md5: 10b9a803025c5f428014a7f1ff849ecc
14 Patch0: %{name}-link.patch
15 URL: http://sary.sourceforge.net/
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake >= 1.4
18 BuildRequires: glib2-devel >= 2.0.0
19 BuildRequires: libtool
20 BuildRequires: pkgconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 sary is a suffix array library and tools.
26 It provides fast full-text search facilities for text files
27 on the order of 10 to 100 MB using a data structure called
28 a suffix array. It can also search specific fields in a text
29 file by assigning index points to those fields.
31 %description -l pl.UTF-8
32 sary to biblioteka oraz narzędzia do tablic sufiksowych.
34 Zapewnia szybkie funkcje do przeszukiwania pełnotekstowego dla
35 plików tekstowych rzędu wielkości od 10 do 100 MB przy użyciu
36 struktury danych zwanej tablicą sufiksową. Potrafi także
37 wyszukiwać konkretnych pól w pliku tekstowym przypisując punkty
41 Summary: Header files for sary library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sary
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: glib2-devel >= 2.0.0
48 Header files for sary library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki sary.
54 Summary: Static sary library
55 Summary(pl.UTF-8): Statyczna biblioteka sary
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
62 %description static -l pl.UTF-8
63 Statyczna biblioteka sary.
76 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
86 mv $RPM_BUILD_ROOT%{_datadir}/%{name}/docs devel-doc
88 # obsoleted by pkg-config
89 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsary.la
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog NEWS README TODO
100 %attr(755,root,root) %{_bindir}/mksary
101 %attr(755,root,root) %{_bindir}/sary
102 %attr(755,root,root) %{_libdir}/libsary.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libsary.so.10
104 %{_mandir}/man1/mksary.1*
105 %{_mandir}/man1/sary.1*
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libsary.so
112 %{_includedir}/sary.h
113 %{_pkgconfigdir}/sary.pc
115 %if %{with static_libs}
117 %defattr(644,root,root,755)