Fix building on Perl without "." in @INC

This is implemented by unbundling ./inc modules.
epel9
Petr Písař 8 years ago
parent 37f0c2510c
commit 6f57a0c4bd

@ -1,30 +1,26 @@
Name: perl-Text-RecordParser Name: perl-Text-RecordParser
Version: 1.6.5 Version: 1.6.5
Release: 6%{?dist} Release: 7%{?dist}
Summary: Read record-oriented files Summary: Read record-oriented files
License: GPLv2 License: GPLv2
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-RecordParser/ URL: http://search.cpan.org/dist/Text-RecordParser/
Source0: http://search.cpan.org/CPAN/authors/id/K/KC/KCLARK/Text-RecordParser-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/K/KC/KCLARK/Text-RecordParser-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Build # Build
BuildRequires: coreutils
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Config) BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Cwd) BuildRequires: perl(Module::Install::Metadata)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(Module::Install::Scripts)
BuildRequires: perl(ExtUtils::MM_Unix) BuildRequires: perl(Module::Install::WriteAll)
BuildRequires: perl(Fcntl) BuildRequires: sed
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Runtime # Runtime
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Class::Accessor) BuildRequires: perl(Class::Accessor)
BuildRequires: perl(English) BuildRequires: perl(English)
BuildRequires: perl(File::Basename)
BuildRequires: perl(Getopt::Long) BuildRequires: perl(Getopt::Long)
BuildRequires: perl(GraphViz) BuildRequires: perl(GraphViz)
BuildRequires: perl(IO::Scalar) BuildRequires: perl(IO::Scalar)
@ -33,12 +29,14 @@ BuildRequires: perl(List::Util)
BuildRequires: perl(Pod::Usage) BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Readonly) BuildRequires: perl(Readonly)
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(strict)
BuildRequires: perl(Text::Autoformat) BuildRequires: perl(Text::Autoformat)
BuildRequires: perl(Text::ParseWords) BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Text::TabularDisplay) BuildRequires: perl(Text::TabularDisplay)
BuildRequires: perl(version) BuildRequires: perl(version)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Tests only # Tests only
BuildRequires: perl(Config)
BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp) BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin) BuildRequires: perl(FindBin)
@ -63,6 +61,10 @@ can then use many methods to get at the data as arrays or hashes.
%prep %prep
%setup -q -n Text-RecordParser-%{version} %setup -q -n Text-RecordParser-%{version}
# Remove bundled modules
rm -r ./inc/*
sed -i -e '/^inc\//d' MANIFEST
# Fix shebangs
perl -pi -e 's|^#!perl|#!%{__perl}|' t/*.t perl -pi -e 's|^#!perl|#!%{__perl}|' t/*.t
%build %build
@ -83,6 +85,9 @@ make test
%{_mandir}/man[13]/* %{_mandir}/man[13]/*
%changelog %changelog
* Thu May 18 2017 Petr Pisar <ppisar@redhat.com> - 1.6.5-7
- Fix building on Perl without "." in @INC (CPAN RT#121759)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-6 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save