From 4bdd4d51f8555f2856df5435781f0e2a707e5e81 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Mon, 15 May 2017 16:40:48 +0200 Subject: [PATCH] Fix building on Perl without '.' in @INC (CPAN RT#120752) --- perl-Authen-SASL.spec | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/perl-Authen-SASL.spec b/perl-Authen-SASL.spec index 6dc235c..1bcefe6 100644 --- a/perl-Authen-SASL.spec +++ b/perl-Authen-SASL.spec @@ -1,24 +1,37 @@ Name: perl-Authen-SASL Version: 2.16 -Release: 9%{?dist} +Release: 10%{?dist} Summary: SASL Authentication framework for Perl License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Authen-SASL/ Source0: http://www.cpan.org/authors/id/G/GB/GBARR/Authen-SASL-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Update the function WRITE to properly handle string which is shorter than # provided length Patch0: Authen-SASL-RT85294-Fix-WRITE.patch BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Makefile) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Run-time +BuildRequires: perl(bytes) BuildRequires: perl(Carp) -BuildRequires: perl(Cwd) -BuildRequires: perl(Digest::HMAC) +BuildRequires: perl(Digest::HMAC_MD5) BuildRequires: perl(Digest::MD5) -BuildRequires: perl(File::Path) BuildRequires: perl(GSSAPI) +BuildRequires: perl(Tie::Handle) +BuildRequires: perl(vars) +# Tests +BuildRequires: perl(FindBin) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) @@ -31,6 +44,10 @@ protocols should be able to share. %setup -q -n Authen-SASL-%{version} %patch0 -p1 +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST + chmod -c a-x example_pl %build @@ -38,23 +55,23 @@ chmod -c a-x example_pl make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT 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 .packlist -delete %{_fixperms} $RPM_BUILD_ROOT %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files %doc api.txt Changes example_pl %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Mon May 15 2017 Jitka Plesnikova - 2.16-10 +- Fix building on Perl without '.' in @INC +- Modernize spec and unbundled 'inc' + * Sat Feb 11 2017 Fedora Release Engineering - 2.16-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild