-#
+
# 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 Archive
%define pnam Zip
Summary: Archive::Zip - module for manipulation of ZIP archives
Summary(pl): Archive::Zip - modu³ do manipulacji archiwami ZIP
Name: perl-Archive-Zip
-Version: 1.06
+Version: 1.08
Release: 1
License: GPL/Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 0e5843e5e0f961652ff52c0d64f7ea0a
+# Source0-md5: 597652bdd4b2ad7e614c68a18c14d811
BuildRequires: perl-devel >= 5.6
-%if %{?_without_tests:0}%{!?_without_tests:1}
+%if %{with tests}
BuildRequires: perl-Compress-Zlib >= 1.14
%endif
BuildRequires: rpm-perlprov >= 4.1-13
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}