# # Conditional build: %bcond_with tests # perform "make test" # require MySQL server access %define pdir Tie %define pnam DBI Summary: Tie::DBI perl module Summary(pl.UTF-8): Moduł Perla Tie::DBI Name: perl-Tie-DBI Version: 1.05 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 8bef1b1e4db79d1dcc871e87fbc68536 URL: http://search.cpan.org/dist/Tie-DBI/ BuildRequires: perl-DBI BuildRequires: perl-devel >= 1:5.8.0 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 using the DBI interface. %description -l pl.UTF-8 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 \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Tie/*.pm %{_mandir}/man3/*