]> git.pld-linux.org Git - packages/perl-XML-Filter-Glossary.git/blob - perl-XML-Filter-Glossary.spec
9aa627dc3248db90790699540c86146b5060e6b6
[packages/perl-XML-Filter-Glossary.git] / perl-XML-Filter-Glossary.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    XML
7 %define         pnam    Filter-Glossary
8 Summary:        XML::Filter::Glossary - SAX2 filter for keyword lookup and replacement
9 Summary(pl.UTF-8):      XML::Filter::Glossary - filtr SAX2 do poszukiwania i zastępowania słów kluczowych
10 Name:           perl-XML-Filter-Glossary
11 Version:        0.2
12 Release:        1
13 License:        BSD-like
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  04427a14f8e10e24e9f725439925048d
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-XML-SAX >= 0.11
21 BuildRequires:  perl-XML-SAX-Machines >= 0.38
22 BuildRequires:  perl-XML-SAX-Writer >= 0.44
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This package is modelled after the UserLand glossary system where
29 words, or phrases, wrapped in double-quotes are compared against a
30 lookup table and are replaced by their corresponding entries.
31
32 %description -l pl.UTF-8
33 Ten pakiet jest modelowany w oparciu o system słownikowy UserLand, w
34 którym słowa lub frazy umieszczone w cudzysłowach są porównywane z
35 tablicą wyszukiwania i zastępowane odpowiadającymi im wpisami.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %{perl_vendorlib}/XML/*/*
59 %{_mandir}/man3/*
This page took 0.063093 seconds and 2 git commands to generate.