]> git.pld-linux.org Git - packages/perl-XML-Filter-Mode.git/blob - perl-XML-Filter-Mode.spec
2054c23ec7947ff5b02cb13377520916a4d8c453
[packages/perl-XML-Filter-Mode.git] / perl-XML-Filter-Mode.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-Mode
8 Summary:        XML::Filter::Mode - filter out all chunks not in the current mode
9 Summary(pl.UTF-8):      XML::Filter::Mode - odfiltrowywanie fragmentów spoza aktualnego trybu
10 Name:           perl-XML-Filter-Mode
11 Version:        0.02
12 Release:        1
13 License:        BSD or Artistic or GPL
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  09369387b622557e7815166fbef21d91
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-XML-SAX
21 BuildRequires:  perl-XML-SAX-Machines
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 XML::Filter::Mode Perl module filters portions of documents based on a
28 "mode" attribute.
29
30 %description -l pl.UTF-8
31 Moduł Perla XML::Filter::Mode służy do odfiltrowywania fragmentów
32 dokumentów na podstawie atrybutu "mode".
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make}
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %{perl_vendorlib}/XML/*/*.pm
56 %{_mandir}/man3/*
This page took 0.071615 seconds and 2 git commands to generate.