]> git.pld-linux.org Git - packages/swish-e.git/blob - swish-e.spec
- up to 2.4.7
[packages/swish-e.git] / swish-e.spec
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
4 Name:           swish-e
5 Version:        2.4.7
6 Release:        1
7 License:        GPL/LGPL
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/
13 #Icon:          swish-e.xpm
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)
19
20 %description
21 Swish-e is Simple Web Indexing System for Humans - Enhanced.
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
56 %description -l pl.UTF-8
57 Swish-e jest prostym systemem indeksującym WWW dla ludzi - w wersji
58 rozszerzonej.
59
60 Swish-e może zgrabnie i łatwo indeksować katalogi plików lub zdalne
61 strony WWW i przeszukiwać wygenerowane indeksy.
62
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
68 danych.
69
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
92   SWISH-E.
93
94 %package doc
95 Summary:        Documentation for swish-e
96 Summary(pl.UTF-8):      Dokumentacja dla swish-e
97 Group:          Documentation
98
99 %description doc
100 SWISH-E documentation and examples
101
102 %description doc -l pl.UTF-8
103 Dokumentacja i przykłady dla SWISH-E
104
105 %package perl
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}
110
111 %description perl
112 Perl SWISH-E language bindings and scripts.
113
114 %description perl -l pl.UTF-8
115 Skrypty i moduły perlowe dla SWISH-E.
116
117 %package devel
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}
122
123 %description devel
124 Header files for swish-e.
125
126 %description devel -l pl.UTF-8
127 Pliki nagłówkowe dla swish-e.
128
129 %package static
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}
134
135 %description static
136 Static library for swish-e.
137
138 %description static -l pl.UTF-8
139 Biblioteka statyczna dla swish-e.
140
141 %prep
142 %setup -q
143 %patch0 -p1
144
145 %build
146 %configure \
147         --with-pcre
148 %{__make}
149 %{__make} test
150
151 cd perl
152 echo skip | \
153 %{__perl} Makefile.PL \
154         INSTALLDIRS=vendor \
155         CCFLAGS="%{rpmcflags} -I../src" \
156         LIBS="%{rpmldflags} -L../src/.libs -lswish-e" \
157         SWISHINC=../src \
158         SWISHLIBS=-L../src/.libs \
159         SWISHVERSION=%{version} \
160         SWISHBINDIR=../src
161
162 %{__make}
163 %{__make} test
164 cd ..
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install \
170         DESTDIR=$RPM_BUILD_ROOT
171
172 mv $RPM_BUILD_ROOT%{_docdir}/%{name} %{name}-doc
173
174 %{__make} -C perl install \
175         DESTDIR=$RPM_BUILD_ROOT \
176         PREFIX=%{_prefix}
177
178 %clean
179 rm -rf $RPM_BUILD_ROOT
180
181 %post   -p /sbin/ldconfig
182 %postun -p /sbin/ldconfig
183
184 %files
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
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
200 %{_prefix}/lib/%{name}/perl
201 %attr(755,root,root) %{_prefix}/lib/%{name}/*.pl
202 %attr(755,root,root) %{_prefix}/lib/%{name}/*.cgi
203 %{_datadir}/swish-e
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
210
211 %files devel
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
216 %{_includedir}/*.h
217 %{_pkgconfigdir}/*
218
219 %files static
220 %defattr(644,root,root,755)
221 %{_libdir}/libswish-e.a
This page took 0.0970839999999999 seconds and 3 git commands to generate.