Update deps. Clean up spec. Package README and ChangeLog

This commit is contained in:
Jitka Plesnikova 2012-11-23 11:30:51 +01:00
parent 1b25d5f469
commit ff00c15253

View File

@ -1,7 +1,7 @@
Name: perl-TimeDate Name: perl-TimeDate
Version: 1.20 Version: 1.20
Epoch: 1 Epoch: 1
Release: 9%{?dist} Release: 10%{?dist}
Summary: A Perl module for time and date manipulation Summary: A Perl module for time and date manipulation
Group: Development/Libraries Group: Development/Libraries
@ -11,7 +11,6 @@ Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.ta
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(base)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(Time::Local) BuildRequires: perl(Time::Local)
@ -19,7 +18,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description %description
This module includes a number of smaller modules suited for This module includes a number of smaller modules suited for
manipulation of time and date strings with Perl. In particular, the manipulation of time and date strings with Perl. In particular, the
Date::Format and Date::Parse modules can display and read times and Date::Format and Date::Parse modules can display and read times and
dates in various formats, providing a more reliable interface to dates in various formats, providing a more reliable interface to
textual representations of points in time. textual representations of points in time.
@ -40,21 +39,27 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
make test make test
%files %files
%doc README ChangeLog
%{perl_vendorlib}/Date/ %{perl_vendorlib}/Date/
%{perl_vendorlib}/Time/ %{perl_vendorlib}/Time/
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Fri Nov 23 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.20-10
- Remove perl(base) from BR
- Package README and ChangeLog
- Replace PERL_INSTALL_ROOT with DESTDIR
- Remove deleting empty directories
* Thu Aug 16 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.20-9 * Thu Aug 16 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.20-9
- Specify all dependencies. - Specify all dependencies.