]> git.pld-linux.org Git - packages/perl-XML-Filter-Namespace.git/blame - perl-XML-Filter-Namespace.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-Filter-Namespace.git] / perl-XML-Filter-Namespace.spec
CommitLineData
adb601fa 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
cf4d177c 4
5b6e9d24 5%define pdir XML
6%define pnam Filter-Namespace
adb601fa 7Summary: XML::Filter::Namespace - strip all but a single namespace
d3129d9a 8Summary(pl.UTF-8): XML::Filter::Namespace - usunięcie wszystkich przestrzeni nazw oprócz jednej
adb601fa 9Name: perl-XML-Filter-Namespace
10Version: 1.03
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
3c608335 16# Source0-md5: 03ab0c24361eeb965243c8c262cbd7ea
cf4d177c 17URL: http://search.cpan.org/dist/XML-Filter-Namespace/
aea5b6c6 18BuildRequires: perl-devel >= 1:5.8.0
adb601fa 19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Class-Accessor >= 0.17
22BuildRequires: perl-Test-Simple
23BuildRequires: perl-XML-SAX
24BuildRequires: perl-XML-SAX-Writer >= 0.44
25%endif
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
948b95a5 30The XML::Filter::Namespace Perl module strips out everything in an XML
41c1dced 31document that does not belong in a specified namespace. This often
948b95a5 32provides a view of the XML that is much clearer when multiple
33namespaces are in use.
adb601fa 34
ffc1c317
JR
35%description -l pl.UTF-8
36Moduł Perla XML::Filter::Namespace usuwa z dokumentu XML wszystko to,
37co nie należy do podanej przestrzeni nazw. Zwykle udostępnia to dużo
38bardziej przejrzysty widok XML-a w przypadku, kiedy użyto wielu
00cca729 39przestrzeni nazw.
adb601fa 40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47%{__make}
48
49%{?with_tests:%{__make} test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53
54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
62%attr(755,root,root) %{_bindir}/*
00cca729 63%{perl_vendorlib}/XML/*/*.pm
adb601fa 64%{_mandir}/man3/*
65%{_mandir}/man1/*
This page took 0.09795 seconds and 4 git commands to generate.