From 573981d8b03547f391a241935ec228103eba489f Mon Sep 17 00:00:00 2001 From: Robin Norwood Date: Thu, 25 Oct 2007 04:18:00 +0000 Subject: [PATCH] fix issues from package review --- perl-TermReadKey.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/perl-TermReadKey.spec b/perl-TermReadKey.spec index 696b06c..c691609 100644 --- a/perl-TermReadKey.spec +++ b/perl-TermReadKey.spec @@ -1,6 +1,6 @@ Name: perl-TermReadKey Version: 2.30 -Release: 2 +Release: 3%{?dist} Summary: A perl module for simple terminal control Group: Development/Libraries @@ -9,9 +9,8 @@ URL: http://search.cpan.org/dist/TermReadKey/ Source0: http://www.cpan.org/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: perl >= 1:5.6.1 BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Term::ReadKey is a compiled perl module dedicated to providing simple @@ -26,10 +25,12 @@ good likelyhood of it working. %prep %setup -q -n TermReadKey-%{version} + %build CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" + %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT @@ -38,9 +39,11 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* -%check || : + +%check make test + %clean rm -rf $RPM_BUILD_ROOT @@ -54,6 +57,13 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Oct 25 2007 Robin Norwood - 2.30-3 +- fix various issues from package review: +- remove extra || : from %%check +- add dist tag to release +- remove BR: perl +- fix tabs and spacing + * Tue Oct 16 2007 Tom "spot" Callaway - 2.30-2 - correct license tag - add BR: perl(ExtUtils::MakeMaker)