|
|
|
@ -1,14 +1,12 @@
|
|
|
|
|
Name: perl-Time-ParseDate
|
|
|
|
|
Version: 2015.103
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Summary: Perl modules for parsing dates and times
|
|
|
|
|
# See https://fedoraproject.org/wiki/Licensing/TPDL
|
|
|
|
|
License: TPDL and Public Domain
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: https://metacpan.org/release/Time-ParseDate
|
|
|
|
|
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MU/MUIR/modules/Time-ParseDate-%{version}.tar.gz
|
|
|
|
|
%{?el5:BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Provides: perl-Time-modules = %{version}-%{release}
|
|
|
|
@ -16,8 +14,10 @@ Obsoletes: perl-Time-modules <= 2013.0912-3
|
|
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
@ -46,24 +46,15 @@ perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?el5}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%endif
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%if 0%{?el5}
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
@ -71,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jul 11 2018 Petr Pisar <ppisar@redhat.com> - 2015.103-9
|
|
|
|
|
- Modernize spec file
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2015.103-8
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|