[perl-POE-Component-Client-LDAP] Fix dependencies and clean the spec up a bit
Petr Šabata
psabata at fedoraproject.org
Tue Feb 19 13:08:17 UTC 2013
commit b071dcafa98f0960aee258a179c873111f0fc95d
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Feb 19 14:08:11 2013 +0100
Fix dependencies and clean the spec up a bit
perl-POE-Component-Client-LDAP.spec | 51 ++++++++++++++++++++--------------
1 files changed, 30 insertions(+), 21 deletions(-)
---
diff --git a/perl-POE-Component-Client-LDAP.spec b/perl-POE-Component-Client-LDAP.spec
index d2347fb..01d4998 100644
--- a/perl-POE-Component-Client-LDAP.spec
+++ b/perl-POE-Component-Client-LDAP.spec
@@ -2,20 +2,41 @@ Name: perl-POE-Component-Client-LDAP
Version: 0.04
Release: 16%{?dist}
Summary: Async LDAP access for POE
-
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/POE-Component-Client-LDAP
Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HACHI/POE-Component-Client-LDAP-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch: noarch
-BuildRequires: perl(Net::LDAP) >= 0.31, perl(Net::LDAP::ASN)
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(base)
+BuildRequires: perl(Carp)
+BuildRequires: perl(Config)
BuildRequires: perl(Convert::ASN1)
-BuildRequires: perl(POE), perl(POE::Wheel::Null)
+BuildRequires: perl(CPAN)
+BuildRequires: perl(Cwd)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::Manifest)
+BuildRequires: perl(ExtUtils::MM_Unix)
+BuildRequires: perl(File::Find)
+BuildRequires: perl(File::Path)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(FindBin)
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(Net::LDAP)
+BuildRequires: perl(Net::LDAP::ASN)
+BuildRequires: perl(Net::LDAP::Constant)
+BuildRequires: perl(POE)
+BuildRequires: perl(POE::Driver::SysRW)
+BuildRequires: perl(POE::Filter::Stream)
+BuildRequires: perl(POE::Wheel::Null)
+BuildRequires: perl(POE::Wheel::ReadWrite)
+BuildRequires: perl(POE::Wheel::SocketFactory)
+BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
+BuildRequires: perl(vars)
+BuildRequires: perl(warnings)
BuildRequires: dos2unix
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
POE::Component::Client::LDAP->new() starts up a new POE::Session and
@@ -24,38 +45,26 @@ object, allowing it to be used in async mode properly within a POE program.
%prep
%setup -q -n POE-Component-Client-LDAP-%{version}
-
# fix line endings...
dos2unix scripts/search.pl
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+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 ';'
chmod -R u+w %{buildroot}/*
-
%check
make test
-
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc Changes LICENSE README Todo scripts
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
-
%changelog
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.04-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list