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