From 348313dbd3eb30cbaa17c545adb82fdb8fbbcfd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk(a)redhat.com>
Date: Tue, 1 Mar 2016 16:27:15 +0100
Subject: Package cleanup
---
perl-Snowball-Norwegian.spec | 36 +++++++++++++++++++++++-------------
1 file changed, 23 insertions(+), 13 deletions(-)
diff --git a/perl-Snowball-Norwegian.spec b/perl-Snowball-Norwegian.spec
index de5a82f..15d2e5a 100644
--- a/perl-Snowball-Norwegian.spec
+++ b/perl-Snowball-Norwegian.spec
@@ -1,17 +1,27 @@
Name: perl-Snowball-Norwegian
Version: 1.2
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: Porter's stemming algorithm for Norwegian
License: GPLv2 or Artistic
-Group: Development/Libraries
URL:
http://search.cpan.org/dist/Snowball-Norwegian/
Source0:
http://www.cpan.org/authors/id/A/AS/ASKSH/Snowball-Norwegian-%{version}.t...
BuildArch: noarch
+# Build
+BuildRequires: coreutils
+BuildRequires: perl
BuildRequires: perl(Module::Build)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Runtime
+BuildRequires: perl(bytes)
+BuildRequires: perl(Carp)
+BuildRequires: perl(vars)
+# Tests only
+BuildRequires: perl(English)
+BuildRequires: perl(FileHandle)
+BuildRequires: perl(FindBin)
BuildRequires: perl(Test::More) >= 0.42
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
-
-%{?perl_default_filter}
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo
$version))
%description
The stem function takes a scalar as a parameter and stems the word according to
@@ -20,30 +30,30 @@ Snowball website:
http://snowball.tartarus.org/.
%prep
%setup -q -n Snowball-Norwegian-%{version}
-
mv bin/stemmer-no.pl bin/stemmer-no
%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
./Build test
%files
-%defattr(-,root,root,-)
-%doc Changes LICENSE README
+%license LICENSE
+%doc Changes README examples
%{perl_vendorlib}/*
%{_bindir}/*
%{_mandir}/man3/*
%changelog
+* Tue Mar 01 2016 Petr Šabata <contyk(a)redhat.com> - 1.2-16
+- Package cleanup
+
* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.2-15
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Snowball-Norwegian.git/commit/?h=...