From 2785ada9ca0e785f7c384b1ed03a5a88b879a64b Mon Sep 17 00:00:00 2001 From: Petr Pisar Date: Tue, 8 Jun 2010 07:24:08 +0000 Subject: [PATCH] Add spec file --- perl-PPIx-Regexp.spec | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 perl-PPIx-Regexp.spec diff --git a/perl-PPIx-Regexp.spec b/perl-PPIx-Regexp.spec new file mode 100644 index 0000000..b220b26 --- /dev/null +++ b/perl-PPIx-Regexp.spec @@ -0,0 +1,57 @@ +Name: perl-PPIx-Regexp +Version: 0.007 +Release: 1%{?dist} +Summary: Represent a regular expression of some sort +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/PPIx-Regexp/ +Source0: http://www.cpan.org/authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(List::MoreUtils) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Params::Util) >= 0.25 +BuildRequires: perl(PPI::Document) +BuildRequires: perl(Readonly) +BuildRequires: perl(Task::Weaken) +BuildRequires: perl(Test::More) >= 0.4 +Requires: perl(Task::Weaken) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The purpose of the PPIx-Regexp package is to parse regular expressions in a +manner similar to the way the PPI package parses Perl. This class forms the +root of the parse tree, playing a role similar to PPI::Document. + +%prep +%setup -q -n PPIx-Regexp-%{version} +chmod -x eg/* +sed -i '1 s|/usr/local/bin/perl|/usr/bin/perl|' eg/* + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes eg LICENSES README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Jun 8 2010 Petr Pisar - 0.007-1 +- Specfile autogenerated by cpanspec 1.78 (bug #598553).