From b3f554e8851fbb28c7073e71b9d128c62cbd8c6d Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: May 17 2017 14:24:31 +0000 Subject: Fix building on Perl without '.' in @INC (CPAN RT#121040) --- diff --git a/perl-Crypt-DH-GMP.spec b/perl-Crypt-DH-GMP.spec index cac5280..c5a61a9 100644 --- a/perl-Crypt-DH-GMP.spec +++ b/perl-Crypt-DH-GMP.spec @@ -1,28 +1,19 @@ Name: perl-Crypt-DH-GMP Version: 0.00012 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Crypt::DH Using GMP Directly License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Crypt-DH-GMP/ Source0: http://www.cpan.org/authors/id/D/DM/DMAKI/Crypt-DH-GMP-%{version}.tar.gz +BuildRequires: findutils +BuildRequires: make BuildRequires: perl -BuildRequires: perl(Carp) -BuildRequires: perl(Config) -BuildRequires: perl(constant) -BuildRequires: perl(Cwd) -BuildRequires: perl(Devel::CheckLib) >= 0.4 -BuildRequires: perl(Devel::PPPort) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(ExtUtils::MM_Unix) -BuildRequires: perl(Fcntl) -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Path) -BuildRequires: perl(File::Spec) -BuildRequires: perl(FindBin) -BuildRequires: perl(strict) -BuildRequires: perl(vars) -BuildRequires: perl(warnings) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AuthorTests) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(Module::Install::XSUtil) # Run-time BuildRequires: gmp-devel BuildRequires: perl-devel @@ -44,6 +35,9 @@ implemented mostly in C. %prep %setup -q -n Crypt-DH-GMP-%{version} +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -51,8 +45,8 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name .packlist -delete +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -65,6 +59,9 @@ make test %{_mandir}/man3/* %changelog +* Wed May 17 2017 Jitka Plesnikova - 0.00012-7 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.00012-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild