perl-Regexp-Parser/perl-Regexp-Parser.spec

Name: perl-Regexp-Parser
Summary: Perl module named Regexp-Parser
Version: 0.21
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Regexp-Parser/
Description: perl-Regexp-Parser is a Perl module.

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: cmr
# Upstream: Jeff Pinyan <japhy,734+CPAN$gmail,com>

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

%define real_name Regexp-Parser

Summary: Perl module named Regexp-Parser
Name: perl-Regexp-Parser
Version: 0.21
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Regexp-Parser/

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

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
Provides: perl(Regexp::Parser::Handlers)
Provides: perl(Regexp::Parser::Objects)
Provides: perl(Regexp::Parser::Diagnostics)

%description
perl-Regexp-Parser is a Perl module.

%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 MANIFEST META.yml README
%doc %{_mandir}/man3/Regexp::Parser.3pm*
%doc %{_mandir}/man3/Regexp::Parser::Handlers.3pm*
%doc %{_mandir}/man3/Regexp::Parser::Objects.3pm*
%dir %{perl_vendorlib}/Regexp/
#%{perl_vendorlib}/Regexp/Parser/
%{perl_vendorlib}/Regexp/Parser.pm
%{perl_vendorlib}/Perl6/Rule/Parser.pm
%{perl_vendorlib}/Regexp/Parser/Diagnostics.pm
%{perl_vendorlib}/Regexp/Parser/Handlers.pm
%{perl_vendorlib}/Regexp/Parser/Objects.pm

%changelog
* Sat Mar 19 2016 Dries Verachtert <dries.verachtert@dries.eu> - 0.21-1
- Updated to release 0.21.

* Mon Sep 07 2009 Christoph Maser <cmr@financial.com> - 0.20-3
- another missing provides 

* Mon Sep 07 2009 Christoph Maser <cmr@financial.com> - 0.20-2
- Missing provides 

* Mon Sep 07 2009 Christoph Maser <cmr@financial.com> - 0.20-1
- Initial package. (using DAR)