#
# 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 Email
-%define pnam FolderType
+%define pdir Email
+%define pnam FolderType
Summary: Email::FolderType - return type of a mail folder
Summary(pl): Email::FolderType - sprawdzenie rodzaju folderu pocztowego
Name: perl-Email-FolderType
-Version: 0.6
+Version: 0.7
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: 54a74b1fd8f5bfedabc82808c1fa7502
-BuildRequires: perl-devel >= 5.6
+# Source0-md5: 92fdcdd0f59aee9b53fadddf2b9833c4
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-%if %{!?_without_tests:1}0
-BuildRequires: perl-Test-Simple
+%if %{with tests}
+BuildRequires: perl-Test-Simple >= 0.47
%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc Changes
%{perl_vendorlib}/%{pdir}/*.pm
+%{perl_vendorlib}/%{pdir}/%{pnam}
%{_mandir}/man3/*