From ca2da6a6380dfb74d474ff73962609f6e9c0938f Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emman...@seyman.fr>
Date: Tue, 2 Feb 2016 10:07:56 +0100
Subject: Modernize spec file

---
 perl-Text-CharWidth.spec | 53 +++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 28 deletions(-)

diff --git a/perl-Text-CharWidth.spec b/perl-Text-CharWidth.spec
index 8c620db..fadfc02 100644
--- a/perl-Text-CharWidth.spec
+++ b/perl-Text-CharWidth.spec
@@ -1,54 +1,51 @@
-Summary: Get number of occupied columns of a string on terminal
-Name: perl-Text-CharWidth
-Version: 0.04
-Release: 24%{?dist}
-License: GPL+ or Artistic
-Group: Development/Libraries
-URL: http://search.cpan.org/dist/Text-CharWidth/
-Source0: 
http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-CharWidth-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: perl(Exporter)
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Test::Simple)
-BuildRequires: perl(XSLoader)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Summary:        Get number of occupied columns of a string on terminal
+Name:           perl-Text-CharWidth
+Version:        0.04
+Release:        25%{?dist}
+License:        GPL+ or Artistic
+
+URL:            http://search.cpan.org/dist/Text-CharWidth/
+Source0:        
http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-CharWidth-%{version}.tar.gz
+
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires:  perl(Test::Simple)
+BuildRequires:  perl(XSLoader)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %{?perl_default_filter}
 
 %description
 This is a module to provide equivalent feature as wcwidth(3) and
-wcswidth(3).  This also provides mblen(3) equivalent subroutine.
+wcswidth(3). This also provides mblen(3) equivalent subroutine.
 
 %prep
 %setup -q -n Text-CharWidth-%{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_vendorarch}/Text
 %{perl_vendorarch}/auto/Text
 %{_mandir}/man3/Text::CharWidth.3pm*
 
 %changelog
+* Tue Feb 02 2016 Emmanuel Seyman <emman...@seyman.fr> - 0.04-25
+- Modernize spec file
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.04-24
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


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