]> git.pld-linux.org Git - packages/perl-DBD-LDAP.git/blobdiff - perl-DBD-LDAP.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DBD-LDAP.git] / perl-DBD-LDAP.spec
index 771e6e998e3a44a54ecb199eebcd8b46ee673306..0b0d7bd07ce3acc32264f4f8d30872eb62909306 100644 (file)
@@ -1,16 +1,19 @@
-%include       /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %define                pdir    DBD
 %define                pnam    LDAP
 Summary:       DBD::LDAP - a DBI driver for LDAP databases
-Summary(pl):   DBD::LDAP - sterownik DBI do baz danych LDAP
+Summary(pl.UTF-8):     DBD::LDAP - sterownik DBI do baz danych LDAP
 Name:          perl-DBD-LDAP
-Version:       0.05
-Release:       5
-License:       GPL/Artistic
+Version:       1.00
+Release:       1
+License:       GPL or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 2bec3a19cb53d9d302bb7575d2741d0f
-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 >= 4.1-13
@@ -19,22 +22,24 @@ 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 \
-       INSTALLDIRS=vendor 
+       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
@@ -44,5 +49,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc Changes README
 %{perl_vendorlib}/DBD/LDAP.pm
 %{perl_vendorlib}/JLdap.pm
-%{perl_vendorlib}/auto/DBD
+#%{perl_vendorlib}/auto/DBD
 %{_mandir}/man3/*
This page took 0.151747 seconds and 4 git commands to generate.