# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl Summary: perl-ldap module - a client interface to LDAP servers Summary(pl): Moduł perl-ldap - kliencki interfejs do serwerów LDAP Name: perl-ldap Version: 0.32 Release: 1 Epoch: 2 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz # Source0-md5: e975df97d371933537ece153113ea686 URL: http://ldap.perl.org/ %if %{with tests} BuildRequires: perl-Authen-SASL >= 2.00 BuildRequires: perl-Convert-ASN1 >= 0.07 BuildRequires: perl-Digest-MD5 BuildRequires: perl-IO-Socket-SSL BuildRequires: perl-MIME-Base64 BuildRequires: perl-Module-Signature BuildRequires: perl-URI >= 1.08 BuildRequires: perl-XML-SAX BuildRequires: perl-libwww %endif BuildRequires: perl-ExtUtils-AutoInstall BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq 'perl(Convert::ASN1::Debug)' %description perl-ldap is a collection of modules that implements a LDAP services API for Perl programs. %description -l pl perl-ldap to zestaw modułów umożliwiających dostęp do usług LDAP z poziomu programów w Perlu. %prep %setup -q -n perl-ldap-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} # this must be done after tests because of signature checking find blib -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g' %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CREDITS Changes README TODO %{perl_vendorlib}/LWP/Protocol/ldap.pm %{perl_vendorlib}/Net/LDAP*.pm %dir %{perl_vendorlib}/Net/LDAP %{perl_vendorlib}/Net/LDAP/*.pm %{perl_vendorlib}/Net/LDAP/Control %{perl_vendorlib}/Net/LDAP/Extension %{_mandir}/man3/N* %{_examplesdir}/%{name}-%{version}