perl-PPI-HTML/perl-PPI-HTML.spec

Name: perl-PPI-HTML
Summary: PPI-HTML module for perl
Version: 1.08
Release: 1
License: Artistic
Group: Applications/CPAN
URL: http://search.cpan.org/dist/PPI-HTML/
Description: PPI-HTML module for perl.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Adam Kennedy <cpan$ali,as>

### EL6 ships with perl-PPI-HTML-1.07-7.el6
%{?el6:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name PPI-HTML

Summary: PPI-HTML module for perl
Name: perl-PPI-HTML
Version: 1.08
Release: 1%{?dist}
License: Artistic
Group: Applications/CPAN
URL: http://search.cpan.org/dist/PPI-HTML/

Source: http://www.cpan.org/modules/by-module/PPI/PPI-HTML-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl(CSS::Tiny) >= 1.10
#BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) >= 0.80
BuildRequires: perl(PPI) >= 0.990
BuildRequires: perl(Params::Util) >= 0.05
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl >= 5.005
Requires: perl(CSS::Tiny) >= 1.10
Requires: perl(PPI) >= 0.990
Requires: perl(Params::Util) >= 0.05
Requires: perl >= 5.005

%filter_from_requires /^perl*/d
%filter_setup

%description
PPI-HTML module for perl.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes LICENSE MANIFEST META.yml README
%doc %{_mandir}/man3/PPI::HTML.3pm*
%{_bindir}/ppi2html
%dir %{perl_vendorlib}/PPI/
%{perl_vendorlib}/PPI/HTML/
%{perl_vendorlib}/PPI/HTML.pm

%changelog
* Thu Dec 10 2009 Christoph Maser <cmr@financial.com> - 1.08-1
- Updated to version 1.08.

* Tue May 01 2007 Dag Wieers <dag@wieers.com> - 1.07-1
- Initial package. (using DAR)