From e2037c279b772dddd095a06d51cf404c043b811d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Wed, 2 Mar 2016 16:05:33 +0100
Subject: Package cleanup

---
 perl-Text-German.spec | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/perl-Text-German.spec b/perl-Text-German.spec
index e2eb60b..bf31443 100644
--- a/perl-Text-German.spec
+++ b/perl-Text-German.spec
@@ -1,16 +1,20 @@
 Name:           perl-Text-German
 Version:        0.06
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        German grundform reduction
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Text-German/
 Source0:        
http://www.cpan.org/authors/id/U/UL/ULPFR/Text-German-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-
-%{?perl_default_filter}
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(Exporter)
+# Tests only
+# -
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 This is a rather incomplete implementation of work done by Gudrun Putze-Meier. 
@@ -19,27 +23,25 @@ This is a rather incomplete implementation of work done by 
Gudrun Putze-Meier.
 %setup -q -n Text-German-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$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 \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
 %doc README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Wed Mar 02 2016 Petr Ĺ abata <con...@redhat.com> - 0.06-16
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.06-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


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