]>
Commit | Line | Data |
---|---|---|
7d23632d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
7d23632d | 5 | Summary: Searcher for Man pages |
d70fdd2c | 6 | Summary(pl.UTF-8): Wyszukiwarka stron Man |
7d23632d | 7 | Name: Sman |
8f1ce769 | 8 | Version: 1.03 |
7d23632d | 9 | Release: 0.1 |
10 | # "same as perl" | |
11 | License: Artistic | |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://joshr.com/src/sman/%{name}-%{version}.tar.gz | |
8f1ce769 | 14 | # Source0-md5: 41fe1c4eaa94d24f1f906ef1f967ea72 |
7d23632d | 15 | URL: http://joshr.com/src/sman/ |
7d23632d | 16 | BuildRequires: perl-Cache-Cache |
17 | BuildRequires: perl-Compress-Zlib | |
18 | BuildRequires: perl-FreezeThaw | |
29caf15a | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
7d23632d | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | BuildRequires: swish-e-perl | |
7d23632d | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
7d23632d | 25 | %description |
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: | |
32 | ||
33 | - Supports complex natural language text searches such as "(linux and | |
34 | kernel) or (mach and microkernel)" | |
35 | ||
36 | - Shows results in a ranked order, and optionally an extract (using | |
37 | -e) of the manpage showing the searched text highlighted | |
38 | ||
39 | - Allows for searches by manpage section, title, body, or filename | |
40 | (use 'metaname=searchword') | |
41 | ||
42 | - Indexes the complete contents of the man page, not just the title | |
43 | and description | |
44 | ||
45 | - Uses a prebuilt index to perform fast searches | |
46 | ||
47 | - Performs 'stemming' so that a search for "searches" will match a | |
48 | document with the word "searching" | |
49 | ||
7259f1d8 | 50 | %description -l pl.UTF-8 |
29caf15a | 51 | Sman to wyszukiwarka stron Man. Jest to rozszerzona wersja 'apropos' i |
7259f1d8 JR |
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 | |
29caf15a JB |
54 | numerze Linux Journal z czerwca 2003 |
55 | <http://www.linuxjournal.com/article.php?sid=6652>. Sman dodaje kilka | |
7259f1d8 | 56 | kluczowych możliwości, których nie mają poprzednicy: |
29caf15a | 57 | |
7259f1d8 | 58 | - obsługuje złożone wyszukiwania tekstu w języku naturalnym, takie jak |
29caf15a JB |
59 | "(linux and kernel) or (mach and microkernel)" |
60 | ||
7259f1d8 JR |
61 | - pokazuje wyniki w kolejności punktacji i opcjonalnie wyciąg ze |
62 | strony (przy użyciu -e) z podświetleniem wyszukiwanego tekstu | |
29caf15a JB |
63 | |
64 | - pozwala na wyszukiwanie po sekcji, tytule, ciele i nazwie pliku | |
7259f1d8 | 65 | strony (przy użyciu 'nazwa-meta=szukane-słowo') |
29caf15a | 66 | |
7259f1d8 | 67 | - indeksuje całą zawartość stron man, a nie tylko tytuł i opis |
29caf15a | 68 | |
7259f1d8 | 69 | - używa wcześniej zbudowanego indeksu w celu szybszego wyszukiwania |
29caf15a | 70 | |
7259f1d8 JR |
71 | - wykonuje "stemming", przez co np. wyszukiwanie słowa "searches" |
72 | znajdzie dokument ze słowem "searching" | |
29caf15a | 73 | |
7d23632d | 74 | %prep |
75 | %setup -q | |
76 | ||
77 | %build | |
78 | %{__perl} Makefile.PL \ | |
79 | INSTALLDIRS=vendor | |
80 | ||
81 | %{__make} | |
82 | ||
83 | %{?with_tests:%{__make} test} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} pure_install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %files | |
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 | |
29caf15a | 105 | %dir %{perl_vendorlib}/Sman/Man/Cache |
7d23632d | 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 | |
672c2e43 RT |
112 | %{perl_vendorlib}/Sman/IndexVersion.pm |
113 | %{perl_vendorlib}/Sman/sman.conf.pm | |
7d23632d | 114 | %{_mandir}/man1/* |
115 | %{_mandir}/man3/* |