Name: sary
Version: 1.2.0
Release: 1
-License: LGPL
+License: LGPL v2+
Group: Libraries
Source0: http://sary.sourceforge.net/%{name}-%{version}.tar.gz
# Source0-md5: 10b9a803025c5f428014a7f1ff849ecc
Patch0: %{name}-link.patch
URL: http://sary.sourceforge.net/
-BuildRequires: glib2-devel
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake >= 1.4
+BuildRequires: glib2-devel >= 2.0.0
BuildRequires: libtool
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
sary is a suffix array library and tools.
+
It provides fast full-text search facilities for text files
on the order of 10 to 100 MB using a data structure called
a suffix array. It can also search specific fields in a text
file by assigning index points to those fields.
-#%description -l pl.UTF-8
+%description -l pl.UTF-8
+sary to biblioteka oraz narzędzia do tablic sufiksowych.
+
+Zapewnia szybkie funkcje do przeszukiwania pełnotekstowego dla
+plików tekstowych rzędu wielkości od 10 do 100 MB przy użyciu
+struktury danych zwanej tablicą sufiksową. Potrafi także
+wyszukiwać konkretnych pól w pliku tekstowym przypisując punkty
+indeksu do tych pól.
%package devel
Summary: Header files for sary library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sary
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: glib2-devel
+Requires: glib2-devel >= 2.0.0
%description devel
Header files for sary library.
%{__rm} -rf devel-doc
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/docs devel-doc
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsary.la
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/mksary
+%attr(755,root,root) %{_bindir}/sary
%attr(755,root,root) %{_libdir}/libsary.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libsary.so.10
-%{_mandir}/man1/*.1*
+%{_mandir}/man1/mksary.1*
+%{_mandir}/man1/sary.1*
%files devel
%defattr(644,root,root,755)
%doc devel-doc/*
-%{_libdir}/libsary.so
+%attr(755,root,root) %{_libdir}/libsary.so
%{_includedir}/sary
%{_includedir}/sary.h
%{_pkgconfigdir}/sary.pc