]> git.pld-linux.org Git - packages/Sman.git/blame - Sman.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/Sman.git] / Sman.spec
CommitLineData
7d23632d 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
7d23632d 5Summary: Searcher for Man pages
d70fdd2c 6Summary(pl.UTF-8): Wyszukiwarka stron Man
7d23632d 7Name: Sman
8f1ce769 8Version: 1.03
7d23632d 9Release: 0.1
10# "same as perl"
11License: Artistic
12Group: Development/Languages/Perl
13Source0: http://joshr.com/src/sman/%{name}-%{version}.tar.gz
8f1ce769 14# Source0-md5: 41fe1c4eaa94d24f1f906ef1f967ea72
7d23632d 15URL: http://joshr.com/src/sman/
7d23632d 16BuildRequires: perl-Cache-Cache
17BuildRequires: perl-Compress-Zlib
18BuildRequires: perl-FreezeThaw
29caf15a 19BuildRequires: perl-devel >= 1:5.8.0
7d23632d 20BuildRequires: rpm-perlprov >= 4.1-13
21BuildRequires: swish-e-perl
7d23632d 22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
7d23632d 25%description
26Sman is the Searcher for Man pages. Based on the example of the same
27name in Josh Rabinowitz's article "How To Index Anything" in the July,
282003 issue of Linux Journal
29<http://www.linuxjournal.com/article.php?sid=6652>, sman is an
30enhanced version of 'apropos' and 'man -k'. Sman adds several key
31abilities 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 51Sman 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
53Rabinowitza "How To Index Anything" ("Jak indeksować cokolwiek") w
29caf15a
JB
54numerze Linux Journal z czerwca 2003
55<http://www.linuxjournal.com/article.php?sid=6652>. Sman dodaje kilka
7259f1d8 56kluczowych 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
86rm -rf $RPM_BUILD_ROOT
87
88%{__make} pure_install \
89 DESTDIR=$RPM_BUILD_ROOT
90
91%clean
92rm -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/*
This page took 0.169229 seconds and 4 git commands to generate.