]> git.pld-linux.org Git - packages/perl-ldap.git/blobdiff - perl-ldap.spec
- converted to UTF-8
[packages/perl-ldap.git] / perl-ldap.spec
index 38eecf44286d49eb52bdf9ce7bc26191a43281e6..cdc4ba6ebbf2b12d216a033b15c3a8ecc3b6bf3c 100644 (file)
@@ -1,24 +1,21 @@
 #
 # Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_with    tests # perform "make test" (requires working ldap server and gnupg configured with key retrieval with hkp)
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       perl-ldap module - a client interface to LDAP servers
-Summary(pl):   Modu³ perl-ldap - kliencki interfejs do serwerów LDAP
+Summary(pl.UTF-8):   Moduł perl-ldap - kliencki interfejs do serwerów LDAP
 Name:          perl-ldap
-Version:       0.31
-Release:       1
-Epoch:         2
+Version:       0.33
+Release:       2
+Epoch:         3
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
-# Source0-md5: b3107452e2bb4d74d4b9892d61d50137
+# Source0-md5: 7002aedb8bcaa7169a8f0a8e22d34b72
 URL:           http://ldap.perl.org/
 %if %{with tests}
-BuildRequires: perl-Authen-SASL >= 2.00
-BuildRequires: perl-Convert-ASN1 >= 0.07
-BuildRequires: perl-Digest-MD5
 BuildRequires: perl-IO-Socket-SSL
 BuildRequires: perl-MIME-Base64
 BuildRequires: perl-Module-Signature
@@ -26,8 +23,13 @@ BuildRequires:       perl-URI >= 1.08
 BuildRequires: perl-XML-SAX
 BuildRequires: perl-libwww
 %endif
-BuildRequires: perl-devel >= 5.8.0
+BuildRequires: perl-Authen-SASL >= 2.00
+BuildRequires: perl-Convert-ASN1 >= 0.07
+BuildRequires: perl-Digest-MD5
+BuildRequires: perl-ExtUtils-AutoInstall
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
+Obsoletes:     perl-LDAP
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,12 +39,12 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 perl-ldap is a collection of modules that implements a LDAP services
 API for Perl programs.
 
-%description -l pl
-perl-ldap to zestaw modu³ów umo¿liwiaj±cych dostêp do us³ug LDAP z
-poziomu programów w Perlu.
+%description -l pl.UTF-8
+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}
+%setup -q
 
 %build
 %{__perl} Makefile.PL \
@@ -58,16 +60,20 @@ find blib -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__make} install \
+%{__make} pure_install \
        DESTDIR=$RPM_BUILD_ROOT
 cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/LDAP/.packlist
+rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Bundle::Net::LDAP.3pm
+rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/{Bundle/Net/LDAP.pm,Net/{,LDAP/}*.pod}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CREDITS ChangeLog README RELEASE_NOTES TODO
+%doc CREDITS Changes README TODO
 %{perl_vendorlib}/LWP/Protocol/ldap.pm
 %{perl_vendorlib}/Net/LDAP*.pm
 %dir %{perl_vendorlib}/Net/LDAP
This page took 0.03467 seconds and 4 git commands to generate.