]> 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 f6cecdcc2194c78dd0b487cbf6d4f9a3cf097f0c..08806ff75a7b436e412e73addc7fc782e572cd74 100644 (file)
@@ -1,56 +1,56 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test"
+                       # require MySQL server access
+#
 %include       /usr/lib/rpm/macros.perl
-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.85
-Release:       3
-License:       GPL
+Version:       0.94
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Tie/Tie-DBI-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
+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
-%requires_eq   perl
-Requires:      %{perl_sitearch}
+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 Tie-DBI-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
-make
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Tie/DBI
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {Changes,README}.gz
-
-%{perl_sitelib}/Tie/*.pm
-%{perl_sitearch}/auto/Tie/DBI
-
+%doc Changes README
+%{perl_vendorlib}/Tie/*.pm
 %{_mandir}/man3/*
This page took 0.06453 seconds and 4 git commands to generate.