diff --git a/.cvsignore b/.cvsignore index e69de29..5ba1d6e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Clone-0.18.tar.gz diff --git a/perl-Clone.spec b/perl-Clone.spec new file mode 100644 index 0000000..9cd9fcb --- /dev/null +++ b/perl-Clone.spec @@ -0,0 +1,58 @@ +Name: perl-Clone +Version: 0.18 +Release: 2%{?dist} +Summary: Recursively copy perl datatypes +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Clone +Source0: http://search.cpan.org/CPAN/authors/id/R/RD/RDF/Clone-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl(ExtUtils::ParseXS) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module provides a clone() method which makes recursive +copies of nested hash, array, scalar and reference types, +including tied variables and objects. + +clone() takes a scalar argument and an optional parameter that +can be used to limit the depth of the copy. To duplicate lists, +arrays or hashes, pass them in by reference. + +%prep +%setup -q -n Clone-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorarch}/auto/Clone/ +%{perl_vendorarch}/Clone.pm +%{_mandir}/man3/*.3* + + +%changelog +* Fri Jan 6 2006 Tom "spot" Callaway 0.18-2 +- don't pass optflags twice +- remove .bs files + +* Thu Jan 5 2006 Tom "spot" Callaway 0.18-1 +- Initial package for Fedora Extras diff --git a/sources b/sources index e69de29..0b05c23 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7e37be978c939054100f40d64a2850db Clone-0.18.tar.gz