1 %include /usr/lib/rpm/macros.perl
2 Summary: Simple Web Indexing System for Humans - Enhanced
3 Summary(pl): Prosty system indeksowania stron WWW - wersja rozszerzona
8 Group: Applications/Text
9 Source0: http://swish-e.org/Download/%{name}-%{version}.tar.gz
10 # Source0-md5: 1606e2f55034540f88c1748eeaae5274
11 URL: http://swish-e.org/
13 BuildRequires: libxml2-devel
14 BuildRequires: pcre-devel
15 BuildRequires: rpm-perlprov
16 BuildRequires: zlib-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Swish-e is Simple Web Indexing System for Humans - Enhanced.
22 Swish-e can quickly and easily index directories of files or remote
23 web sites and search the generated indexes.
25 Swish-e is extremely fast in both indexing and searching, highly
26 configurable, and can be seamlessly integrated with existing web sites
27 to maintain a consistent design. Swish-e can index web pages, but can
28 just as easily index text files, mailing list archives, or data stored
29 in a relational database.
31 Swish-e key features are:
32 - Emacs/Gnus mail index in cooordination with nnir.el
33 - Fast - many factors that affect speed, but a search on this server
34 that returns a thousand documents takes only a few seconds.
35 - Flexible - a number of configuration options provide you a high
36 degree of control over what is indexed and how.
37 - Powerful - the AND, OR and NOT operators are supported, words can be
38 truncated (using *), and searches can be limited to particular fields
39 (META tag fields, TITLEs, etc.)
40 - Free - nothing, zip, zero.
41 - It's made for Web sites - In indexing HTML files, SWISH-E can ignore
42 data in most tags while giving higher relevance to information in
43 header and title tags. Titles are extracted from HTML files and appear
44 in the search results. SWISH can automatically search your whole Web
45 site for you in one pass, if it's under one directory. You can also
46 limit your search to words in HTML titles, comments, emphasized tags,
47 and META tags. In addition, 8-bit HTML characters can be indexed,
48 converted, and searched.
49 - It creates portable indexes - Index files consist of only one file,
50 so they can be transported around and easily maintained.
51 - You can fix the source - We encourage people to send in patches and
52 suggestions on how to make SWISH-E better. You may want to join the
56 Swish-e jest prostym systemem indeksuj±cym WWW dla ludzi - w wersji
59 Swish-e mo¿e zgrabnie i ³atwo indeksowaæ katalogi plików lub zdalne
60 strony WWW i przeszukiwaæ wygenerowane indeksy.
62 Swish-e jest ekstremalnie szybki zarówno w indeksowaniu i
63 wyszukiwaniu, mocno konfigurowalny, i mo¿e byæ ³atwo zintegrowany z
64 istniej±cymi stronami WWW w celu konfiguracji jego wygl±du. Swish-e
65 mo¿e indeksowaæ nie tylko strony WWW, ale tak¿e pliki tekstowe,
66 archiwa list pocztowych lub dane przechowywane w relacyjnych bazach
69 Kluczowymi w³a¶ciwo¶ciami swish-a s±:
70 - Zgodne z Emacs/Gnus indeksowanie poczty w po³±czeniu z nnir.el
71 - Szybki - wiele wspó³czynników ma wp³yw na prêdko¶æ, ale wyszukiwanie
72 na serwerze zwracaj±ce tysi±ce dokumentów zabiera tylko kilka sekund.
73 - Elastyczny - du¿a liczba opcji konfiguracyjnych udostêpnia wysoki
74 stopieñ mo¿liwo¶ci okre¶lenia co i jak ma byæ indeksowane.
75 - Potê¿ny - operatory AND, OR i NOT s± obs³ugiwane, s³owa mog± byæ
76 obcinane(korzystaj±c z *), i wyszukiwanie ograniczane do konkretnych
77 pól (znaczniki META, tytu³y itp.)
78 - Wolny - bezp³atny, darmowy, za friko.
79 - Stworzony dla stron WWW - indeksuje pliki HTML, mo¿e ignorowaæ dane
80 w wiêkszo¶ci znaczników, przyznaj±c wiêksz± wagê informacj± w
81 nag³ówkach i tytu³ach. Tytu³y mog± byæ wyodrêbniane z plików HTML i
82 pojawiaæ siê w rezultatach wyszukiwania. SWISH mo¿e automatycznie
83 przeszukaæ ca³± stronê WWW w jednym przej¶ciu, je¿eli jest w jednym
84 katalogu. Mo¿na tak¿e ograniczyæ wyszukiwanie do s³ów w tytu³ach HTML,
85 komentarzach i znacznikach META. Dodatkowo - 8-bitowe znaki HTML mog±
86 byæ indeksowane, przekszta³cane i przeszukiwane.
87 - Tworzy przeno¶ne indeksy - s± zawarte w tylko jednym pliku, wiêc
88 mog± byæ ³atwo transportowane i zarz±dzane.
89 - Mo¿na poprawiæ ¼ród³a - wszyscy s± proszeni o wysy³anie ³at i uwag
90 jak ulepszyæ SWISH-E. Mo¿na siê te¿ przy³±czyæ do dyskusji na temat
94 Summary: Documentation for swish-e
95 Summary(pl): Dokumentacja dla swish-e
99 SWISH-E documentation and examples
101 %description doc -l pl
102 Dokumentacja i przyk³ady dla SWISH-E
105 Summary: SWISH-E - PERL Scripts and Modules
106 Summary(pl): SWISH-E - Skrypty i modu³y dla PERL-a
107 Group: Applications/Text
108 Requires: %{name} = %{version}-%{release}
111 PERL SWISH-E language bindings and scripts.
113 %description perl -l pl
114 Skrypty i modu³y perlowe dla SWISH-E.
117 Summary: Header files for swish-e
118 Summary(pl): Pliki nag³ówkowe dla swish-e
119 Group: Development/Libraries
120 Requires: %{name} = %{version}-%{release}
123 Header files for swish-e.
125 %description devel -l pl
126 Pliki nag³ówkowe dla swish-e.
129 Summary: Static library for swish-e
130 Summary(pl): Biblioteka statyczna dla swish-e
131 Group: Development/Libraries
132 Requires: %{name}-devel = %{version}-%{release}
135 Static library for swish-e.
137 %description static -l pl
138 Biblioteka statyczna dla swish-e.
151 %{__perl} Makefile.PL \
153 CCFLAGS="%{rpmcflags} -I../src" \
154 LIBS="%{rpmldflags} -L../src/.libs -lswish-e"
157 # doesn't work when skip founding swish-e binary
162 rm -rf $RPM_BUILD_ROOT
165 DESTDIR=$RPM_BUILD_ROOT
167 mv $RPM_BUILD_ROOT%{_docdir}/%{name} %{name}-doc
171 DESTDIR=$RPM_BUILD_ROOT \
176 rm -rf $RPM_BUILD_ROOT
178 %post -p /sbin/ldconfig
179 %postun -p /sbin/ldconfig
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_bindir}/%{name}
184 %attr(755,root,root) %{_libdir}/libswish-e.so.*.*.*
185 %dir %{_prefix}/lib/swish-e
186 %attr(755,root,root) %{_prefix}/lib/swish-e/swishspider
190 %defattr(644,root,root,755)
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_bindir}/swish-filter-test
196 %{_prefix}/lib/%{name}/perl
197 %attr(755,root,root) %{_prefix}/lib/%{name}/*.pl
198 %attr(755,root,root) %{_prefix}/lib/%{name}/*.cgi
200 %dir %{perl_vendorarch}/SWISH
201 %{perl_vendorarch}/SWISH/*.pm
202 %dir %{perl_vendorarch}/auto/SWISH
203 %dir %{perl_vendorarch}/auto/SWISH/API
204 %{perl_vendorarch}/auto/SWISH/API/*.bs
205 %attr(755,root,root) %{perl_vendorarch}/auto/SWISH/API/*.so
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/libswish-e.so
210 %{_libdir}/libswish-e.la
214 %defattr(644,root,root,755)
215 %{_libdir}/libswish-e.a