+#
+# Conditional build:
+%bcond_without tests # Do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir DBIx
%define pnam DataSource
-Summary: DBIx::DataSource -- Database-independant create and drop functions
-Summary(pl): DBIx::DataSource -- niezale¿ne od bazy danych funkcje do tworzenia i usuwania
+Summary: DBIx::DataSource - database-independent create and drop functions
+Summary(pl): DBIx::DataSource - niezale¿ne od bazy danych funkcje do tworzenia i usuwania
Name: perl-%{pdir}-%{pnam}
Version: 0.02
Release: 3
-License: GPL/Artistic
+# 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: 12d60ad75ceced40286d18fcdcb5a40b
BuildRequires: perl-devel >= 5.6
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
%build
%{__perl} Makefile.PL \
- INSTALLDIRS=vendor
+ INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT