############################################################
#
# Conditional build:
-%bcond_without autodeps # don't BR packages needed only for resolving deps
%bcond_without tests # do not perform "make test"
#
%define pdir PDIR
# Source0-md5:
Patch0: %{name}-foo.patch
# most of CPAN modules have generic URL (substitute pdir and pnam here)
-URL: http://search.cpan.org/dist/PDIR-PNAM/
+URL: https://metacpan.org/release/PDIR-PNAM
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.745
BuildRequires: -
-%if %{with autodeps} || %{with tests}
+%if %{with tests}
BuildRequires: perl-
BuildRequires: perl-
%endif
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT