%define _use_internal_dependency_generator 0 %define cpanname ldap Name: perl-Net-LDAP Version: 0.31 Release: 0.2.ker.rhel3 Summary: Perl Net::LDAP module - Lightweight Directory Access Protocol. License: Distributable Group: Development/Libraries URL: http://search.cpan.org/search?mode=module&query=%{cpanname} BuildRoot: %{_tmppath}/%{name}-root BuildRequires: perl >= 0:5.00503 Source0: perl-%{cpanname}-%{version}.tar.gz Requires: perl(IO::Socket::SSL) perl(Authen::SASL) BuildRequires: perl(IO::Socket::SSL) perl(Authen::SASL) perl(XML::SAX::Base) BuildArch: noarch %description Net::LDAP is a collection of modules that implements a LDAP services API for Perl programs. The module may be used to search directories or perform maintenance functions such as adding, deleting or modifying entries. This document assumes that the reader has some knowledge of the LDAP protocol. %prep %setup -q -n perl-%{cpanname}-%{version} %build echo | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make #make test %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > %{cpanname}-%{version}-filelist if [ "$(cat %{cpanname}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %files -f %{cpanname}-%{version}-filelist %defattr(-,root,root) %changelog * Wed Jun 30 2004 Milan Kerslager 0.31-0.2.ker.rhel3 - initial version