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