3 %bcond_with tests # perform "make test" (requires working ldap server and gnupg configured with key retrieval with hkp)
5 %include /usr/lib/rpm/macros.perl
6 Summary: perl-ldap module - a client interface to LDAP servers
7 Summary(pl.UTF-8): Moduł perl-ldap - kliencki interfejs do serwerów LDAP
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
16 # Source0-md5: 398689b0a7b1615075a6b5035f6e3e91
17 URL: http://ldap.perl.org/
18 BuildRequires: perl-Authen-SASL >= 2.00
19 BuildRequires: perl-Convert-ASN1 >= 0.07
20 BuildRequires: perl-Digest-MD5
21 BuildRequires: perl-IO-Socket-SSL >= 0.81
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRequires: perl-MIME-Base64
26 BuildRequires: perl-Module-Signature
27 BuildRequires: perl-URI >= 1.08
28 BuildRequires: perl-XML-SAX
29 BuildRequires: perl-libwww
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _noautoreq 'perl(Convert::ASN1::Debug)'
38 perl-ldap is a collection of modules that implements a LDAP services
39 API for Perl programs.
41 %description -l pl.UTF-8
42 perl-ldap to zestaw modułów umożliwiających dostęp do usług LDAP z
43 poziomu programów w Perlu.
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
55 # this must be done after tests because of signature checking
56 find blib -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 %{__make} pure_install \
63 DESTDIR=$RPM_BUILD_ROOT
64 cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/LDAP/.packlist
67 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Bundle::Net::LDAP.3pm
68 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/{Bundle/Net/LDAP.pm,Net/{,LDAP/}*.pod}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc CREDITS Changes README TODO
76 %{perl_vendorlib}/LWP/Protocol/ldap.pm
77 %{perl_vendorlib}/Net/LDAP*.pm
78 %dir %{perl_vendorlib}/Net/LDAP
79 %{perl_vendorlib}/Net/LDAP/*.pm
80 %{perl_vendorlib}/Net/LDAP/Control
81 %{perl_vendorlib}/Net/LDAP/Extension
83 %{_examplesdir}/%{name}-%{version}