]> git.pld-linux.org Git - packages/perl-ldap.git/blob - perl-ldap.spec
- massive attack: change CPAN URLs
[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.26
10 Release:        1
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 >= 5.6.1
16 BuildRequires:  perl-Convert-ASN1 >= 0.07
17 BuildRequires:  perl-Digest-HMAC
18 BuildRequires:  perl-Digest-MD5
19 BuildRequires:  perl-IO-Socket-SSL
20 BuildRequires:  perl-MIME-Base64
21 BuildRequires:  perl-URI >= 1.08
22 BuildRequires:  perl-XML-Parser
23 BuildRequires:  perl(Authen::SASL) >= 2.00
24 BuildRequires:  perl-devel
25 BuildRequires:  perl-libwww
26 BuildRequires:  rpm-perlprov >= 3.0.3-16
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _noautoreq "perl(Convert::ASN1::Debug)"
31
32 %description
33 perl-ldap is a collection of modules that implements a LDAP services
34 API for Perl programs.
35
36 %description -l pl
37 perl-ldap jest kolekcj± modu³ów umo¿liwiaj±cych dostêp do us³ug LDAP z
38 poziomu programów perla.
39
40 %prep
41 %setup -q -n perl-ldap-%{version}
42 find . -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
43
44 %build
45 perl Makefile.PL
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_sitelib}/LWP/Protocol/ldap.pm
64 %{perl_sitelib}/Net/LDAP.pm
65 %{perl_sitelib}/Net/LDAP
66 %{perl_sitelib}/Net/LDAPS.pm
67 %{_mandir}/man3/*
68 %{_examplesdir}/%{name}-%{version}
This page took 0.03973 seconds and 4 git commands to generate.