From 0d997414a8a88168dbb434debdcc6833c8a7a51f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Fri, 18 Mar 2016 13:20:13 +0100
Subject: Modernize spec file

---
 perl-Captcha-reCAPTCHA.spec | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/perl-Captcha-reCAPTCHA.spec b/perl-Captcha-reCAPTCHA.spec
index ebdaa0d..22c242c 100644
--- a/perl-Captcha-reCAPTCHA.spec
+++ b/perl-Captcha-reCAPTCHA.spec
@@ -1,13 +1,18 @@
 Name:           perl-Captcha-reCAPTCHA
 Version:        0.97
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Perl implementation of the reCAPTCHA API
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Captcha-reCAPTCHA/
 Source0:        
http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Captcha-reCAPTCHA-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
 # Run-time
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(constant)
@@ -20,26 +25,27 @@ BuildRequires:  perl(Test::More)
 # Optional tests
 BuildRequires:  perl(Test::Pod) >= 1.14
 BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(HTML::Tiny) >= 0.904
 
 %{?perl_default_filter}
+# Filter under-specified dependencies
+%global __requires_exclude 
%{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::Tiny\\)$
 
 %description
-reCAPTCHA is a hybrid mechanical turk and captcha that allows visitors who
+reCAPTCHA is a hybrid mechanical Turk and captcha that allows visitors who
 complete the captcha to assist in the digitization of books.
 
 %prep
 %setup -q -n Captcha-reCAPTCHA-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
 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 -delete
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -51,6 +57,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Fri Mar 18 2016 Petr Pisar <ppi...@redhat.com> - 0.97-10
+- Modernize spec file
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.97-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Captcha-reCAPTCHA.git/commit/?h=master&id=0d997414a8a88168dbb434debdcc6833c8a7a51f
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to