diff --git a/perl-DateTime-Format-Mail.spec b/perl-DateTime-Format-Mail.spec index 55c228a..d08cc8b 100644 --- a/perl-DateTime-Format-Mail.spec +++ b/perl-DateTime-Format-Mail.spec @@ -1,13 +1,12 @@ Name: perl-DateTime-Format-Mail -Version: 0.3001 -Release: 15%{?dist} +Version: 0.3001 +Release: 16%{?dist} Summary: Convert between DateTime and RFC2822/822 formats Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/DateTime-Format-Mail Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Mail-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Class::ISA) @@ -40,6 +39,8 @@ people still get it wrong. This module aims to correct that. %prep %setup -q -n DateTime-Format-Mail-%{version} +gzip -c t/sample_dates >t/sample_dates.gz + # POD doesn't like E very much... perl -pi -e 's/E/(C)/' `find lib/ -type f` @@ -52,11 +53,9 @@ make %{?_smp_mflags} mv LICENCE LICENSE %install -rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w %{buildroot}/* +%{_fixperms} %{buildroot}/* %check @@ -66,19 +65,18 @@ rm t/00signature.t make test -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %doc Artistic COPYING LICENSE Changes AUTHORS README CREDITS -%doc t/sample_dates t/invalid.t +%doc t/sample_dates.gz t/invalid.t %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog +* Sat Dec 29 2012 Iain Arnell 0.3001-16 +- gzip the sample dates file in documentation (rhbz#890441) +- update spec for modern rpmbuild + * Fri Jul 20 2012 Fedora Release Engineering - 0.3001-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild