From 85fb1bb76717b7998eea839da0abcce39c242495 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Thu, 18 Feb 2016 16:04:58 +0100
Subject: Package cleanup

---
 perl-Lingua-Stem-It.spec | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)

diff --git a/perl-Lingua-Stem-It.spec b/perl-Lingua-Stem-It.spec
index 90b744c..0987814 100644
--- a/perl-Lingua-Stem-It.spec
+++ b/perl-Lingua-Stem-It.spec
@@ -1,16 +1,24 @@
 Name:           perl-Lingua-Stem-It
 Version:        0.02
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        Porter's stemming algorithm for Italian
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Lingua-Stem-It/
 Source0:        
http://www.cpan.org/authors/id/A/AC/ACALPINI/Lingua-Stem-It-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-
-%{?perl_default_filter}
+# Build
+BuildRequires:  coreutils
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+# Tests only
+# -
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 This module applies the Porter Stemming Algorithm to its parameters,
@@ -18,32 +26,29 @@ returning the stemmed words.
 
 %prep
 %setup -q -n Lingua-Stem-It-%{version}
-
-sed -ie 's/\r//' Changes README It.pm
-chmod -x Changes
+perl -pi -e 's/\r//g' Changes README It.pm
+chmod a-x -c Changes
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
-
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Feb 18 2016 Petr Ĺ abata <con...@redhat.com> - 0.02-17
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.02-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Lingua-Stem-It.git/commit/?h=master&id=85fb1bb76717b7998eea839da0abcce39c242495
--
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