[perl-DateTime-Format-Mail] gzip the sample dates file in documentation (rhbz#890441)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 0062c9e1dd523205c08d860ca71215b4b637b0db
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Sat Dec 29 09:16:27 2012 -0700

    gzip the sample dates file in documentation (rhbz#890441)

 perl-DateTime-Format-Mail.spec |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)
---
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<copy> very much...
 perl -pi -e 's/E<copy>/(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 <iarnell@xxxxxxxxx> 0.3001-16
+- gzip the sample dates file in documentation (rhbz#890441)
+- update spec for modern rpmbuild
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.3001-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux