]> git.pld-linux.org Git - packages/Sman.git/blob - Sman.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/Sman.git] / Sman.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 Summary:        Searcher for Man pages
6 Summary(pl.UTF-8):      Wyszukiwarka stron Man
7 Name:           Sman
8 Version:        1.03
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
14 # Source0-md5:  41fe1c4eaa94d24f1f906ef1f967ea72
15 URL:            http://joshr.com/src/sman/
16 BuildRequires:  perl-Cache-Cache
17 BuildRequires:  perl-Compress-Zlib
18 BuildRequires:  perl-FreezeThaw
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRequires:  swish-e-perl
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
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
50 %description -l pl.UTF-8
51 Sman to wyszukiwarka stron Man. Jest to rozszerzona wersja 'apropos' i
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
54 numerze Linux Journal z czerwca 2003
55 <http://www.linuxjournal.com/article.php?sid=6652>. Sman dodaje kilka
56 kluczowych możliwości, których nie mają poprzednicy:
57
58 - obsługuje złożone wyszukiwania tekstu w języku naturalnym, takie jak
59   "(linux and kernel) or (mach and microkernel)"
60
61 - pokazuje wyniki w kolejności punktacji i opcjonalnie wyciąg ze
62   strony (przy użyciu -e) z podświetleniem wyszukiwanego tekstu
63
64 - pozwala na wyszukiwanie po sekcji, tytule, ciele i nazwie pliku
65   strony (przy użyciu 'nazwa-meta=szukane-słowo')
66
67 - indeksuje całą zawartość stron man, a nie tylko tytuł i opis
68
69 - używa wcześniej zbudowanego indeksu w celu szybszego wyszukiwania
70
71 - wykonuje "stemming", przez co np. wyszukiwanie słowa "searches"
72   znajdzie dokument ze słowem "searching"
73
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
105 %dir %{perl_vendorlib}/Sman/Man/Cache
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
112 %{perl_vendorlib}/Sman/IndexVersion.pm
113 %{perl_vendorlib}/Sman/sman.conf.pm
114 %{_mandir}/man1/*
115 %{_mandir}/man3/*
This page took 0.057223 seconds and 4 git commands to generate.