]> git.pld-linux.org Git - packages/perl-ldap.git/blame - perl-ldap.spec
- tabs in preamble
[packages/perl-ldap.git] / perl-ldap.spec
CommitLineData
5acb05a5 1#
2# Conditional build:
dd526884 3%bcond_with tests # perform "make test" (requires working ldap server and gnupg configured with key retrieval with hkp)
5acb05a5 4#
5%include /usr/lib/rpm/macros.perl
6Summary: perl-ldap module - a client interface to LDAP servers
896f28f4 7Summary(pl.UTF-8): Moduł perl-ldap - kliencki interfejs do serwerów LDAP
5acb05a5 8Name: perl-ldap
dd526884 9Version: 0.33
0a8ccb23
ER
10Release: 2
11Epoch: 3
a5c0efa7 12# same as perl
13License: GPL v1+ or Artistic
5acb05a5 14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
dd526884 16# Source0-md5: 7002aedb8bcaa7169a8f0a8e22d34b72
5acb05a5 17URL: http://ldap.perl.org/
18%if %{with tests}
5acb05a5 19BuildRequires: perl-IO-Socket-SSL
20BuildRequires: perl-MIME-Base64
21BuildRequires: perl-Module-Signature
22BuildRequires: perl-URI >= 1.08
23BuildRequires: perl-XML-SAX
24BuildRequires: perl-libwww
25%endif
90b88c96
JB
26BuildRequires: perl-Authen-SASL >= 2.00
27BuildRequires: perl-Convert-ASN1 >= 0.07
28BuildRequires: perl-Digest-MD5
d936e849 29BuildRequires: perl-ExtUtils-AutoInstall
fc0b156b 30BuildRequires: perl-devel >= 1:5.8.0
5acb05a5 31BuildRequires: rpm-perlprov >= 4.1-13
dd526884 32Obsoletes: perl-LDAP
5acb05a5 33BuildArch: noarch
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%define _noautoreq 'perl(Convert::ASN1::Debug)'
37
38%description
39perl-ldap is a collection of modules that implements a LDAP services
40API for Perl programs.
41
77436361
JR
42%description -l pl.UTF-8
43perl-ldap to zestaw modułów umożliwiających dostęp do usług LDAP z
44poziomu programów w Perlu.
5acb05a5 45
46%prep
dd526884 47%setup -q
5acb05a5 48
49%build
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
52%{__make}
53
fcd9d5dc 54%{?with_tests:%{__make} test}
5acb05a5 55
56# this must be done after tests because of signature checking
57find blib -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
58
59%install
60rm -rf $RPM_BUILD_ROOT
61install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62
dd526884 63%{__make} pure_install \
5acb05a5 64 DESTDIR=$RPM_BUILD_ROOT
5acb05a5 65cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66
dd526884
ER
67rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/LDAP/.packlist
68rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Bundle::Net::LDAP.3pm
69rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/{Bundle/Net/LDAP.pm,Net/{,LDAP/}*.pod}
70
5acb05a5 71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
d936e849 76%doc CREDITS Changes README TODO
5acb05a5 77%{perl_vendorlib}/LWP/Protocol/ldap.pm
78%{perl_vendorlib}/Net/LDAP*.pm
79%dir %{perl_vendorlib}/Net/LDAP
80%{perl_vendorlib}/Net/LDAP/*.pm
81%{perl_vendorlib}/Net/LDAP/Control
82%{perl_vendorlib}/Net/LDAP/Extension
83%{_mandir}/man3/N*
84%{_examplesdir}/%{name}-%{version}
This page took 0.062047 seconds and 4 git commands to generate.