]> git.pld-linux.org Git - packages/perl-ldap.git/blobdiff - perl-ldap.spec
- rollback autodowngrade
[packages/perl-ldap.git] / perl-ldap.spec
index 1955ff1a8b0b942b7fccc689105927bc84156fc5..5da3553ec4d51f40068e5d5550377a47c2baac7c 100644 (file)
@@ -1,23 +1,26 @@
+%define                _noautoreq "perl(Convert::ASN1::Debug)"
 %include       /usr/lib/rpm/macros.perl
 Summary:       perl-ldap perl module
 Summary(pl):   Modu³ perla perl-ldap
 Name:          perl-ldap
-Version:       0.13
-Release:       3
+Version:       0.25
+Release:       1
+Epoch:         1
 License:       GPL
 Group:         Development/Languages/Perl
+Group(de):     Entwicklung/Sprachen/Perl
 Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module//%{name}-%{version}.tar.gz
-Patch0:                perl-ldap-paths.patch
+Source0:       ftp://ftp.perl.org/pub/CPAN/authors/id/G/GB/GBARR//%{name}-%{version}.tar.gz
 BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
+BuildRequires: perl >= 5.6
 BuildRequires: perl-Convert-BER
 BuildRequires: perl-Digest-MD5
 BuildRequires: perl-MIME-Base64
 BuildRequires: perl-URI
+BuildRequires: perl-IO-Socket-SSL
 BuildRequires: perl-libwww
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+BuildRequires: perl-devel
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,45 +33,33 @@ poziomu program
 
 %prep
 %setup -q -n perl-ldap-%{version}
-%patch -p0
+find . -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
 
 %build
 perl Makefile.PL
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-install examples/* $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name}-%{version}
-cp -r {contrib,bin} $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name}-%{version}
+cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/perl-ldap
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        ChangeLog README TODO
+gzip -9nf ChangeLog README TODO
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {ChangeLog,README,TODO}.gz
-
+%doc *.gz
 %{perl_sitelib}/Authen/SASL.pm
 %{perl_sitelib}/Authen/SASL
 %{perl_sitelib}/LWP/Protocol/ldap.pm
 %{perl_sitelib}/Net/LDAP.pm
 %{perl_sitelib}/Net/LDAP
-
-%{perl_sitearch}/auto/perl-ldap
-
+%{perl_sitelib}/Net/LDAPS.pm
 %{_mandir}/man3/*
-
-%{_prefix}/src/examples/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}
This page took 0.045788 seconds and 4 git commands to generate.