diff --git a/README.md b/README.md index a910514..8499c5f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Archive-Any +Archive::Any - Single interface to deal with file archives. + diff --git a/perl-Archive-Any.spec b/perl-Archive-Any.spec new file mode 100644 index 0000000..c5f45d2 --- /dev/null +++ b/perl-Archive-Any.spec @@ -0,0 +1,74 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Archive-Any +Version: 0.0940 +Release: 1mamba +Summary: Archive::Any - Single interface to deal with file archives +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Archive/Archive-Any-%{version}.tar.gz +License: GPL, Artistic +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-Archive-Tar +BuildRequires: perl-Archive-Zip +BuildRequires: perl-devel +BuildRequires: perl-File-MMagic +BuildRequires: perl-MIME-Types +BuildRequires: perl-Module-Find +## AUTOBUILDREQ-END +BuildRequires: perl-Test-Warn +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: +#BuildRequires: perl-Test-Perl-Critic + +%description +Archive::Any - Single interface to deal with file archives. + +%prep +%setup -q -n Archive-Any-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Sun Oct 20 2013 Automatic Build System 0.0940-1mamba +- automatic update by autodist + +* Tue Nov 13 2012 Silvan Calarco 0.0932-3mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 0.0932-2mamba +- automatic rebuild by autodist + +* Mon Oct 20 2008 gil 0.0932-1mamba +- update to 0.0932 + +* Fri Nov 09 2007 Aleph0 0.093-1mamba +- package created by autospec