3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
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
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
20 BuildRequires: perl-XML-SAX >= 0.11
21 BuildRequires: perl-XML-SAX-Machines >= 0.38
22 BuildRequires: perl-XML-SAX-Writer >= 0.44
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %{perl_vendorlib}/XML/*/*