# # Conditional build: %bcond_without tests # Do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir DBD %define pnam ODBC Summary: DBD::ODBC - ODBC Driver for DBI Summary(pl): DBD::ODBC - sterownik DBI do ODBC Name: perl-DBD-ODBC Version: 1.09 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: 884f828eaf8d13e935a8d8b9752a07c0 BuildRequires: perl-DBI > 1.20 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: unixODBC-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DBD::ODBC is DBD module interfacing the ODBC databases. %description -l pl DBD::ODBC jest modułem DBD komunikującym się z bazami danych z użyciem ODBC. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %{__perl} -pi -e 's/.*(@\$\(NOOP\))/\t$1/' Makefile.PL %build %{__perl} Makefile.PL \ -o /usr \ INSTALLDIRS=vendor %{__make} \ OPTIMIZE="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{?with_tests:%{__make} test} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorarch}/DBD/ODBC.pm %dir %{perl_vendorarch}/auto/DBD/ODBC %{perl_vendorarch}/auto/DBD/ODBC/ODBC.bs %attr(755,root,root) %{perl_vendorarch}/auto/DBD/ODBC/ODBC.so %{_mandir}/man3/*