>From af3444c58163438ca4847c14ff410faee8135a7b Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Wed, 25 Nov 2015 17:48:06 +0100
Subject: minor cleanups

---
 perl-WWW-Babelfish.spec | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/perl-WWW-Babelfish.spec b/perl-WWW-Babelfish.spec
index 634df1a..80e9c61 100644
--- a/perl-WWW-Babelfish.spec
+++ b/perl-WWW-Babelfish.spec
@@ -1,6 +1,6 @@
 Name:           perl-WWW-Babelfish
 Version:        0.16
-Release:        20%{?dist}
+Release:        21%{?dist}
 Summary:        Perl extension for translation via Babelfish or Google
 License:        GPL+ or Artistic
 
@@ -8,11 +8,13 @@ URL:            http://search.cpan.org/dist/WWW-Babelfish/
 Source0:        
http://www.cpan.org/authors/id/D/DU/DURIST/WWW-Babelfish-%{version}.tar.gz
 
 BuildArch:      noarch
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(HTML::TokeParser)
 BuildRequires:  perl(HTTP::Request)
 BuildRequires:  perl(IO::String)
 BuildRequires:  perl(LWP::UserAgent)
-BuildRequires:  perl(ExtUtils::MakeMaker)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %{?perl_default_filter}
@@ -25,15 +27,11 @@ Perl interface to the WWW babelfish translation server.
 
 %build
 # nix internet-based tests
-echo n | %{__perl} Makefile.PL INSTALLDIRS=vendor
+echo n | %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=%{buildroot}
 %{_fixperms} %{buildroot}/*
 
 %check
@@ -42,9 +40,14 @@ make test
 %files
 %doc Changes README
 %{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{_mandir}/man3/WWW*
 
 %changelog
+* Wed Nov 25 2015 Emmanuel Seyman <emman...@seyman.fr> - 0.16-21
+- Use NO_PACKLIST=1 when creating Makefile
+- Tighten file listing
+- Use DESTDIR instead of PERL_INSTALL_ROOT
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.16-20
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-WWW-Babelfish.git/commit/?h=master&id=af3444c58163438ca4847c14ff410faee8135a7b
--
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