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