perl-MRO-Compat/perl-MRO-Compat.spec

Name: perl-MRO-Compat
Summary: mro:: interface compatibility for Perls < 5.9.5
Version: 0.11
Release: 2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/MRO-Compat/
Description: mro::
interface compatibility for Perls < 5.9.5.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

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

# $Id$
# Authority: dag
# Upstream: Brandon L. Black <blblack$gmail,com>

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

%define real_name MRO-Compat

Summary: mro::* interface compatibility for Perls < 5.9.5
Name: perl-MRO-Compat
Version: 0.11
Release: 2%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/MRO-Compat/

Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/MRO-Compat-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(Class::C3) >= 0.19
BuildRequires: perl(Class::C3::XS)
BuildRequires: perl(Test::More) >= 0.47

Requires: perl(Class::C3) >= 0.19
Provides: perl(mro)

%description
mro::* interface compatibility for Perls < 5.9.5.

%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 ChangeLog MANIFEST META.yml README
%doc %{_mandir}/man3/MRO::Compat.3pm*
%dir %{perl_vendorlib}/MRO/
#%{perl_vendorlib}/MRO/Compat/
%{perl_vendorlib}/MRO/Compat.pm

%changelog
* Sat Aug 22 2009 Christoph Maser <cmr@financial.com> - 0.11-2
- Provide perl(mro)

* Sat Jul  4 2009 Christoph Maser <cmr@financial.com> - 0.11-1
- Updated to version 0.11.

* Tue Apr 28 2009 Christoph Maser <cmr@financial.com> - 0.10-2
- Add missing requirement "perl(Class::C3)"

* Thu Apr 23 2009 Christoph Maser <cmr@financial.com> - 0.10-1
- Updated to release 0.10.

* Tue Jul 01 2008 Dag Wieers <dag@wieers.com> - 0.09-1
- Updated to release 0.09.

* Sun Dec 30 2007 Dag Wieers <dag@wieers.com> - 0.05-1
- Initial package. (using DAR)