]> git.pld-linux.org Git - packages/sary.git/blame - sary.spec
- pl, cleanup
[packages/sary.git] / sary.spec
CommitLineData
d7e4da32
JR
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Suffix array library
6Summary(pl.UTF-8): Biblioteka tablic sufiksowych
7Name: sary
8Version: 1.2.0
9Release: 1
181c3df8 10License: LGPL v2+
d7e4da32
JR
11Group: Libraries
12Source0: http://sary.sourceforge.net/%{name}-%{version}.tar.gz
13# Source0-md5: 10b9a803025c5f428014a7f1ff849ecc
14Patch0: %{name}-link.patch
15URL: http://sary.sourceforge.net/
181c3df8
JB
16BuildRequires: autoconf >= 2.52
17BuildRequires: automake >= 1.4
18BuildRequires: glib2-devel >= 2.0.0
d7e4da32 19BuildRequires: libtool
181c3df8 20BuildRequires: pkgconfig
d7e4da32
JR
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24sary is a suffix array library and tools.
181c3df8 25
d7e4da32
JR
26It provides fast full-text search facilities for text files
27on the order of 10 to 100 MB using a data structure called
28a suffix array. It can also search specific fields in a text
29file by assigning index points to those fields.
30
181c3df8
JB
31%description -l pl.UTF-8
32sary to biblioteka oraz narzędzia do tablic sufiksowych.
33
34Zapewnia szybkie funkcje do przeszukiwania pełnotekstowego dla
35plików tekstowych rzędu wielkości od 10 do 100 MB przy użyciu
36struktury danych zwanej tablicą sufiksową. Potrafi także
37wyszukiwać konkretnych pól w pliku tekstowym przypisując punkty
38indeksu do tych pól.
d7e4da32
JR
39
40%package devel
41Summary: Header files for sary library
42Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sary
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
181c3df8 45Requires: glib2-devel >= 2.0.0
d7e4da32
JR
46
47%description devel
48Header files for sary library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki sary.
52
53%package static
54Summary: Static sary library
55Summary(pl.UTF-8): Statyczna biblioteka sary
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static sary library.
61
62%description static -l pl.UTF-8
63Statyczna biblioteka sary.
64
65%prep
66%setup -q
67%patch0 -p1
68
69%build
70%{__libtoolize}
71%{__aclocal}
72%{__autoconf}
73%{__autoheader}
74%{__automake}
75%configure \
76 %{!?with_static_libs:--disable-static}
77%{__make}
78
79%install
80rm -rf $RPM_BUILD_ROOT
81
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
84
85%{__rm} -rf devel-doc
86mv $RPM_BUILD_ROOT%{_datadir}/%{name}/docs devel-doc
87
181c3df8
JB
88# obsoleted by pkg-config
89%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsary.la
90
d7e4da32
JR
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%post -p /sbin/ldconfig
95%postun -p /sbin/ldconfig
96
97%files
98%defattr(644,root,root,755)
99%doc AUTHORS ChangeLog NEWS README TODO
181c3df8
JB
100%attr(755,root,root) %{_bindir}/mksary
101%attr(755,root,root) %{_bindir}/sary
d7e4da32
JR
102%attr(755,root,root) %{_libdir}/libsary.so.*.*.*
103%attr(755,root,root) %ghost %{_libdir}/libsary.so.10
181c3df8
JB
104%{_mandir}/man1/mksary.1*
105%{_mandir}/man1/sary.1*
d7e4da32
JR
106
107%files devel
108%defattr(644,root,root,755)
109%doc devel-doc/*
181c3df8 110%attr(755,root,root) %{_libdir}/libsary.so
d7e4da32
JR
111%{_includedir}/sary
112%{_includedir}/sary.h
113%{_pkgconfigdir}/sary.pc
114
115%if %{with static_libs}
116%files static
117%defattr(644,root,root,755)
118%{_libdir}/libsary.a
119%endif
This page took 0.114419 seconds and 4 git commands to generate.