diff --git a/Class-Accessor-Grouped-0.10012-Fix-building-on-Perl-without-dot-in-INC.patch b/Class-Accessor-Grouped-0.10012-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..28ad9d1 --- /dev/null +++ b/Class-Accessor-Grouped-0.10012-Fix-building-on-Perl-without-dot-in-INC.patch @@ -0,0 +1,8 @@ +diff -up Class-Accessor-Grouped-0.10012/Makefile.PL.orig Class-Accessor-Grouped-0.10012/Makefile.PL +--- Class-Accessor-Grouped-0.10012/Makefile.PL.orig 2017-05-18 09:25:41.469477083 +0200 ++++ Class-Accessor-Grouped-0.10012/Makefile.PL 2017-05-18 09:25:56.364483645 +0200 +@@ -1,3 +1,4 @@ ++BEGIN { push @INC, '.'; } + use strict; + use warnings; + use inc::Module::Install 1.06; diff --git a/perl-Class-Accessor-Grouped.spec b/perl-Class-Accessor-Grouped.spec index a9f4e65..380bcfd 100644 --- a/perl-Class-Accessor-Grouped.spec +++ b/perl-Class-Accessor-Grouped.spec @@ -1,13 +1,16 @@ Name: perl-Class-Accessor-Grouped Version: 0.10012 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Build groups of accessors License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Class-Accessor-Grouped/ Source0: http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/Class-Accessor-Grouped-%{version}.tar.gz +Patch0: Class-Accessor-Grouped-0.10012-Fix-building-on-Perl-without-dot-in-INC.patch BuildArch: noarch # Build +BuildRequires: findutils +BuildRequires: make BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl(Config) @@ -54,6 +57,7 @@ getters and setters. %prep %setup -q -n Class-Accessor-Grouped-%{version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -61,7 +65,7 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} + +find %{buildroot} -type f -name .packlist -delete %{_fixperms} %{buildroot}/* %check @@ -73,6 +77,9 @@ make test %{_mandir}/man3/* %changelog +* Thu May 18 2017 Jitka Plesnikova - 0.10012-7 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.10012-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild