From 7eb4ace8c0d685fb07fabd3ca509a9b769f7ff51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 11 Jul 2018 10:21:25 +0200 Subject: [PATCH] Modernize spec file Remove spec code not needed for Fedora or EPEL >= 7. There are no other builds for supported distibution. --- perl-Time-ParseDate.rpmlintrc | 2 ++ perl-Time-ParseDate.spec | 22 ++++++++-------------- 2 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 perl-Time-ParseDate.rpmlintrc diff --git a/perl-Time-ParseDate.rpmlintrc b/perl-Time-ParseDate.rpmlintrc new file mode 100644 index 0000000..8168dd2 --- /dev/null +++ b/perl-Time-ParseDate.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (CTime|DaysInMonth|JulianDay)"); diff --git a/perl-Time-ParseDate.spec b/perl-Time-ParseDate.spec index e6e9bab..8e3473d 100644 --- a/perl-Time-ParseDate.spec +++ b/perl-Time-ParseDate.spec @@ -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 - 2015.103-9 +- Modernize spec file + * Thu Jun 28 2018 Jitka Plesnikova - 2015.103-8 - Perl 5.28 rebuild