diff --git a/perl-Date-Simple.spec b/perl-Date-Simple.spec index 0a0d12f..25f5e3e 100644 --- a/perl-Date-Simple.spec +++ b/perl-Date-Simple.spec @@ -1,13 +1,16 @@ Summary: Simple date object for perl Name: perl-Date-Simple Version: 3.02 -Release: 4%{?dist} +Release: 5%{?dist} License: Artistic or GPL Group: Development/Libraries Url: http://search.cpan.org/dist/Date-Simple/ Source0: http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/Date-Simple-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%if 0%{?fedora} > 6 +BuildRequires: perl-devel +%endif %description %{summary}. @@ -20,7 +23,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Spurious exec permissions in files from tarball /usr/bin/find lib -type f -exec %{__chmod} -x {} ';' -%{__chmod} -x ChangeLog COPYING README +%{__chmod} -x ChangeLog COPYING README Simple.xs # The NoXS.pm file provides a pure-perl alternative to the C implementation # of the module. This results in duplicate "Provides:" entries, which rpmlint @@ -41,20 +44,25 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';' -/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';' +/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';' %{__chmod} -R u+w %{buildroot}/* %check %{__make} test %files -%defattr(-,root,root,0755) +%defattr(-,root,root,-) %doc Artistic ChangeLog COPYING README %{perl_vendorarch}/Date/ %{perl_vendorarch}/auto/Date/ %{_mandir}/man3/Date::Simple*.3pm* %changelog +* Thu Mar 8 2007 Paul Howarth 3.02-5 +- Buildrequire perl-devel for Fedora 7 onwards +- Fix argument order for find with -depth +- Fix permissions in debuginfo + * Tue Aug 29 2006 Paul Howarth 3.02-4 - FE6 mass rebuild