X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl.spec;h=32b9c04b96886a5bd79de301207c5ae81d6b0082;hb=09ee490b9341053ed93cc56bff608305ff469d01;hp=633267db09246cd9f9fde97309adb87e272d4470;hpb=58b78444a80ae8a767265730b74fc1a46c60a759;p=projects%2Ftemplate-specs.git diff --git a/perl.spec b/perl.spec index 633267d..32b9c04 100644 --- a/perl.spec +++ b/perl.spec @@ -8,7 +8,6 @@ ############################################################ # # 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 @@ -26,12 +25,12 @@ Source0: http://www.cpan.org/modules/by-module/PDIR/%{pdir}-%{pnam}-%{version}.t # 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 @@ -81,6 +80,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %install rm -rf $RPM_BUILD_ROOT + %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT