3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Searcher for Man pages
12 Group: Development/Languages/Perl
13 Source0: http://joshr.com/src/sman/%{name}-%{version}.tar.gz
14 # Source0-md5: b786338eba068a4a110bf2bbda51e695
15 URL: http://joshr.com/src/sman/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: perl-Cache-Cache
18 BuildRequires: perl-Compress-Zlib
19 BuildRequires: perl-FreezeThaw
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: swish-e-perl
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 #%%define _noautoreq 'perl(anything_fake_or_conditional)'
30 Sman is the Searcher for Man pages. Based on the example of the same
31 name in Josh Rabinowitz's article "How To Index Anything" in the July,
32 2003 issue of Linux Journal
33 <http://www.linuxjournal.com/article.php?sid=6652>, sman is an
34 enhanced version of 'apropos' and 'man -k'. Sman adds several key
35 abilities over its predecessors:
37 - Supports complex natural language text searches such as "(linux and
38 kernel) or (mach and microkernel)"
40 - Shows results in a ranked order, and optionally an extract (using
41 -e) of the manpage showing the searched text highlighted
43 - Allows for searches by manpage section, title, body, or filename
44 (use 'metaname=searchword')
46 - Indexes the complete contents of the man page, not just the title
49 - Uses a prebuilt index to perform fast searches
51 - Performs 'stemming' so that a search for "searches" will match a
52 document with the word "searching"
58 %{__perl} Makefile.PL \
63 %{?with_tests:%{__make} test}
66 rm -rf $RPM_BUILD_ROOT
68 %{__make} pure_install \
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc Changes README TODO
77 %attr(755,root,root) %{_bindir}/sman
78 %attr(755,root,root) %{_bindir}/sman-update
79 %{perl_vendorlib}/Sman.pm
80 %dir %{perl_vendorlib}/Sman
81 %{perl_vendorlib}/Sman/Autoconfig.pm
82 %{perl_vendorlib}/Sman/Config.pm
83 %dir %{perl_vendorlib}/Sman/Man
84 %{perl_vendorlib}/Sman/Man/Cache.pm
85 %{perl_vendorlib}/Sman/Man/Cache/DB_File.pm
86 %{perl_vendorlib}/Sman/Man/Cache/FileCache.pm
87 %{perl_vendorlib}/Sman/Man/Convert.pm
88 %{perl_vendorlib}/Sman/Man/Find.pm
89 %{perl_vendorlib}/Sman/Swishe.pm
90 %{perl_vendorlib}/Sman/Util.pm
91 %{perl_vendorlib}/sman.conf.pm