[perl-POE-Component-SimpleLog] Fix the dependencies and clean the spec a bit
Petr Šabata
psabata at fedoraproject.org
Tue Feb 19 17:25:47 UTC 2013
commit a8884f0b45d1a59b7e325622bc15e7a23e74d42d
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Feb 19 18:25:43 2013 +0100
Fix the dependencies and clean the spec a bit
perl-POE-Component-SimpleLog.spec | 33 +++++++++++----------------------
1 files changed, 11 insertions(+), 22 deletions(-)
---
diff --git a/perl-POE-Component-SimpleLog.spec b/perl-POE-Component-SimpleLog.spec
index f3a3484..910d494 100644
--- a/perl-POE-Component-SimpleLog.spec
+++ b/perl-POE-Component-SimpleLog.spec
@@ -2,17 +2,21 @@ Name: perl-POE-Component-SimpleLog
Version: 1.05
Release: 12%{?dist}
Summary: A simple logging system for POE
-
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/POE-Component-SimpleLog
Source0: http://search.cpan.org/CPAN/authors/id/A/AP/APOCAL/POE-Component-SimpleLog-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch: noarch
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Carp)
BuildRequires: perl(POE)
+BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(warnings)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%{?perl_default_filter}
%description
This module is a vastly simplified logging system that can do nice stuff.
@@ -29,41 +33,26 @@ target session / target event for processing.
This enables an interesting logging system that can be changed during runtime
and allow pluggable interpretation of messages.
-
%prep
%setup -q -n POE-Component-SimpleLog-%{version}
-
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-
%install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-
%{_fixperms} %{buildroot}/*
-
%check
make test
-
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc README Changes examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
-
%changelog
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.05-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list