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

---
 perl-Text-Reform.spec | 37 ++++++++++++++++++++-----------------
 1 file changed, 20 insertions(+), 17 deletions(-)

diff --git a/perl-Text-Reform.spec b/perl-Text-Reform.spec
index b3250e0..9ca00f4 100644
--- a/perl-Text-Reform.spec
+++ b/perl-Text-Reform.spec
@@ -1,20 +1,29 @@
 Name:           perl-Text-Reform
 Version:        1.20
-Release:        14%{?dist}
+Release:        15%{?dist}
 Summary:        Manual text wrapping and reformatting
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Text-Reform/
 Source0:        
http://www.cpan.org/authors/id/C/CH/CHORNY/Text-Reform-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+# Build
+BuildRequires:  coreutils
+BuildRequires:  perl
 BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+# Runtime
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(strict)
+# XXX: BuildRequires:  perl(TeX::Hyphen)
+BuildRequires:  perl(vars)
+# Tests only
+BuildRequires:  perl(overload)
 BuildRequires:  perl(Test::More)
+# Optional tests only
 BuildRequires:  perl(Test::Pod) >= 1.14 
-BuildRequires:  perl(version)
-
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 Requires:       perl(TeX::Hyphen)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %description
 The module supplies a re-entrant, highly configurable replacement for the
@@ -22,19 +31,14 @@ built-in Perl format() mechanism.
 
 %prep
 %setup -q -n Text-Reform-%{version}
-chmod 644 Changes README lib/Text/*.pm
+chmod 644 -c Changes README lib/Text/*.pm
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 ./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/*
 
 %check
@@ -42,16 +46,15 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 
2>/dev/null \;
 # fails for almost all European languages except en
 LC_NUMERIC=C ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README demo/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Wed Mar 02 2016 Petr Ĺ abata <con...@redhat.com> - 1.20-15
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.20-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


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