Name: perl-Archive-RPM Version: 0.04 Release: 1%{?dist} # lib/Archive/RPM.pm -> LGPLv2+ # lib/Archive/RPM/ChangeLogEntry.pm -> LGPLv2+ License: LGPLv2+ Group: Development/Libraries Summary: Work with an RPM Source: http://search.cpan.org/CPAN/authors/id/R/RS/RSRCHBOY/Archive-RPM-%{version}.tar.gz Url: http://search.cpan.org/dist/Archive-RPM BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch # non-perl BuildRequires: rpm, cpio Requires: rpm, cpio BuildRequires: perl(DateTime) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(Moose) BuildRequires: perl(MooseX::AttributeHelpers) BuildRequires: perl(MooseX::Types::DateTime) BuildRequires: perl(MooseX::Types::Path::Class) BuildRequires: perl(namespace::clean) BuildRequires: perl(Path::Class) BuildRequires: perl(RPM2) >= 0.67 BuildRequires: perl(Test::More) %description Archive::RPM provides a more complete method of accessing an RPM's meta- and actual data. We access this information by leveraging RPM2 where we can, and by "exploding" the rpm with rpm2cpio and cpio when we need information we can't get through RPM2. %prep %setup -q -n Archive-RPM-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Sun Apr 26 2009 Chris Weyl 0.04-1 - update to 0.04 * Sun Mar 08 2009 Chris Weyl 0.03-1 - submission * Sun Mar 08 2009 Chris Weyl 0.03-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)