]> git.pld-linux.org Git - packages/perl-ldap.git/blob - perl-ldap.spec
- BR: perl-devel; do not BR: perl
[packages/perl-ldap.git] / perl-ldap.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        perl-ldap Perl module
7 Summary(pl):    Modu³ perla Perl-ldap
8 Name:           perl-ldap
9 Version:        0.2701
10 Release:        3
11 Epoch:          1
12 License:        GPL
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
15 BuildRequires:  perl-devel >= 5.6.1
16 BuildRequires:  perl-Authen-SASL >= 2.00
17 BuildRequires:  perl-Convert-ASN1 >= 0.07
18 BuildRequires:  perl-Digest-HMAC
19 BuildRequires:  perl-Digest-MD5
20 BuildRequires:  perl-IO-Socket-SSL
21 BuildRequires:  perl-MIME-Base64
22 BuildRequires:  perl-URI >= 1.08
23 BuildRequires:  perl-XML-Parser
24 BuildRequires:  perl-libwww
25 BuildRequires:  rpm-perlprov >= 4.1-13
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _noautoreq "perl(Convert::ASN1::Debug)"
30
31 %description
32 perl-ldap is a collection of modules that implements a LDAP services
33 API for Perl programs.
34
35 %description -l pl
36 perl-ldap jest kolekcj± modu³ów umo¿liwiaj±cych dostêp do us³ug LDAP z
37 poziomu programów perla.
38
39 %prep
40 %setup -q -n perl-ldap-%{version}
41 find . -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor 
46 %{__make}
47 %{!?_without_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc ChangeLog README TODO
63 %{perl_vendorlib}/LWP/Protocol/ldap.pm
64 %{perl_vendorlib}/Net/LDAP.pm
65 %dir %{perl_vendorlib}/Net/LDAP
66 %{perl_vendorlib}/Net/LDAP/*.pm
67 %{perl_vendorlib}/Net/LDAP/Control
68 %{perl_vendorlib}/Net/LDAP/Extension
69 %{perl_vendorlib}/Net/LDAPS.pm
70 %{_mandir}/man3/N*
71 %{_examplesdir}/%{name}-%{version}
This page took 0.282125 seconds and 4 git commands to generate.