]> git.pld-linux.org Git - packages/perl-Tie-DBI.git/blobdiff - perl-Tie-DBI.spec
- autoupdated to 0.94
[packages/perl-Tie-DBI.git] / perl-Tie-DBI.spec
index e6bf0c4bde09a1dea974e43255bfdc844b4bbe11..08806ff75a7b436e412e73addc7fc782e572cd74 100644 (file)
@@ -1,47 +1,56 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test"
+                       # require MySQL server access
+#
 %include       /usr/lib/rpm/macros.perl
-%define        pdir    Tie
-%define        pnam    DBI
-Summary:       Tie-DBI perl module
-Summary(pl):   Modu³ perla Tie-DBI
+%define                pdir    Tie
+%define                pnam    DBI
+Summary:       Tie::DBI perl module
+Summary(pl):   Modu³ Perla Tie::DBI
 Name:          perl-Tie-DBI
-Version:       0.91
-Release:       6
-License:       GPL
+Version:       0.94
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 3dd6cf95503e475ddb454e79d349026f
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: perl-DBI
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Tie-DBI allows you to tie Perl associative arrays to SQL databases
+Tie::DBI allows you to tie Perl associative arrays to SQL databases
 using the DBI interface.
 
 %description -l pl
-Tie-DBI pozwala na wi±zanie tablic asocjacyjnych perla z bazamu SQL
+Tie::DBI pozwala na wi±zanie tablic asocjacyjnych Perla z bazami SQL
 wykorzystuj±c interfejs DBI.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %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
-
-gzip -9nf Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Tie/*.pm
+%doc Changes README
+%{perl_vendorlib}/Tie/*.pm
 %{_mandir}/man3/*
This page took 0.055711 seconds and 4 git commands to generate.