gzip the sample dates file in documentation (rhbz#890441)
This commit is contained in:
parent
4c776e02f9
commit
0062c9e1dd
@ -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@gmail.com> 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@lists.fedoraproject.org> - 0.3001-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user