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