From 22de68211184905a28dfff6414ccd34fd8e10084 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Thu, 18 May 2017 13:07:51 +0200
Subject: Fix building on Perl without '.' in @INC (CPAN RT#121772)

---
 perl-ORLite-Mirror.spec | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/perl-ORLite-Mirror.spec b/perl-ORLite-Mirror.spec
index 416a295..1b25ce7 100644
--- a/perl-ORLite-Mirror.spec
+++ b/perl-ORLite-Mirror.spec
@@ -1,14 +1,19 @@
 Name:           perl-ORLite-Mirror
 Version:        1.24
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Extend ORLite to support remote SQLite databases
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/ORLite-Mirror/
 Source0:        
http://www.cpan.org/authors/id/A/AD/ADAMK/ORLite-Mirror-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl-generators
-BuildRequires:  perl(ExtUtils::MakeMaker)
+
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Copy)
 BuildRequires:  perl(File::HomeDir) >= 0.69
 BuildRequires:  perl(File::Path) >= 2.04
 BuildRequires:  perl(File::Remove) >= 1.42
@@ -19,15 +24,20 @@ BuildRequires:  perl(IO::Compress::Bzip2) >= 2.008
 BuildRequires:  perl(IO::Compress::Gzip) >= 2.008
 BuildRequires:  perl(IO::Uncompress::Bunzip2) >= 2.008
 BuildRequires:  perl(IO::Uncompress::Gunzip) >= 2.008
+BuildRequires:  perl(inc::Module::Install::DSL) >= 1.06
 BuildRequires:  perl(LWP::Online) >= 1.07
 BuildRequires:  perl(LWP::UserAgent) >= 5.806
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::Share)
+BuildRequires:  perl(Module::Install::With)
 BuildRequires:  perl(ORLite) >= 1.37
 BuildRequires:  perl(Params::Util) >= 0.33
 BuildRequires:  perl(strict)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(URI) >= 1.35
+BuildRequires:  perl(URI::file)
 BuildRequires:  perl(vars)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %{?perl_default_filter}
 
@@ -39,16 +49,19 @@ arbitrary URI in read-only form as well.
 
 %prep
 %setup -q -n ORLite-Mirror-%{version}
+# Remove bundled libraries
+rm -r inc
+sed -i -e '/^inc\// d' MANIFEST
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 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 stub.db -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name .packlist -delete
+find $RPM_BUILD_ROOT -type f -name stub.db -delete
 
 %{_fixperms} $RPM_BUILD_ROOT/*
 
@@ -56,11 +69,15 @@ find $RPM_BUILD_ROOT -type f -name stub.db -exec rm -f {} \;
 make test
 
 %files
-%doc Changes LICENSE README
+%license LICENSE
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu May 18 2017 Jitka Plesnikova <jples...@redhat.com> - 1.24-12
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.24-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-ORLite-Mirror.git/commit/?h=master&id=22de68211184905a28dfff6414ccd34fd8e10084
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to