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