diff --git a/.cvsignore b/.cvsignore index e69de29..78014cd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Data-Structure-Util-0.11.tar.gz diff --git a/perl-Data-Structure-Util.spec b/perl-Data-Structure-Util.spec new file mode 100644 index 0000000..8de78cc --- /dev/null +++ b/perl-Data-Structure-Util.spec @@ -0,0 +1,62 @@ +Name: perl-Data-Structure-Util +Version: 0.11 +Release: 1%{?dist} +Summary: Change nature of data within a structure +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Data-Structure-Util/ +Source0: http://www.cpan.org/authors/id/P/PD/PDENIS/Data-Structure-Util-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(Clone) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(File::Find::Rule) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Data::Structure::Util is a toolbox to manipulate the data inside a data +structure. It can process an entire tree and perform the operation +requested on each appropriate element. + +%prep +%setup -q -n Data-Structure-Util-%{version} + +chmod 644 CHANGES README bin/packages.pl + +%build +%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 + +rm -f $RPM_BUILD_ROOT%{_bindir}/packages.pl \ + $RPM_BUILD_ROOT%{_mandir}/man1/packages.pl* + +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \; + +chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGES README bin/packages.pl +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Data* +%{_mandir}/man3/* + +%changelog +* Sat May 20 2006 Steven Pritchard 0.11-1 +- Specfile autogenerated by cpanspec 1.66. +- Drop explicit BR: perl. +- BR: File::Find::Rule (for tests). +- Add packages.pl to doc list and fix the permissions for the docs. +- Drop NINJA non-doc. diff --git a/sources b/sources index e69de29..9ac522b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3cbec998cd7c55b1244b3f782569b552 Data-Structure-Util-0.11.tar.gz