Fix building on Perl without '.' in @INC (CPAN RT#120752)

This commit is contained in:
Jitka Plesnikova 2017-05-15 16:40:48 +02:00
parent a21e64f1a3
commit 4bdd4d51f8

View File

@ -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 <jplesnik@redhat.com> - 2.16-10
- Fix building on Perl without '.' in @INC
- Modernize spec and unbundled 'inc'
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.16-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild