- added tests on bcond (disbled by default)
Changed files:
perl-DBD-mysql.spec -> 1.11
+#
+# Conditional build:
+# _with_tests - perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir DBD
%define pnam mysql
Summary(uk): Perl-¦ÎÔÅÒÆÅÊÓ ÄÏ MySQL
Summary(zh_CN): Perl µÄ MySQL ½çÃæ¡£
Name: perl-DBD-mysql
-Version: 2.1017
-Release: 4
+Version: 2.1019
+Release: 1
License: GPL/Artistic
Group: Development/Languages/Perl
Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
%build
perl Makefile.PL
-
%{__make} OPTIMIZE="%{rpmcflags}"
+# tests require access to a working mysql
+%{?_with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT