Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 1c6476fda7aca999a5d4c933e7f04535 > files > 3

perl-YAPE-Regex-3.04-1.fc14.src.rpm

Name:           perl-YAPE-Regex
Version:        3.04
Release:        1%{?dist}
Summary:        Yet Another Parser/Extractor for Regular Expressions
# see https://rt.cpan.org/Public/Bug/Display.html?id=58040
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/YAPE-Regex/
Source0:        http://www.cpan.org/authors/id/P/PI/PINYAN/YAPE-Regex-%{version}.tar.gz
Source1:        licenseinfo.txt
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Text::Balanced)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%{?perl_default_filter}

%description
This module is yet another parser and tree-builder for Perl regular
expressions. It builds a tree out of a regex, but at the moment, the extent
of the extraction tool for the tree is quite limited. However, the tree can be
useful to extension modules.

%prep
%setup -q -n YAPE-Regex-%{version}
cp %{SOURCE1} .

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes README licenseinfo.txt
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Wed Jun 02 2010 Iain Arnell 3.04-1
- Specfile autogenerated by cpanspec 1.78.
- include license information