]> git.pld-linux.org Git - packages/swish-e.git/blame - swish-e.spec
- up to 2.4.7
[packages/swish-e.git] / swish-e.spec
CommitLineData
321a2811 1%include /usr/lib/rpm/macros.perl
7ace2bef 2Summary: Simple Web Indexing System for Humans - Enhanced
2e3a5650 3Summary(pl.UTF-8): Prosty system indeksowania stron WWW - wersja rozszerzona
7ace2bef 4Name: swish-e
45fe6c17
JR
5Version: 2.4.7
6Release: 1
c7f841ac 7License: GPL/LGPL
7ace2bef 8Group: Applications/Text
1f095d04 9Source0: http://swish-e.org/distribution/%{name}-%{version}.tar.gz
45fe6c17
JR
10# Source0-md5: 736db7a65aed48bb3e2587c52833642d
11Patch0: format-security.patch
7ace2bef 12URL: http://swish-e.org/
13#Icon: swish-e.xpm
14BuildRequires: libxml2-devel
15BuildRequires: pcre-devel
321a2811 16BuildRequires: rpm-perlprov
7ace2bef 17BuildRequires: zlib-devel
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
2a83819e 21Swish-e is Simple Web Indexing System for Humans - Enhanced.
7ace2bef 22
23Swish-e can quickly and easily index directories of files or remote
24web sites and search the generated indexes.
25
26Swish-e is extremely fast in both indexing and searching, highly
27configurable, and can be seamlessly integrated with existing web sites
28to maintain a consistent design. Swish-e can index web pages, but can
29just as easily index text files, mailing list archives, or data stored
30in a relational database.
31
32Swish-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
57Swish-e jest prostym systemem indeksującym WWW dla ludzi - w wersji
2a83819e 58rozszerzonej.
7ace2bef 59
179b291f
JR
60Swish-e może zgrabnie i łatwo indeksować katalogi plików lub zdalne
61strony WWW i przeszukiwać wygenerowane indeksy.
7ace2bef 62
179b291f
JR
63Swish-e jest ekstremalnie szybki zarówno w indeksowaniu i
64wyszukiwaniu, mocno konfigurowalny, i może być łatwo zintegrowany z
65istniejącymi stronami WWW w celu konfiguracji jego wyglądu. Swish-e
66może indeksować nie tylko strony WWW, ale także pliki tekstowe,
7ace2bef 67archiwa list pocztowych lub dane przechowywane w relacyjnych bazach
68danych.
69
179b291f
JR
70Kluczowymi 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
95Summary: Documentation for swish-e
2e3a5650 96Summary(pl.UTF-8): Dokumentacja dla swish-e
7ace2bef 97Group: Documentation
98
99%description doc
100SWISH-E documentation and examples
101
179b291f
JR
102%description doc -l pl.UTF-8
103Dokumentacja i przykłady dla SWISH-E
7ace2bef 104
df4fa865 105%package perl
a0e7357a 106Summary: SWISH-E - Perl Scripts and Modules
2e3a5650 107Summary(pl.UTF-8): SWISH-E - Skrypty i moduły dla Perla
7ace2bef 108Group: Applications/Text
109Requires: %{name} = %{version}-%{release}
110
df4fa865 111%description perl
a0e7357a 112Perl SWISH-E language bindings and scripts.
7ace2bef 113
179b291f
JR
114%description perl -l pl.UTF-8
115Skrypty i moduły perlowe dla SWISH-E.
7ace2bef 116
117%package devel
118Summary: Header files for swish-e
2e3a5650 119Summary(pl.UTF-8): Pliki nagłówkowe dla swish-e
7ace2bef 120Group: Development/Libraries
121Requires: %{name} = %{version}-%{release}
122
123%description devel
124Header files for swish-e.
125
179b291f
JR
126%description devel -l pl.UTF-8
127Pliki nagłówkowe dla swish-e.
7ace2bef 128
129%package static
130Summary: Static library for swish-e
2e3a5650 131Summary(pl.UTF-8): Biblioteka statyczna dla swish-e
7ace2bef 132Group: Development/Libraries
133Requires: %{name}-devel = %{version}-%{release}
134
135%description static
136Static library for swish-e.
137
179b291f 138%description static -l pl.UTF-8
7ace2bef 139Biblioteka 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 151cd perl
5dde3b59 152echo 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 164cd ..
165
7ace2bef 166%install
167rm -rf $RPM_BUILD_ROOT
9d4b338a 168
7ace2bef 169%{__make} install \
170 DESTDIR=$RPM_BUILD_ROOT
171
172mv $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 179rm -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
This page took 0.290278 seconds and 4 git commands to generate.