From 92e77b2b75a1dc78b9aa59e4259871007359e3e6 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:06:15 +0100
Subject: Modernize spec file

---
 perl-Browser-Open.spec | 34 ++++++++++++++++------------------
 1 file changed, 16 insertions(+), 18 deletions(-)

diff --git a/perl-Browser-Open.spec b/perl-Browser-Open.spec
index d5bf9ab..099f6e7 100644
--- a/perl-Browser-Open.spec
+++ b/perl-Browser-Open.spec
@@ -1,25 +1,26 @@
 Name:           perl-Browser-Open
 Version:        0.04
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        Open a browser in a given URL
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Browser-Open/
 Source0:        
http://search.cpan.org/CPAN/authors/id/C/CF/CFRANKS/Browser-Open-%{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(Exporter)
-BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::Spec::Functions)
 BuildRequires:  perl(parent)
-BuildRequires:  perl(Pod::Coverage::TrustPod)
-BuildRequires:  perl(strict)
-BuildRequires:  perl(Test::CPAN::Meta)
+# Tests:
 BuildRequires:  perl(Test::More) >= 0.92
-BuildRequires:  perl(Test::Pod) >= 1.00
-BuildRequires:  perl(Test::Pod::Coverage)
-BuildRequires:  perl(warnings)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %{?perl_default_filter}
 
@@ -30,23 +31,17 @@ the user browser.
 %prep
 %setup -q -n Browser-Open-%{version}
 
-# https://rt.cpan.org/Public/Bug/Display.html?id=66166
-find -type f -name '*.tmp' -exec rm -f {} \;
-
 %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 -depth -type d -exec rmdir {} 2>/dev/null \;
-
+find $RPM_BUILD_ROOT -type f -name .packlist -delete
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-RELEASE_TESTING=1 make test
+make test
 
 %files
 %doc Changes README
@@ -54,6 +49,9 @@ RELEASE_TESTING=1 make test
 %{_mandir}/man3/*
 
 %changelog
+* Fri Mar 18 2016 Petr Pisar <ppi...@redhat.com> - 0.04-13
+- Modernize spec file
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.04-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Browser-Open.git/commit/?h=master&id=92e77b2b75a1dc78b9aa59e4259871007359e3e6
--
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