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