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

---
 perl-Lingua-Stem.spec | 49 ++++++++++++++++++++++++++++++++++---------------
 1 file changed, 34 insertions(+), 15 deletions(-)

diff --git a/perl-Lingua-Stem.spec b/perl-Lingua-Stem.spec
index 3046d65..70d5a3a 100644
--- a/perl-Lingua-Stem.spec
+++ b/perl-Lingua-Stem.spec
@@ -1,34 +1,51 @@
 Name:           perl-Lingua-Stem
 Version:        0.84
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Stemming of words
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Lingua-Stem/
 Source0:        
http://www.cpan.org/authors/id/S/SN/SNOWHARE/Lingua-Stem-%{version}.tar.gz
 # Define POD encoding, CPAN RT#87242
 Patch0:         Lingua-Stem-0.84-Define-POD-encoding.patch
 BuildArch:      noarch
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(Module::Build)
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(Lingua::GL::Stemmer)
 BuildRequires:  perl(Lingua::PT::Stemmer)
 BuildRequires:  perl(Lingua::Stem::Fr) >= 0.02
 BuildRequires:  perl(Lingua::Stem::It)
-BuildRequires:  perl(Lingua::Stem::Ru)
+# XXX: BuildRequires:  perl(Lingua::Stem::Ru)
 BuildRequires:  perl(Lingua::Stem::Snowball::Da) >= 1.01
 BuildRequires:  perl(Lingua::Stem::Snowball::No) >= 1.00
 BuildRequires:  perl(Lingua::Stem::Snowball::Se) >= 1.01
-BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Text::German)
+BuildRequires:  perl(vars)
+# Tests only
+BuildRequires:  perl(blib)
+BuildRequires:  perl(lib)
+# Optional tests only
+BuildRequires:  perl(Pod::Coverage)
 BuildRequires:  perl(Test::Distribution)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod)
 BuildRequires:  perl(Test::Pod::Coverage)
-BuildRequires:  perl(Text::German)
-Requires:       perl(Lingua::Stem::Fr)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
+Requires:       perl(Lingua::Stem::Snowball::Da) >= 1.01
+Requires:       perl(Lingua::Stem::Snowball::No) >= 1.00
+Requires:       perl(Lingua::Stem::Snowball::Se) >= 1.01
+Requires:       perl(Lingua::Stem::Fr) >= 0.02
 Requires:       perl(Lingua::Stem::It)
 Requires:       perl(Lingua::Stem::Ru)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
-%{?perl_default_filter}
+%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(Lingua::Stem::Snowball::Da\\)$
+%global __requires_exclude 
%__requires_exclude|^perl\\(Lingua::Stem::Snowball::No\\)$
+%global __requires_exclude 
%__requires_exclude|^perl\\(Lingua::Stem::Snowball::Se\\)$
+
 
 %description
 This routine applies stemming algorithms to its parameters, returning the
@@ -39,25 +56,27 @@ stemmed words as appropriate to the selected locale.
 %patch0 -p1
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}/*
 
 %check
 TEST_POD_COVERAGE=1 ./Build test
 
 %files
-%defattr(-,root,root,-)
-%doc Artistic_License.txt Changes GPL_License.txt LICENSE README
+# The LICENSE file doesn't contain license texts
+%license Artistic_License.txt GPL_License.txt
+%doc Changes LICENSE README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Feb 18 2016 Petr Ĺ abata <con...@redhat.com> - 0.84-16
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.84-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


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