3 %bcond_without tests # do not perform "make test"
5 Summary: Searcher for Man pages
6 Summary(pl.UTF-8): Wyszukiwarka stron Man
12 Group: Development/Languages/Perl
13 Source0: http://joshr.com/src/sman/%{name}-%{version}.tar.gz
14 # Source0-md5: 41fe1c4eaa94d24f1f906ef1f967ea72
15 URL: http://joshr.com/src/sman/
16 BuildRequires: perl-Cache-Cache
17 BuildRequires: perl-Compress-Zlib
18 BuildRequires: perl-FreezeThaw
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: swish-e-perl
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Sman is the Searcher for Man pages. Based on the example of the same
27 name in Josh Rabinowitz's article "How To Index Anything" in the July,
28 2003 issue of Linux Journal
29 <http://www.linuxjournal.com/article.php?sid=6652>, sman is an
30 enhanced version of 'apropos' and 'man -k'. Sman adds several key
31 abilities over its predecessors:
33 - Supports complex natural language text searches such as "(linux and
34 kernel) or (mach and microkernel)"
36 - Shows results in a ranked order, and optionally an extract (using
37 -e) of the manpage showing the searched text highlighted
39 - Allows for searches by manpage section, title, body, or filename
40 (use 'metaname=searchword')
42 - Indexes the complete contents of the man page, not just the title
45 - Uses a prebuilt index to perform fast searches
47 - Performs 'stemming' so that a search for "searches" will match a
48 document with the word "searching"
50 %description -l pl.UTF-8
51 Sman to wyszukiwarka stron Man. Jest to rozszerzona wersja 'apropos' i
52 'man -k' oparta na przykładzie o tej samej nazwie z artykułu Josha
53 Rabinowitza "How To Index Anything" ("Jak indeksować cokolwiek") w
54 numerze Linux Journal z czerwca 2003
55 <http://www.linuxjournal.com/article.php?sid=6652>. Sman dodaje kilka
56 kluczowych możliwości, których nie mają poprzednicy:
58 - obsługuje złożone wyszukiwania tekstu w języku naturalnym, takie jak
59 "(linux and kernel) or (mach and microkernel)"
61 - pokazuje wyniki w kolejności punktacji i opcjonalnie wyciąg ze
62 strony (przy użyciu -e) z podświetleniem wyszukiwanego tekstu
64 - pozwala na wyszukiwanie po sekcji, tytule, ciele i nazwie pliku
65 strony (przy użyciu 'nazwa-meta=szukane-słowo')
67 - indeksuje całą zawartość stron man, a nie tylko tytuł i opis
69 - używa wcześniej zbudowanego indeksu w celu szybszego wyszukiwania
71 - wykonuje "stemming", przez co np. wyszukiwanie słowa "searches"
72 znajdzie dokument ze słowem "searching"
78 %{__perl} Makefile.PL \
83 %{?with_tests:%{__make} test}
86 rm -rf $RPM_BUILD_ROOT
88 %{__make} pure_install \
89 DESTDIR=$RPM_BUILD_ROOT
92 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
96 %doc Changes README TODO
97 %attr(755,root,root) %{_bindir}/sman
98 %attr(755,root,root) %{_bindir}/sman-update
99 %{perl_vendorlib}/Sman.pm
100 %dir %{perl_vendorlib}/Sman
101 %{perl_vendorlib}/Sman/Autoconfig.pm
102 %{perl_vendorlib}/Sman/Config.pm
103 %dir %{perl_vendorlib}/Sman/Man
104 %{perl_vendorlib}/Sman/Man/Cache.pm
105 %dir %{perl_vendorlib}/Sman/Man/Cache
106 %{perl_vendorlib}/Sman/Man/Cache/DB_File.pm
107 %{perl_vendorlib}/Sman/Man/Cache/FileCache.pm
108 %{perl_vendorlib}/Sman/Man/Convert.pm
109 %{perl_vendorlib}/Sman/Man/Find.pm
110 %{perl_vendorlib}/Sman/Swishe.pm
111 %{perl_vendorlib}/Sman/Util.pm
112 %{perl_vendorlib}/Sman/IndexVersion.pm
113 %{perl_vendorlib}/Sman/sman.conf.pm