X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-DBD-LDAP.spec;h=f8bdc3fa925bebf4ea46a134eb2b50372aa1336e;hb=b0924ed964eb037d4643c4559370152c2db33ee0;hp=8e3d4602d0032135f6eba75efab5e161af95b251;hpb=c23743ada385ac418c6cfaa280429ecb090c33f9;p=packages%2Fperl-DBD-LDAP.git diff --git a/perl-DBD-LDAP.spec b/perl-DBD-LDAP.spec index 8e3d460..f8bdc3f 100644 --- a/perl-DBD-LDAP.spec +++ b/perl-DBD-LDAP.spec @@ -1,54 +1,46 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# %include /usr/lib/rpm/macros.perl %define pdir DBD %define pnam LDAP -Summary: DBD::LDAP Perl module -Summary(cs): Modul DBD::LDAP pro Perl -Summary(da): Perlmodul DBD::LDAP -Summary(de): DBD::LDAP Perl Modul -Summary(es): Módulo de Perl DBD::LDAP -Summary(fr): Module Perl DBD::LDAP -Summary(it): Modulo di Perl DBD::LDAP -Summary(ja): DBD::LDAP Perl ¥â¥¸¥å¡¼¥ë -Summary(ko): DBD::LDAP ÆÞ ¸ðÁÙ -Summary(no): Perlmodul DBD::LDAP -Summary(pl): Modu³ Perla DBD::LDAP -Summary(pt): Módulo de Perl DBD::LDAP -Summary(pt_BR): Módulo Perl DBD::LDAP -Summary(ru): íÏÄÕÌØ ÄÌÑ Perl DBD::LDAP -Summary(sv): DBD::LDAP Perlmodul -Summary(uk): íÏÄÕÌØ ÄÌÑ Perl DBD::LDAP -Summary(zh_CN): DBD::LDAP Perl Ä£¿é +Summary: DBD::LDAP - a DBI driver for LDAP databases +Summary(pl.UTF-8): DBD::LDAP - sterownik DBI do baz danych LDAP Name: perl-DBD-LDAP -Version: 0.05 -Release: 4 -License: GPL/Artistic +Version: 1.00 +Release: 1 +License: GPL or Artistic Group: Development/Languages/Perl -Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -Patch0: %{name}-paths.patch +Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 436fa67e50a37dd54e302e4f115c7c3c +URL: http://search.cpan.org/dist/DBD-LDAP/ BuildRequires: perl-DBI >= 1.03 BuildRequires: perl-ldap >= 0.01 -BuildRequires: rpm-perlprov >= 3.0.3-16 +BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DBD::LDAP - a DBI driver for LDAP databases. -%description -l pl +%description -l pl.UTF-8 DBD::LDAP - sterownik DBI do baz danych LDAP. %prep %setup -q -n %{pdir}-%{pnam}-%{version} -%patch0 -p1 %build -perl Makefile.PL - +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor %{__make} +%{?with_tests:%{__make} test} + %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT @@ -56,7 +48,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README -%{perl_sitelib}/DBD/LDAP.pm -%{perl_sitelib}/JLdap.pm -%{perl_sitelib}/auto/DBD +%{perl_vendorlib}/DBD/LDAP.pm +%{perl_vendorlib}/JLdap.pm +#%{perl_vendorlib}/auto/DBD %{_mandir}/man3/*