From b3365e5979e9d6bfe14105c24e13e7b673833a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com> Date: Wed, 2 Mar 2016 15:48:38 +0100 Subject: Package cleanup
--- perl-Text-Emoticon.spec | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/perl-Text-Emoticon.spec b/perl-Text-Emoticon.spec index 15445e2..fe734c1 100644 --- a/perl-Text-Emoticon.spec +++ b/perl-Text-Emoticon.spec @@ -1,17 +1,21 @@ Name: perl-Text-Emoticon Version: 0.04 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Factory class for Yahoo! and MSN emoticons License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Text-Emoticon/ Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Text-Emoticon-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) >= 0.32 +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Runtime +BuildRequires: perl(strict) BuildRequires: perl(UNIVERSAL::require) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Tests only +BuildRequires: perl(Test::More) >= 0.32 +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description Text::Emoticon is a factory class to dispatch MSN/YIM emoticon set. @@ -22,32 +26,25 @@ Kwiki/MT plugins. %setup -q -n Text-Emoticon-%{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.git/commit/?h=master&id=b3365e5979e9d6bfe14105c24e13e7b673833a88 -- 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