File perl-PPI.spec of Package perl-PPI
#
# spec file for package perl-PPI (Version 1.213)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-PPI
%define cpan_name PPI
Summary: Parse, Analyze and Manipulate Perl (without perl)
Version: 1.213
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/PPI/
#Source: http://www.cpan.org/modules/by-module/PPI/PPI-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Class::Inspector) >= 1.22
BuildRequires: perl(Clone) >= 0.30
BuildRequires: perl(Digest::MD5) >= 2.35
BuildRequires: perl(File::Remove) >= 1.42
BuildRequires: perl(File::Spec) >= 0.84
BuildRequires: perl(IO::String) >= 1.07
BuildRequires: perl(List::MoreUtils) >= 0.16
BuildRequires: perl(List::Util) >= 1.20
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::More) >= 0.86
BuildRequires: perl(Test::NoWarnings) >= 0.084
BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::SubCalls) >= 1.07
#
Requires: perl = %{perl_version}
Requires: perl(Clone) >= 0.30
Requires: perl(Digest::MD5) >= 2.35
Requires: perl(File::Spec) >= 0.84
Requires: perl(IO::String) >= 1.07
Requires: perl(List::MoreUtils) >= 0.16
Requires: perl(List::Util) >= 1.20
Requires: perl(Params::Util) >= 1.00
Requires: perl(Task::Weaken)
%description
The purpose of PPI is not to parse Perl *Code*, but to parse Perl
*Documents*. By treating the problem this way, we are able to parse a
single file containing Perl source code "isolated" from any other
resources, such as libraries upon which the code may depend, and without
needing to run an instance of perl alongside or inside the parser.
Authors:
Adam Kennedy <adamk@cpan.org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes inline2test.conf inline2test.tpl LICENSE README
%changelog