]> git.pld-linux.org Git - packages/perl-XML-FeedPP.git/blob - perl-XML-FeedPP.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-FeedPP.git] / perl-XML-FeedPP.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    XML
6 %define         pnam    FeedPP
7 Summary:        XML::FeedPP -- Parse/write/merge/edit RSS/RDF/Atom syndication feeds
8 Name:           perl-XML-FeedPP
9 Version:        0.43
10 Release:        2
11 License:        GPL v1+ or Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  f9f2876a801a02c9497194ced1b021b9
15 URL:            http://search.cpan.org/dist/XML-FeedPP/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with tests}
19 BuildRequires:  perl(XML::TreePP) >= 0.39
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 XML::FeedPP is an all-purpose syndication utility that parses and
26 publishes RSS 2.0, RSS 1.0 (RDF), Atom 0.3 and 1.0 feeds.
27 It allows you to add new content, merge feeds, and convert among
28 these various formats.
29 It is a pure Perl implementation and does not require any other
30 module except for XML::TreePP.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} pure_install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc Changes README
54 %{perl_vendorlib}/XML/*.pm
55 %{_mandir}/man3/*
This page took 0.057006 seconds and 4 git commands to generate.