From 23387579c4859e38b87c246da9057d7d4cf98bdd Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Tue, 2 Feb 2016 09:50:30 +0100
Subject: Modernize spec file

---
 perl-Text-WrapI18N.spec | 55 ++++++++++++++++++++++++-------------------------
 1 file changed, 27 insertions(+), 28 deletions(-)

diff --git a/perl-Text-WrapI18N.spec b/perl-Text-WrapI18N.spec
index 4ff1421..25bbce7 100644
--- a/perl-Text-WrapI18N.spec
+++ b/perl-Text-WrapI18N.spec
@@ -1,19 +1,23 @@
-Summary: Line wrapping with support for several locale setups
-Name: perl-Text-WrapI18N
-Version: 0.06
-Release: 23%{?dist}
-License: GPL+ or Artistic
-Group: Development/Libraries
-URL: http://search.cpan.org/dist/Text-WrapI18N/
-Source0: 
http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-WrapI18N-%{version}.tar.gz
-BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: perl(Exporter)
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Test::Simple)
-BuildRequires: perl(Text::CharWidth) >= 0.02
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires: perl(Text::CharWidth) >= 0.02
+Summary:        Line wrapping with support for several locale setups
+Name:           perl-Text-WrapI18N
+Version:        0.06
+Release:        24%{?dist}
+License:        GPL+ or Artistic
+
+URL:            http://search.cpan.org/dist/Text-WrapI18N/
+Source0:        
http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-WrapI18N-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires:  perl(Test::Simple)
+BuildRequires:  perl(Text::CharWidth) >= 0.02
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+%{?perl_default_filter}
 
 %description
 This is a module which intends to substitute Text::Wrap,
@@ -30,30 +34,25 @@ which supports internationalized texts including:
 %setup -q -n Text-WrapI18N-%{version}
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-make
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
+make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-find %{buildroot} -type f \( -name .packlist -or -name perllocal.pod \
-  -or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} \;
-chmod -R u+w %{buildroot}
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc README Changes
 %{perl_vendorlib}/Text
 %{_mandir}/man3/Text::WrapI18N.3pm*
 
 %changelog
+* Tue Feb 02 2016 Emmanuel Seyman <emman...@seyman.fr> - 0.06-24
+- Modernize spec file
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.06-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


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