From e5d28c1ea4b2603fee906cf55e0cd8c8a65b0827 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Jun 26 2017 13:48:12 +0000 Subject: Fix building with Perl 5.26.0 by removing bundled code --- diff --git a/perl-Authen-CAS-Client.spec b/perl-Authen-CAS-Client.spec index 82de4f3..aabc61b 100644 --- a/perl-Authen-CAS-Client.spec +++ b/perl-Authen-CAS-Client.spec @@ -1,20 +1,35 @@ Name: perl-Authen-CAS-Client Version: 0.07 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Interface for authentication via JA-SIG's Central Authentication Service License: MIT -Group: Development/Libraries URL: http://search.cpan.org/dist/Authen-CAS-Client/ Source0: http://www.cpan.org/authors/id/P/PR/PRAVUS/Authen-CAS-Client-%{version}.tar.gz BuildArch: noarch -BuildRequires: perl >= 1:5.6.1 +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(LWP) >= 0.00 -BuildRequires: perl(Test::MockObject) >= 0.00 -BuildRequires: perl(Test::More) >= 0.00 +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AutoInstall) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Run-time: +BuildRequires: perl(:VERSION) >= 5.6.1 +BuildRequires: perl(base) +BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(URI) >= 0.00 +BuildRequires: perl(URI::QueryParam) BuildRequires: perl(XML::LibXML) >= 0.00 +# Tests: +BuildRequires: perl(HTTP::Response) +BuildRequires: perl(lib) +BuildRequires: perl(Test::MockObject) >= 0.00 +BuildRequires: perl(Test::More) >= 0.00 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description The Authen::CAS::Client module provides a simple interface for @@ -23,30 +38,34 @@ are supported. %prep %setup -q -n Authen-CAS-Client-%{version} +# Remove bundled modules +rm -rf inc/* +sed -i -e '/^inc\//d' MANIFEST %build # --skipdeps causes ExtUtils::AutoInstall not to try auto-installing -%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 --skipdeps make %{?_smp_mflags} %install - make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files -%doc Changes LICENSE README +%license LICENSE +%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Mon Jun 26 2017 Petr Pisar - 0.07-5 +- Specify all dependencies +- Fix building with Perl 5.26.0 by removing bundled code (bug #1465051) +- Modernize spec file (Group, License, perl(:MODULE_COMPAT)) + * Sat Feb 11 2017 Fedora Release Engineering - 0.07-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild