]>
Commit | Line | Data |
---|---|---|
d53a3a9c | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
ba792614 | 4 | |
16029465 | 5 | %define pdir XML |
6 | %define pnam Filter-Glossary | |
ba792614 | 7 | %include /usr/lib/rpm/macros.perl |
d53a3a9c | 8 | Summary: XML::Filter::Glossary - SAX2 filter for keyword lookup and replacement |
58efda13 | 9 | Summary(pl.UTF-8): XML::Filter::Glossary - filtr SAX2 do poszukiwania i zastępowania słów kluczowych |
d53a3a9c | 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 | |
9391cdda | 16 | # Source0-md5: 04427a14f8e10e24e9f725439925048d |
ba792614 | 17 | URL: http://search.cpan.org/dist/XML-Filter-Glossary/ |
ea0ca251 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
d53a3a9c | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
21 | BuildRequires: perl-XML-SAX >= 0.11 | |
22 | BuildRequires: perl-XML-SAX-Machines >= 0.38 | |
23 | BuildRequires: perl-XML-SAX-Writer >= 0.44 | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
bfd932f5 | 29 | This package is modelled after the UserLand glossary system where |
30 | words, or phrases, wrapped in double-quotes are compared against a | |
31 | lookup table and are replaced by their corresponding entries. | |
d53a3a9c | 32 | |
6a3c9abe JR |
33 | %description -l pl.UTF-8 |
34 | Ten pakiet jest modelowany w oparciu o system słownikowy UserLand, w | |
35 | którym słowa lub frazy umieszczone w cudzysłowach są porównywane z | |
36 | tablicą wyszukiwania i zastępowane odpowiadającymi im wpisami. | |
d53a3a9c | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
39e1c671 | 59 | %{perl_vendorlib}/XML/*/* |
d53a3a9c | 60 | %{_mandir}/man3/* |