#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_with tests # perform "make test" (requires working ldap server and gnupg configured with key retrieval with hkp)
#
%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.3202
+Version: 0.33
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: 57dc6214d06b4e9e2a3b0f778aa40261
+# Source0-md5: 7002aedb8bcaa7169a8f0a8e22d34b72
URL: http://ldap.perl.org/
%if %{with tests}
BuildRequires: perl-Authen-SASL >= 2.00
BuildRequires: perl-ExtUtils-AutoInstall
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+Obsoletes: perl-LDAP
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
poziomu programów w Perlu.
%prep
-%setup -q -n perl-ldap-%{version}
+%setup -q
%build
%{__perl} Makefile.PL \
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__make} install \
+%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/LDAP/.packlist
+rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Bundle::Net::LDAP.3pm
+rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/{Bundle/Net/LDAP.pm,Net/{,LDAP/}*.pod}
+
%clean
rm -rf $RPM_BUILD_ROOT