#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir Math
Name: perl-Math-Quaternion
Version: 0.01
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: afb5a960eb511d572a323608c42d7b11
-BuildRequires: perl-devel >= 5.8.0
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-%{!?_without_tests:BuildRequires: perl-Test-Simple}
+%{?with_tests:BuildRequires: perl-Test-Simple}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
-
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT