# # 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 Name: perl-Tie-DBI Version: 0.93 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: 7f049f9897ee24fb5adcacf25213adfe BuildRequires: perl-devel >= 5.6 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 using the DBI interface. %description -l pl 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/*