From 5fd8e43b0502875e4f52482b1f136375f86f20a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Wed, 2 Mar 2016 15:56:29 +0100
Subject: Package cleanup

---
 perl-Text-Emoticon-MSN.spec | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/perl-Text-Emoticon-MSN.spec b/perl-Text-Emoticon-MSN.spec
index 5f50790..91894bb 100644
--- a/perl-Text-Emoticon-MSN.spec
+++ b/perl-Text-Emoticon-MSN.spec
@@ -1,17 +1,24 @@
 Name:           perl-Text-Emoticon-MSN
 Version:        0.04
-Release:        18%{?dist}
+Release:        19%{?dist}
 Summary:        Emoticon filter of MSN Messenger
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Text-Emoticon-MSN/
 Source0:        
http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Text-Emoticon-MSN-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(base)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Text::Emoticon) >= 0.03
+# Tests only
 BuildRequires:  perl(Test::More) >= 0.32
-BuildRequires:  perl(Text::Emoticon) >= 0.02
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
+
+%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(Text::Emoticon\\)$
 
 %description
 Text::Emoticon::MSN is a text filter that replaces text emoticons like 
@@ -22,32 +29,25 @@ http://messenger.msn.com/Resource/Emoticons.aspx
 %setup -q -n Text-Emoticon-MSN-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-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
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Wed Mar 02 2016 Petr Ĺ abata <con...@redhat.com> - 0.04-19
+- Package cleanup
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.04-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


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