diff --git a/.cvsignore b/.cvsignore index e69de29..72bac53 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +File-Find-Rule-0.28.tar.gz diff --git a/perl-File-Find-Rule.spec b/perl-File-Find-Rule.spec new file mode 100644 index 0000000..4cd0533 --- /dev/null +++ b/perl-File-Find-Rule.spec @@ -0,0 +1,56 @@ +Name: perl-File-Find-Rule +Version: 0.28 +Release: 2%{?dist} +Summary: Perl module implementing an alternative interface to File::Find +License: Artistic or GPL +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Find-Rule/ +Source0: http://www.cpan.org/modules/by-module/File/File-Find-Rule-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Number::Compare) +BuildRequires: perl(Text::Glob) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +File::Find::Rule is a friendlier interface to File::Find. It allows +you to build rules which specify the desired files and directories. + +%prep +%setup -q -n File-Find-Rule-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +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/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{_bindir}/findrule +%{_mandir}/man1/* +%{perl_vendorlib}/File +%{_mandir}/man3/* + +%changelog +* Wed Aug 10 2005 Ralf Corsepius - 0.28-2 +- FE re-submission. + +* Mon Mar 21 2005 Ralf Corsepius - 0.28-1 +- FE submission. diff --git a/sources b/sources index e69de29..f6ce31d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b12a6f02cb316ca62bd2411564606d1f File-Find-Rule-0.28.tar.gz