]> git.pld-linux.org Git - packages/perl-ldap.git/blobdiff - perl-ldap.spec
- don't rename: this version still contains ldap.pm module
[packages/perl-ldap.git] / perl-ldap.spec
index b423cfe1c324fe52241242af848d4c3bae98c585..79ba4dee5940d8009fe620ea2c5d3349c86c9f34 100644 (file)
@@ -3,54 +3,62 @@
 # _without_tests - do not perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
-Summary:       perl-ldap perl module
-Summary(pl):   Modu³ perla perl-ldap
+Summary:       perl-ldap module - a client interface to LDAP servers
+Summary(pl):   Modu³ perl-ldap - kliencki interfejs do serwerów LDAP
 Name:          perl-ldap
-Version:       0.26
+Version:       0.31
 Release:       1
-Epoch:         1
+Epoch:         2
 License:       GPL
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Net/%{name}-%{version}.tar.gz
-BuildRequires: perl >= 5.6.1
+Source0:       http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
+# Source0-md5: b3107452e2bb4d74d4b9892d61d50137
+URL:           http://ldap.perl.org/
+%if %{with tests}
+BuildRequires: perl-Authen-SASL >= 2.00
 BuildRequires: perl-Convert-ASN1 >= 0.07
-BuildRequires: perl-Digest-HMAC
 BuildRequires: perl-Digest-MD5
 BuildRequires: perl-IO-Socket-SSL
 BuildRequires: perl-MIME-Base64
+BuildRequires: perl-Module-Signature
 BuildRequires: perl-URI >= 1.08
-BuildRequires: perl-XML-Parser
-BuildRequires: perl(Authen::SASL) >= 2.00
-BuildRequires: perl-devel
+BuildRequires: perl-XML-SAX
 BuildRequires: perl-libwww
-BuildRequires: rpm-perlprov >= 3.0.3-16
+%endif
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _noautoreq "perl(Convert::ASN1::Debug)"
+%define                _noautoreq 'perl(Convert::ASN1::Debug)'
 
 %description
 perl-ldap is a collection of modules that implements a LDAP services
 API for Perl programs.
 
 %description -l pl
-perl-ldap jest kolekcj± modu³ów umo¿liwiaj±cych dostêp do us³ug LDAP z
-poziomu programów perla.
+perl-ldap to zestaw modu³ów umo¿liwiaj±cych dostêp do us³ug LDAP z
+poziomu programów w Perlu.
 
 %prep
 %setup -q -n perl-ldap-%{version}
-find . -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
+
 %{!?_without_tests:%{__make} test}
 
+# this must be done after tests because of signature checking
+find blib -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -59,10 +67,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README TODO
-%{perl_sitelib}/LWP/Protocol/ldap.pm
-%{perl_sitelib}/Net/LDAP.pm
-%{perl_sitelib}/Net/LDAP
-%{perl_sitelib}/Net/LDAPS.pm
-%{_mandir}/man3/*
+%doc CREDITS ChangeLog README RELEASE_NOTES TODO
+%{perl_vendorlib}/LWP/Protocol/ldap.pm
+%{perl_vendorlib}/Net/LDAP*.pm
+%dir %{perl_vendorlib}/Net/LDAP
+%{perl_vendorlib}/Net/LDAP/*.pm
+%{perl_vendorlib}/Net/LDAP/Control
+%{perl_vendorlib}/Net/LDAP/Extension
+%{_mandir}/man3/N*
 %{_examplesdir}/%{name}-%{version}
This page took 0.031822 seconds and 4 git commands to generate.