]>
Commit | Line | Data |
---|---|---|
321a2811 | 1 | %include /usr/lib/rpm/macros.perl |
7ace2bef | 2 | Summary: Simple Web Indexing System for Humans - Enhanced |
2e3a5650 | 3 | Summary(pl.UTF-8): Prosty system indeksowania stron WWW - wersja rozszerzona |
7ace2bef | 4 | Name: swish-e |
45fe6c17 JR |
5 | Version: 2.4.7 |
6 | Release: 1 | |
c7f841ac | 7 | License: GPL/LGPL |
7ace2bef | 8 | Group: Applications/Text |
1f095d04 | 9 | Source0: http://swish-e.org/distribution/%{name}-%{version}.tar.gz |
45fe6c17 JR |
10 | # Source0-md5: 736db7a65aed48bb3e2587c52833642d |
11 | Patch0: format-security.patch | |
7ace2bef | 12 | URL: http://swish-e.org/ |
13 | #Icon: swish-e.xpm | |
14 | BuildRequires: libxml2-devel | |
15 | BuildRequires: pcre-devel | |
321a2811 | 16 | BuildRequires: rpm-perlprov |
7ace2bef | 17 | BuildRequires: zlib-devel |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
2a83819e | 21 | Swish-e is Simple Web Indexing System for Humans - Enhanced. |
7ace2bef | 22 | |
23 | Swish-e can quickly and easily index directories of files or remote | |
24 | web sites and search the generated indexes. | |
25 | ||
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. | |
31 | ||
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 | |
54 | SWISH-E Discussion. | |
55 | ||
179b291f JR |
56 | %description -l pl.UTF-8 |
57 | Swish-e jest prostym systemem indeksującym WWW dla ludzi - w wersji | |
2a83819e | 58 | rozszerzonej. |
7ace2bef | 59 | |
179b291f JR |
60 | Swish-e może zgrabnie i łatwo indeksować katalogi plików lub zdalne |
61 | strony WWW i przeszukiwać wygenerowane indeksy. | |
7ace2bef | 62 | |
179b291f JR |
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, | |
7ace2bef | 67 | archiwa list pocztowych lub dane przechowywane w relacyjnych bazach |
68 | danych. | |
69 | ||
179b291f JR |
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 | |
2a83819e | 92 | SWISH-E. |
7ace2bef | 93 | |
94 | %package doc | |
95 | Summary: Documentation for swish-e | |
2e3a5650 | 96 | Summary(pl.UTF-8): Dokumentacja dla swish-e |
7ace2bef | 97 | Group: Documentation |
98 | ||
99 | %description doc | |
100 | SWISH-E documentation and examples | |
101 | ||
179b291f JR |
102 | %description doc -l pl.UTF-8 |
103 | Dokumentacja i przykłady dla SWISH-E | |
7ace2bef | 104 | |
df4fa865 | 105 | %package perl |
a0e7357a | 106 | Summary: SWISH-E - Perl Scripts and Modules |
2e3a5650 | 107 | Summary(pl.UTF-8): SWISH-E - Skrypty i moduły dla Perla |
7ace2bef | 108 | Group: Applications/Text |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
df4fa865 | 111 | %description perl |
a0e7357a | 112 | Perl SWISH-E language bindings and scripts. |
7ace2bef | 113 | |
179b291f JR |
114 | %description perl -l pl.UTF-8 |
115 | Skrypty i moduły perlowe dla SWISH-E. | |
7ace2bef | 116 | |
117 | %package devel | |
118 | Summary: Header files for swish-e | |
2e3a5650 | 119 | Summary(pl.UTF-8): Pliki nagłówkowe dla swish-e |
7ace2bef | 120 | Group: Development/Libraries |
121 | Requires: %{name} = %{version}-%{release} | |
122 | ||
123 | %description devel | |
124 | Header files for swish-e. | |
125 | ||
179b291f JR |
126 | %description devel -l pl.UTF-8 |
127 | Pliki nagłówkowe dla swish-e. | |
7ace2bef | 128 | |
129 | %package static | |
130 | Summary: Static library for swish-e | |
2e3a5650 | 131 | Summary(pl.UTF-8): Biblioteka statyczna dla swish-e |
7ace2bef | 132 | Group: Development/Libraries |
133 | Requires: %{name}-devel = %{version}-%{release} | |
134 | ||
135 | %description static | |
136 | Static library for swish-e. | |
137 | ||
179b291f | 138 | %description static -l pl.UTF-8 |
7ace2bef | 139 | Biblioteka statyczna dla swish-e. |
140 | ||
141 | %prep | |
142 | %setup -q | |
45fe6c17 | 143 | %patch0 -p1 |
7ace2bef | 144 | |
145 | %build | |
146 | %configure \ | |
147 | --with-pcre | |
148 | %{__make} | |
149 | %{__make} test | |
150 | ||
321a2811 | 151 | cd perl |
5dde3b59 | 152 | echo skip | \ |
321a2811 | 153 | %{__perl} Makefile.PL \ |
154 | INSTALLDIRS=vendor \ | |
155 | CCFLAGS="%{rpmcflags} -I../src" \ | |
1f095d04 JR |
156 | LIBS="%{rpmldflags} -L../src/.libs -lswish-e" \ |
157 | SWISHINC=../src \ | |
158 | SWISHLIBS=-L../src/.libs \ | |
159 | SWISHVERSION=%{version} \ | |
160 | SWISHBINDIR=../src | |
321a2811 | 161 | |
162 | %{__make} | |
1f095d04 | 163 | %{__make} test |
321a2811 | 164 | cd .. |
165 | ||
7ace2bef | 166 | %install |
167 | rm -rf $RPM_BUILD_ROOT | |
9d4b338a | 168 | |
7ace2bef | 169 | %{__make} install \ |
170 | DESTDIR=$RPM_BUILD_ROOT | |
171 | ||
172 | mv $RPM_BUILD_ROOT%{_docdir}/%{name} %{name}-doc | |
173 | ||
2058b294 | 174 | %{__make} -C perl install \ |
321a2811 | 175 | DESTDIR=$RPM_BUILD_ROOT \ |
176 | PREFIX=%{_prefix} | |
321a2811 | 177 | |
7ace2bef | 178 | %clean |
321a2811 | 179 | rm -rf $RPM_BUILD_ROOT |
7ace2bef | 180 | |
df4fa865 | 181 | %post -p /sbin/ldconfig |
7ace2bef | 182 | %postun -p /sbin/ldconfig |
183 | ||
184 | %files | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_bindir}/%{name} | |
2a83819e | 187 | %attr(755,root,root) %{_libdir}/libswish-e.so.*.*.* |
0e6e719f | 188 | %attr(755,root,root) %ghost %{_libdir}/libswish-e.so.2 |
9d4b338a JB |
189 | %dir %{_prefix}/lib/swish-e |
190 | %attr(755,root,root) %{_prefix}/lib/swish-e/swishspider | |
7ace2bef | 191 | %{_mandir}/man?/* |
192 | ||
193 | %files doc | |
194 | %defattr(644,root,root,755) | |
195 | %doc %{name}-doc/* | |
196 | ||
197 | %files perl | |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_bindir}/swish-filter-test | |
9d4b338a JB |
200 | %{_prefix}/lib/%{name}/perl |
201 | %attr(755,root,root) %{_prefix}/lib/%{name}/*.pl | |
202 | %attr(755,root,root) %{_prefix}/lib/%{name}/*.cgi | |
7ace2bef | 203 | %{_datadir}/swish-e |
321a2811 | 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 | |
7ace2bef | 210 | |
211 | %files devel | |
212 | %defattr(644,root,root,755) | |
1f095d04 | 213 | %attr(755,root,root) %{_bindir}/swish-config |
7ace2bef | 214 | %attr(755,root,root) %{_libdir}/libswish-e.so |
215 | %{_libdir}/libswish-e.la | |
9d4b338a | 216 | %{_includedir}/*.h |
1f095d04 | 217 | %{_pkgconfigdir}/* |
7ace2bef | 218 | |
219 | %files static | |
220 | %defattr(644,root,root,755) | |
221 | %{_libdir}/libswish-e.a |